Skip to content

Commit

Permalink
TG: Do not copy <cached> part
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcomboom committed May 18, 2020
1 parent 94fe2ed commit d316c9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TreeGopher.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ def plural(x):
history.remove(history[-1])
go(h)
elif event == 'Copy URL':
pyperclip.copy(value['_TREE_'][0])
url = value['_TREE_'][0]
if url.endswith(' <cached>'):
url = url[:-9]
pyperclip.copy(url)
elif event == 'Copy File URL':
pyperclip.copy(loadedTextURL)
elif event == 'Save...':
Expand Down

0 comments on commit d316c9f

Please sign in to comment.