Skip to content

Commit 9f88d10

Browse files
Adding titles to remember entries
I now remove all "-marks from the title-string, so titles should no longer exit the echo too early because it is enclosed by "-marks.
1 parent 45b1375 commit 9f88d10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reddytt.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# reddytt.py
1414
# https://github.com/johanbluecreek/reddytt
1515
#
16-
__version__ = "1.4.7"
16+
__version__ = "1.4.8"
1717
user_agent = "Reddytt v{}".format(__version__)
1818
#
1919
################################################################################
@@ -78,7 +78,7 @@ def create_input(work_dir):
7878
with open(input_file, 'w') as f:
7979
f.write('> quit 0\n')
8080
f.write('q quit 4\n')
81-
f.write('R run "/bin/bash" "-c" "echo \\\"${path}\\\" >> ~/.reddytt/remember"\n')
81+
f.write('R run "/bin/bash" "-c" "echo \\\"${title}: ${path}\\\" >> ~/.reddytt/remember"\n')
8282
f.write('i show-text "${title}"\n')
8383
f.write('Ctrl+o run "/bin/bash" "-c" "xdg-open \\\"${path}\\\""\n')
8484

@@ -391,7 +391,7 @@ def reqlinks(link):
391391
'mpv',
392392
link[0],
393393
'--input-conf=%s' % tmp_input_file,
394-
'--title=\"%s\"' % link[1]
394+
'--title=%s' % link[1].replace('"',"'")
395395
] + args.mpv
396396
, shell=False)
397397
p.communicate()

0 commit comments

Comments
 (0)