zathura: correctly read in $FILE in keybindings and add movepdf
This commit is contained in:
parent
35d8536fcf
commit
dfbd109c6e
@ -14,4 +14,5 @@ map i recolor
|
||||
map p print
|
||||
map g goto top
|
||||
map <C-s> exec zathura_backward_search.sh
|
||||
map <A-Return> exec openfilebrowser $FILE
|
||||
map <A-Return> exec "openfilebrowser $FILE"
|
||||
map <C-h> exec "movepdf $FILE"
|
||||
|
9
.local/bin/tools/movepdf
Executable file
9
.local/bin/tools/movepdf
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
file="$1"
|
||||
dest="$(find "$HOME" -maxdepth 5 -type d -not -path "$HOME/.*" | dmenu -i -p 'move to folder:')"
|
||||
if ! [ -d "$dest" ]; then
|
||||
mkdir -p "$dest"
|
||||
fi
|
||||
echo $dest
|
||||
echo $file
|
||||
mv "$file" "$dest"
|
Loading…
Reference in New Issue
Block a user