commit 443c9b94a89f193dd8df0fa877cc85fbc87f9fc3
parent 35309025a4620adbb7a1839d79e881cd70e3d8ec
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 29 Jan 2020 19:55:47 +0100
Avoid trailing newline when yanking file path
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc
@@ -12,6 +12,6 @@ set statusbar-home-tilde
map <C-o> feedkeys ":exec zathura '$FILE'<Return>"
map <C-i> feedkeys ":exec getdoi --notify --clip '$FILE'<Return>"
map <C-s> feedkeys ":exec scholarref --add '$FILE'<Return>"
-map <C-y> feedkeys ":exec sh -c 'echo \"$FILE\" | xclip -i'<Return>"
+map <C-y> feedkeys ":exec sh -c 'printf \"%\" \"$FILE\" | xclip -i'<Return>"
map <C-t> jumplist backward
map <C-]> jumplist forward