1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00
Files
linux-nixos-hyprland-config…/home/.config/fish/functions/fzf-cd-preview-widget.fish
xnm 59ea19d35d fish scripts update
changelog:
- refactored fzf scripts
- nullify unused\remapped fzf bindings
- `list-op.fish` hotfix 3
- added `hexyl` package to the system
2024-10-13 23:11:03 +03:00

9 lines
301 B
Fish

function fzf-cd-preview-widget
set selected_dir (fd --type d --hidden --no-ignore --exclude .git --exclude .direnv | fzf --height 40% --reverse --preview 'dir-preview {}' --preview-window=right:40%)
if test -n "$selected_dir"
cd "$selected_dir"
end
commandline -f repaint
end