summaryrefslogtreecommitdiff
path: root/Chap6ProjBulletsWiki.py
diff options
context:
space:
mode:
authormlot <petri-rush-curvy@duck.com>2025-06-06 13:40:57 -0400
committermlot <petri-rush-curvy@duck.com>2025-06-06 13:40:57 -0400
commit75a42ec54dbf721caa659ddf02c1f46fc2cb4bef (patch)
tree84be794a2481e356a7784557a6f9fb6fbf29cfdd /Chap6ProjBulletsWiki.py
initial commit for archivingHEADmain
Diffstat (limited to 'Chap6ProjBulletsWiki.py')
-rw-r--r--Chap6ProjBulletsWiki.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Chap6ProjBulletsWiki.py b/Chap6ProjBulletsWiki.py
new file mode 100644
index 0000000..4194a63
--- /dev/null
+++ b/Chap6ProjBulletsWiki.py
@@ -0,0 +1,16 @@
+#! /usr/bin/env python3
+
+# Bullets to Wiki Markup Chap. 6
+# Copies text from clipboard, adds a star to each line, pastes to clipboard.
+
+import pyperclip
+
+text = pyperclip.paste()
+
+lines = text.split('\n')
+for i in range(len(lines)):
+ lines[i] = '* ' + lines[i]
+
+text = '\n'.join(lines)
+
+pyperclip.copy(text)