Playing with fzf etc.

This commit is contained in:
Harri Lahtinen 2021-10-28 22:20:33 +03:00
parent 5315f63a9a
commit 0f2f9ca04c
2 changed files with 19 additions and 6 deletions

21
.zshenv
View File

@ -15,11 +15,24 @@ export SSH_KEY_PATH="~/.ssh/id_rsa"
export TERMINAL="alacritty"
#fzf
export FZF_CTRL_R_OPTS='--sort --exact'
export FZF_BASE="$HOME/.fzf"
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""'
export FZF_CTRL_R_OPTS="--sort --exact"
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
export FZF_DEFAULT_COMMAND='fd --type f --hidden'
export FZF_DEFAULT_OPTS="--layout=reverse --inline-info"
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || bat {} || tree -C {}) 2> /dev/null | head -200'"
export FZF_DEFAULT_OPTS="
--layout=reverse
--info=inline
--height=80%
--multi
--preview-window=:hidden
--preview '([[ -f {} ]] && (bat --style=numbers --color=always {} || cat {})) || ([[ -d {} ]] && (tree -C {} | less)) || echo {} 2> /dev/null | head -200'
--color='hl:148,hl+:154,pointer:032,marker:010,bg+:237,gutter:008'
--prompt=' ' --pointer='▶' --marker='✓'
--bind 'h:toggle-preview'
--bind 'ctrl-a:select-all'
--bind 'ctrl-y:execute-silent(echo {+} | pbcopy)'
--bind 'ctrl-v:execute(code {+})'
"
# Compilation flags
export ARCHFLAGS="-arch x86_64"

4
.zshrc
View File

@ -68,8 +68,8 @@ setopt always_to_end # move cursor to end if word had one match
plugins=(
zsh-autosuggestions
zsh-syntax-highlighting
zsh-autocomplete
fzf-tab
#zsh-autocomplete
#fzf-tab
archlinux
sudo
tmux