commit 3886b7f1cdbc767dc71a8a1b0085d3f5eefb72b7 Author: Gwyn Date: Mon Feb 16 16:57:16 2026 -0500 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/clip-sort.py b/clip-sort.py new file mode 100644 index 0000000..8cd72e5 --- /dev/null +++ b/clip-sort.py @@ -0,0 +1,12 @@ +import pyperclip as pycl +import sys + +if __name__ == "__main__": + clip = pycl.paste() + if "\r\n" in clip: # Windows Carrige return case + cliplist = clip.split("\r\n") + else: + cliplist = clip.split("\n") + cliplist.sort() + pycl.copy("\n".join(cliplist)) + sys.exit(0) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c9c47dd --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pyperclip