From bb1dc77798ac77ca31877940dc50c54c6d745be2 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Fri, 24 May 2024 19:53:15 +0200 Subject: [PATCH] port upstream changes https://github.com/LukeSmithxyz/voidrice/pull/1385 --- .local/bin/shortcuts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts index 64990cae..826e2169 100755 --- a/.local/bin/shortcuts +++ b/.local/bin/shortcuts @@ -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 \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"