From 5dcd5c16be13d9001057619027dc7fca9f93a261 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Sat, 9 Oct 2021 12:04:15 +0700 Subject: [PATCH] fzf: bind alt-j, alt-k to scroll preview window --- home/.bashrc-bloated | 3 ++- home/.config/fish/conf.d/env.fish | 3 ++- home/.config/zsh/.zshenv | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/home/.bashrc-bloated b/home/.bashrc-bloated index 82a772c..fcfb02e 100644 --- a/home/.bashrc-bloated +++ b/home/.bashrc-bloated @@ -52,10 +52,11 @@ export GOPROXY=direct export PF_INFO="ascii title kernel wm shell uptime pkgs memory" # fzf export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info + --bind alt-j:preview-down,alt-k:preview-up --color fg:#D8DEE9,bg:#2E3440,hl:#A3BE8C,fg+:#D8DEE9,bg+:#434C5E,hl+:#A3BE8C --color pointer:#BF616A,info:#4C566A,spinner:#4C566A,header:#4C566A,prompt:#81A1C1,marker:#EBCB8B" # export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info -# --color dark +# --bind alt-j:preview-down,alt-k:preview-up # --color fg:-1,bg:-1,hl:#c678dd,fg+:#ffffff,bg+:#4b5263,hl+:#d858fe # --color info:#98c379,prompt:#61afef,pointer:#be5046,marker:#e5c07b,spinner:#61afef,header:#61afef" export FZF_DEFAULT_COMMAND="fd --type f --follow --hidden --exclude .git" diff --git a/home/.config/fish/conf.d/env.fish b/home/.config/fish/conf.d/env.fish index e67e42e..dd1d6b2 100644 --- a/home/.config/fish/conf.d/env.fish +++ b/home/.config/fish/conf.d/env.fish @@ -63,10 +63,11 @@ set -gx GOPROXY direct set -gx PF_INFO "ascii title kernel wm shell uptime pkgs memory" # fzf set -gx FZF_DEFAULT_OPTS "--multi --layout=reverse --inline-info + --bind alt-j:preview-down,alt-k:preview-up --color fg:#D8DEE9,bg:#2E3440,hl:#A3BE8C,fg+:#D8DEE9,bg+:#434C5E,hl+:#A3BE8C --color pointer:#BF616A,info:#4C566A,spinner:#4C566A,header:#4C566A,prompt:#81A1C1,marker:#EBCB8B" # set -gx FZF_DEFAULT_OPTS "--multi --layout=reverse --inline-info -# --color dark +# --bind alt-j:preview-down,alt-k:preview-up # --color fg:-1,bg:-1,hl:#c678dd,fg+:#ffffff,bg+:#4b5263,hl+:#d858fe # --color info:#98c379,prompt:#61afef,pointer:#be5046,marker:#e5c07b,spinner:#61afef,header:#61afef" set -gx FZF_DEFAULT_COMMAND "fd --type f --follow --hidden --exclude .git" diff --git a/home/.config/zsh/.zshenv b/home/.config/zsh/.zshenv index a28b74b..cdc76ce 100644 --- a/home/.config/zsh/.zshenv +++ b/home/.config/zsh/.zshenv @@ -50,10 +50,11 @@ export GOPROXY=direct export PF_INFO="ascii title kernel wm shell uptime pkgs memory" # fzf export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info + --bind alt-j:preview-down,alt-k:preview-up --color fg:#D8DEE9,bg:#2E3440,hl:#A3BE8C,fg+:#D8DEE9,bg+:#434C5E,hl+:#A3BE8C --color pointer:#BF616A,info:#4C566A,spinner:#4C566A,header:#4C566A,prompt:#81A1C1,marker:#EBCB8B" # export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info -# --color dark +# --bind alt-j:preview-down,alt-k:preview-up # --color fg:-1,bg:-1,hl:#c678dd,fg+:#ffffff,bg+:#4b5263,hl+:#d858fe # --color info:#98c379,prompt:#61afef,pointer:#be5046,marker:#e5c07b,spinner:#61afef,header:#61afef" export FZF_DEFAULT_COMMAND="fd --type f --follow --hidden --exclude .git"