summaryrefslogtreecommitdiff
path: root/Chap6ProjBulletsWiki.py
diff options
context:
space:
mode:
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)