fix
This commit is contained in:
parent
09f085c1c5
commit
eb3427889c
1 changed files with 6 additions and 6 deletions
12
.zshrc
12
.zshrc
|
@ -50,14 +50,14 @@ alias tlscd='sudo tailscale down'
|
||||||
export FZF_TMUX="1"
|
export FZF_TMUX="1"
|
||||||
export FZF_TMUX_OPTS="-p 50%"
|
export FZF_TMUX_OPTS="-p 50%"
|
||||||
export FZF_CTRL_R_OPTS="--reverse --preview 'echo {}' --preview-window=border-sharp,down:3:hidden:wrap --bind '?:toggle-preview'"
|
export FZF_CTRL_R_OPTS="--reverse --preview 'echo {}' --preview-window=border-sharp,down:3:hidden:wrap --bind '?:toggle-preview'"
|
||||||
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --iglob "!**/.git/*"'
|
export FZF_DEFAULT_COMMAND='rg --files --follow --iglob "!**/.git/*"'
|
||||||
export FZF_DEFAULT_OPTS="--ansi --no-separator --no-scrollbar --reverse --border=none \
|
export FZF_DEFAULT_OPTS="--ansi --no-separator --no-scrollbar --reverse --border=none \
|
||||||
--color=bg+:#1c1e26,bg:#1c1e26,spinner:#ee64ac,hl:#e95678 \
|
--color=bg+:#1c1e26,bg:#1c1e26,spinner:#ee64ac,hl:#e95678 \
|
||||||
--color=fg:#d5d8da,header:#e95678,info:#e95678,pointer:#ee64ac \
|
--color=fg:#d5d8da,header:#e95678,info:#e95678,pointer:#ee64ac \
|
||||||
--color=marker:#ee64ac,fg+:#d5d8da,prompt:#e95678,hl+:#e95678"
|
--color=marker:#ee64ac,fg+:#d5d8da,prompt:#e95678,hl+:#e95678"
|
||||||
export FZF_CTRL_T_COMMAND='rg --files --hidden --follow --iglob "!**.git/*"'
|
export FZF_CTRL_T_COMMAND='rg --files --follow --iglob "!**.git/*"'
|
||||||
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --style=plain --line-range :100 {}' --preview-window=border-sharp,down:70%"
|
export FZF_CTRL_T_OPTS="--preview 'bat --color=always --style=plain --line-range :100 {}' --preview-window=border-sharp,right:60%"
|
||||||
export FZF_ALT_C_OPTS="--preview 'exa {} -h -T -F --no-user --no-time --no-filesize --no-permissions --long | head -200' --preview-window=border-sharp,hidden:down:70% --bind '?:toggle-preview'"
|
export FZF_ALT_C_OPTS="--preview 'exa {} -h -T -F --no-user --no-time --no-filesize --no-permissions --long | head -200' --preview-window=border-sharp,hidden:right:60% --bind '?:toggle-preview'"
|
||||||
export RUNEWIDTH_EASTASIAN=0
|
export RUNEWIDTH_EASTASIAN=0
|
||||||
bindkey '^[t' fzf-file-widget
|
bindkey '^[t' fzf-file-widget
|
||||||
bindkey '^[r' fzf-history-widget
|
bindkey '^[r' fzf-history-widget
|
||||||
|
@ -83,8 +83,8 @@ fadd() {
|
||||||
fv() {
|
fv() {
|
||||||
local file
|
local file
|
||||||
file=$(
|
file=$(
|
||||||
rg --files --hidden --follow --glob "!**/.git/*" | fzf-tmux -p 50% \
|
rg --files --follow --glob "!**/.git/*" | fzf-tmux -p 50% \
|
||||||
--preview 'bat --color=always --style=plain {}' --preview-window=border-sharp,down:70%
|
--preview 'bat --color=always --style=plain {}' --preview-window=border-sharp,right:60%
|
||||||
)
|
)
|
||||||
v "$file"
|
v "$file"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue