vis: select from src and dotfiles directories, not only zoxide

This commit is contained in:
2025-10-07 08:51:47 +02:00
parent 58fa05c6f8
commit bce8fbc87c
2 changed files with 2 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ if [ "$1" = list ]; then
case "$prompt" in case "$prompt" in
dir:*) dir:*)
dir=${FZF_HEADER_LABEL#?} dir=${FZF_HEADER_LABEL#?}
fd -t d '' ~/src ~/dotfiles 2 -H -E '\.git' -E node_modules
zoxide query -l zoxide query -l
echo $dir echo $dir
exit exit

View File

@@ -305,7 +305,7 @@ vis.events.subscribe(vis.events.INIT, function()
end, 'open file from current line in below window (with optional line and col)') end, 'open file from current line in below window (with optional line and col)')
vis:map(vis.modes.NORMAL, ' c', function() vis:map(vis.modes.NORMAL, ' c', function()
search('zoxide query -l | fzf', function(path) search('( fd -t d "" ~/src ~/dotfiles -H -E "\\.git" -E node_modules ; zoxide query -l ) | fzf --scheme path', function(path)
vis:command('cd ' .. path) vis:command('cd ' .. path)
end) end)
end, 'fzf change directory') end, 'fzf change directory')