Skip to content

Commit

Permalink
Revert "feat: update ui changes (#6)"
Browse files Browse the repository at this point in the history
This reverts commit 398edf3.
  • Loading branch information
y3owk1n committed Dec 6, 2024
1 parent 398edf3 commit af7e843
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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) --layout=reverse --border --height=~100% --tmux=center)
set -l selected_command (history | fzf --prompt=(_fzf_preview_name $prompt_name) --no-color)

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) --layout=reverse --border --height=~100% --tmux=center)
set selected_directory (fd . $path --min-depth 1 --type d --max-depth "$recursive_depth" | fzf --prompt=(_fzf_preview_name $prompt_name))

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 --hidden | fzf --preview="_fzf_preview_cmd {}" --prompt=(_fzf_preview_name $prompt_name) --layout=reverse --border --height=~100% --tmux=center)
set selected_path (fd . $path --type f --type d --hidden | fzf --preview="_fzf_preview_cmd {}" --prompt=(_fzf_preview_name $prompt_name))
else
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)
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))
end

if test -n "$selected_path"
Expand Down

0 comments on commit af7e843

Please sign in to comment.