aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fzf/.config
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-02-26 16:56:25 -0600
committerToby Vincent <tobyv@tobyvin.dev>2024-02-26 16:56:25 -0600
commit664c0d9797010da1c6f3324f9b0cab0f541c6693 (patch)
tree9fd26f9ceff7f3ae46547b0ff0e26f4144041dd6 /fzf/.config
parent6ec74905eb55684794bf23d415fdaeb18b4b2cb2 (diff)
fix(fzf): fix issue with colors
Diffstat (limited to 'fzf/.config')
-rw-r--r--fzf/.config/profile.d/30-fzf.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/fzf/.config/profile.d/30-fzf.sh b/fzf/.config/profile.d/30-fzf.sh
new file mode 100644
index 0000000..d9e89cb
--- /dev/null
+++ b/fzf/.config/profile.d/30-fzf.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+export FZF_TMUX="${TMUX:+1}"
+export FZF_TMUX_OPTS='-p80%,80%'
+export FZF_PREVIEW_COMMAND='less {} 2>/dev/null'
+export FZF_DEFAULT_COMMAND="fd --type f || git ls-tree -r --name-only HEAD || rg --files || find ."
+export FZF_DEFAULT_OPTS='--bind ctrl-q:abort
+--bind ctrl-y:preview-up
+--bind ctrl-e:preview-down
+--bind ctrl-u:preview-half-page-up
+--bind ctrl-d:preview-half-page-down
+--bind ctrl-b:preview-page-up
+--bind ctrl-f:preview-page-down
+--bind alt-up:half-page-up
+--bind alt-down:half-page-down
+--color fg:#ebdbb2,hl:#fabd2f,fg+:#ebdbb2,hl+:#fabd2f
+--color info:#83a598,prompt:#bdae93,spinner:#fabd2f,pointer:#83a598,marker:#fe8019,header:#665c54'