vis: select from src and dotfiles directories, not only zoxide
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user