port upstream changes

https://github.com/LukeSmithxyz/voidrice/pull/1385
This commit is contained in:
Luca Bilke 2024-05-24 19:53:15 +02:00
parent 78e7045b6e
commit bb1dc77798
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47

View File

@ -9,7 +9,6 @@ shell_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc"
zsh_named_dirs="${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
lf_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/lf/shortcutrc"
vim_shortcuts="${XDG_CONFIG_HOME:-$HOME/.config}/nvim/shortcuts.vim"
ranger_shortcuts="/dev/null"
qute_shortcuts="/dev/null"
fish_shortcuts="/dev/null"
vifm_shortcuts="/dev/null"
@ -38,12 +37,6 @@ write_dirs() {
printf "config.bind(';%s', \"set downloads.location.directory %s ;; hint links download\") \n" \
"$shortcut" "$path" \
>>"$qute_shortcuts"
printf "map g%s cd %s\nmap t%s tab_new %s\nmap m%s shell mv -v %%s %s\nmap Y%s shell cp -rv %%s %s \n" \
"$shortcut" "$path" \
"$shortcut" "$path" \
"$shortcut" "$path" \
"$shortcut" "$path" \
>>"$ranger_shortcuts"
printf "map C%s cd \"%s\"\n" \
"$shortcut" "$path" \
>>"$lf_shortcuts"
@ -71,9 +64,6 @@ write_files() {
printf "map %s :e %s<CR> \n" \
"$shortcut" "$path" \
>>"$vifm_shortcuts"
printf "map %s shell \$EDITOR %s \n" \
"$shortcut" "$path" \
>>"$ranger_shortcuts"
printf "map E%s \$\$EDITOR \"%s\" \n" \
"$shortcut" "$path" \
>>"$lf_shortcuts"
@ -89,7 +79,7 @@ filter() {
}
# Remove, prepare files
rm -f "$lf_shortcuts" "$ranger_shortcuts" "$qute_shortcuts" "$zsh_named_dirs" "$vim_shortcuts" 2>/dev/null
rm -f "$lf_shortcuts" "$qute_shortcuts" "$zsh_named_dirs" "$vim_shortcuts" 2>/dev/null
printf "# vim: filetype=sh\\n" >"$fish_shortcuts"
printf "# vim: filetype=sh\\nalias " >"$shell_shortcuts"
printf "\" vim: filetype=vim\\n" >"$vifm_shortcuts"