diff options
| author | Indrajith | 2024-07-03 02:03:35 +0530 |
|---|---|---|
| committer | Indrajith | 2024-07-03 02:03:35 +0530 |
| commit | 824022cd1f633c70c4d2782934251616756f4668 (patch) | |
| tree | a310eb4bf72b26c2d110838b8c487daaa3537bea /fish/functions/_fzf_search_directory.fish | |
| parent | 57eb70137b5bbcdabdc0f02eea5477b3e5f845a1 (diff) | |
| download | dots-824022cd1f633c70c4d2782934251616756f4668.tar.gz dots-824022cd1f633c70c4d2782934251616756f4668.tar.bz2 dots-824022cd1f633c70c4d2782934251616756f4668.zip | |
Dots Updated
* Adds GTK Themes
* Adds wlogout
* Adds tmux config
* Adds Pywal-16-colors
* Removed unwanted gtk folders
* Config Updates
* Fish
* Hyprland
* Hyprlock
* Hyprpaper
* waybar
Diffstat (limited to 'fish/functions/_fzf_search_directory.fish')
| -rw-r--r-- | fish/functions/_fzf_search_directory.fish | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/fish/functions/_fzf_search_directory.fish b/fish/functions/_fzf_search_directory.fish deleted file mode 100644 index 4541eec90..000000000 --- a/fish/functions/_fzf_search_directory.fish +++ /dev/null @@ -1,33 +0,0 @@ -function _fzf_search_directory --description "Search the current directory. Replace the current token with the selected file paths." - # Directly use fd binary to avoid output buffering delay caused by a fd alias, if any. - # Debian-based distros install fd as fdfind and the fd package is something else, so - # check for fdfind first. Fall back to "fd" for a clear error message. - set -f fd_cmd (command -v fdfind || command -v fd || echo "fd") - set -f --append fd_cmd --color=always $fzf_fd_opts - - set -f fzf_arguments --multi --ansi $fzf_directory_opts - set -f token (commandline --current-token) - # expand any variables or leading tilde (~) in the token - set -f expanded_token (eval echo -- $token) - # unescape token because it's already quoted so backslashes will mess up the path - set -f unescaped_exp_token (string unescape -- $expanded_token) - - # If the current token is a directory and has a trailing slash, - # then use it as fd's base directory. - if string match --quiet -- "*/" $unescaped_exp_token && test -d "$unescaped_exp_token" - set --append fd_cmd --base-directory=$unescaped_exp_token - # use the directory name as fzf's prompt to indicate the search is limited to that directory - set --prepend fzf_arguments --prompt="Directory $unescaped_exp_token> " --preview="_fzf_preview_file $expanded_token{}" - set -f file_paths_selected $unescaped_exp_token($fd_cmd 2>/dev/null | _fzf_wrapper $fzf_arguments) - else - set --prepend fzf_arguments --prompt="Directory> " --query="$unescaped_exp_token" --preview='_fzf_preview_file {}' - set -f file_paths_selected ($fd_cmd 2>/dev/null | _fzf_wrapper $fzf_arguments) - end - - - if test $status -eq 0 - commandline --current-token --replace -- (string escape -- $file_paths_selected | string join ' ') - end - - commandline --function repaint -end |
