diff --git a/functions/_fzf_cmd_history.fish b/functions/_fzf_cmd_history.fish index 06fdd36..96baecb 100644 --- a/functions/_fzf_cmd_history.fish +++ b/functions/_fzf_cmd_history.fish @@ -13,7 +13,7 @@ function _fzf_cmd_history --description="fzf command history" end end - set -l selected_command (history | fzf --prompt=(_fzf_preview_name $prompt_name) --no-color) + set -l selected_command (history | fzf --prompt=(_fzf_preview_name $prompt_name) --layout=reverse --border --height=~100% --tmux=center) if test -n "$selected_command" # commandline --current-token --replace -- (string escape -- $selected_command) diff --git a/functions/_fzf_directory_picker.fish b/functions/_fzf_directory_picker.fish index 9aeed3d..ddc9a85 100644 --- a/functions/_fzf_directory_picker.fish +++ b/functions/_fzf_directory_picker.fish @@ -29,7 +29,7 @@ function _fzf_directory_picker --description="fzf directory picker" set -l selected_directory - set selected_directory (fd . $path --min-depth 1 --type d --max-depth "$recursive_depth" | fzf --prompt=(_fzf_preview_name $prompt_name)) + set selected_directory (fd . $path --min-depth 1 --type d --max-depth "$recursive_depth" | fzf --prompt=(_fzf_preview_name $prompt_name) --layout=reverse --border --height=~100% --tmux=center) if test -n "$selected_directory" if test -n "$allow_cd" diff --git a/functions/_fzf_file_picker.fish b/functions/_fzf_file_picker.fish index 5123922..6c03534 100644 --- a/functions/_fzf_file_picker.fish +++ b/functions/_fzf_file_picker.fish @@ -27,9 +27,9 @@ function _fzf_file_picker --description="fzf file picker" set -l selected_path if $show_hidden_files - set selected_path (fd . $path --type f --type d --hidden | fzf --preview="_fzf_preview_cmd {}" --prompt=(_fzf_preview_name $prompt_name)) + set selected_path (fd . $path --type f --hidden | fzf --preview="_fzf_preview_cmd {}" --prompt=(_fzf_preview_name $prompt_name) --layout=reverse --border --height=~100% --tmux=center) else - set selected_path (fd . $path --type f --type d --exclude .git --exclude .gitignore 2>/dev/null | sed 's|^\$path/||' | fzf --preview="_fzf_preview_cmd {}" --prompt=(_fzf_preview_name $prompt_name)) + set selected_path (fd . $path --type f --exclude .git --exclude .gitignore 2>/dev/null | sed 's|^\$path/||' | fzf --preview="_fzf_preview_cmd {}" --prompt=(_fzf_preview_name $prompt_name) --layout reverse --border --height ~100% --tmux center) end if test -n "$selected_path"