Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update ui changes #6

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/_fzf_cmd_history.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion functions/_fzf_directory_picker.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions functions/_fzf_file_picker.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading