dotfiles/config/zsh/fzf.zsh

43 lines
899 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

fzf_colors=(
fg:bright-black
fg+:bright-white:bold
bg+:-1
hl:yellow:regular
hl+:bright-yellow:bold
query:bright-white:regular
info:blue:regular
border:bright-black
scrollbar:white
separator:bright-black
label:yellow:bold
prompt:blue
pointer:red:bold
marker:green
spinner:yellow
)
fzf_bindings=(
ctrl-f:page-down
ctrl-b:page-up
ctrl-o:toggle-up
ctrl-t:toggle-all
ctrl-x:deselect-all
)
fzf_defaults=(
--reverse
--border=rounded
--scrollbar=
--prompt='" "'
--pointer='" "'
--marker='"󰄴 "'
--color="${(pj/,/)fzf_colors}"
--bind="${(pj/,/)fzf_bindings}"
)
export FZF_DEFAULT_OPTS="${(pj/ /)fzf_defaults}"
export FZF_CTRL_T_OPTS=--border-label='" Select file(s) "'
export FZF_CTRL_R_OPTS=--border-label='" History search "'
export FZF_ALT_C_OPTS=--border-label='" Change directory "'
unset fzf_colors fzf_bindings fzf_defaults