diff --git a/terminal/.config/vifm/vifmrc b/terminal/.config/vifm/vifmrc index 7d7cffe..54bb2c1 100644 --- a/terminal/.config/vifm/vifmrc +++ b/terminal/.config/vifm/vifmrc @@ -168,17 +168,22 @@ command! mkcd :mkdir %a | cd %a command! syncme :cd %D command! fzfhome : set noquickview - \| let $FZF_PICK = term('locate $HOME | fzf 2>/dev/tty') + \| let $FZF_PICK = term('fd . $HOME | fzf 2>/dev/tty') \| if $FZF_PICK != '' \| execute 'goto' fnameescape($FZF_PICK) \| endif command! fzf : set noquickview - \| let $FZF_PICK = term('find | fzf 2>/dev/tty') + \| let $FZF_PICK = term('fd | fzf 2>/dev/tty') \| if $FZF_PICK != '' \| execute 'goto' fnameescape($FZF_PICK) \| endif +command! fzfcdhome : set noquickview + \| let $FZF_PICK = term('fd -td . $HOME | fzf 2>/dev/tty') + \| if $FZF_PICK != '' + \| execute 'cd' fnameescape($FZF_PICK) + \| endif command! fzfcd : set noquickview - \| let $FZF_PICK = term('find -type d | fzf 2>/dev/tty') + \| let $FZF_PICK = term('fd -td | fzf 2>/dev/tty') \| if $FZF_PICK != '' \| execute 'cd' fnameescape($FZF_PICK) \| endif @@ -300,8 +305,10 @@ noremap ,pc :!pdftk %f cat output output.pdf " fzf movements nnoremap f :fzf +nnoremap F :fzfhome nnoremap c :fzfcd -nnoremap F :grep +nnoremap C :fzfcdhome +nnoremap w :grep " preview thumbnails of current folder " select thumbnails with m/M in nsxiv diff --git a/terminal/.config/wezterm/maps.lua b/terminal/.config/wezterm/maps.lua index 4f749ed..74cc6bd 100644 --- a/terminal/.config/wezterm/maps.lua +++ b/terminal/.config/wezterm/maps.lua @@ -65,6 +65,7 @@ local keys = { }), }, { key = "f", mods = "LEADER", action = act.QuickSelect }, + -- open web link { key = "F", mods = "LEADER",