1
0
Fork 0

fix trash-put for symlinks, change lf keybinds

This commit is contained in:
Luca Bilke 2023-11-16 14:18:57 +01:00
parent b7d388a2ee
commit 02d6a5709d
2 changed files with 5 additions and 5 deletions

View File

@ -185,13 +185,13 @@ map <c-c>f fzfshortcutfiles
map <c-c>d fzfshortcutdirs
map <c-c>g fzfgrep
map J $dir=$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf) && lf -remote "send $id cd $(eval echo $dir)"
map D delete
map <c-d> trash
map T $trash-restore $PWD
map D trash
map <c-d> $trash-restore $PWD
map T delete
map <c-e> extract
map R rsyncto
map P link
map S share
# map S share
map <c-g> $lazygit
map <c-v> push :!$EDITOR<space>
map <c-n> push :mkdir<space>

View File

@ -5,7 +5,7 @@ getfsroot() {
printf "%s" "$(df "$1" --output=target | tail -1)"
}
filepath="$(realpath "$1")"
filepath="$(realpath -s "$1")"
filename="$(basename "$1")"
fsroot="$(getfsroot "$1")"
[ "$fsroot" = "$(getfsroot "${XDG_DATA_HOME:-$HOME/.local/share}")" ] &&