From b350f60a20e86f90c177a0b3c9473b66c5c7ca30 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Tue, 26 Nov 2024 14:57:24 -0300 Subject: [PATCH] home-environments: radio: Minor tweaks over fish-fzf configuration --- home-environments/radio.scm | 25 +++++++++--------------- home-environments/radio/fish-configs.scm | 11 +++++++++++ 2 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 home-environments/radio/fish-configs.scm diff --git a/home-environments/radio.scm b/home-environments/radio.scm index 7b4a88e..8ce19a7 100644 --- a/home-environments/radio.scm +++ b/home-environments/radio.scm @@ -243,28 +243,21 @@ (plugins (list fish-fzf)) (config - (list (plain-file "fish-fzf.fish" - (string-join - `("fzf_configure_bindings" - "--directory=@@" - "--git_log=@l" - "--git_status=@s" - "--history=@h" - "--processes=" - "--variables="))))) + (list fish-config:fzf)) (environment-variables `(("LS_COLORS" . "'di=01;34:ln=01;36:or=01;31'") + ("fzf_preview_dir_cmd" . "''") ("FZF_DEFAULT_OPTS" - . ("--filepath-word" - "--height=~40%" + . ("--color=fg:blue:bold,hl:#cccccc" + "--color=fg+:blue:bold,hl+:#cccccc" + "--color=prompt:blue,pointer:blue" + "--color=info:#ffffff,border:#000000" + "--filepath-word" + "--height=~60%" "--layout=reverse" "--preview=''" "--scheme=path" - "--scroll-off=2" - "--color=fg:blue:bold,hl:#cccccc" - "--color=fg+:blue:bold,hl+:#cccccc" - "--color=prompt:blue,pointer:blue" - "--color=info:#ffffff,border:#000000")) + "--scroll-off=2")) ("fzf_base_fd_opts" . ("--exclude='\\..*'" "--follow" "--type directory")) diff --git a/home-environments/radio/fish-configs.scm b/home-environments/radio/fish-configs.scm new file mode 100644 index 0000000..a355454 --- /dev/null +++ b/home-environments/radio/fish-configs.scm @@ -0,0 +1,11 @@ +(define-module (home-environments radio fish-configs) + #:use-module (guix gexp) + + #:export (fzf)) + +(define fzf + (plain-file "fish-fzf.fish" + (string-join + `("fzf_configure_bindings --directory=@@ --history= --processes= " + "bind -M default / _fzf_search_history") + "\n")))