first commit
This commit is contained in:
commit
3886b7f1cd
3 changed files with 13 additions and 0 deletions
0
README.md
Normal file
0
README.md
Normal file
12
clip-sort.py
Normal file
12
clip-sort.py
Normal file
|
|
@ -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)
|
||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
pyperclip
|
||||||
Loading…
Add table
Add a link
Reference in a new issue