home-environments: radio: Add toggle for --relative-path and --base-directory=$PWD in fish-fzf

main
Luis Guilherme Coelho 2024-11-26 04:19:03 -03:00
parent 58a9713d4a
commit 9442242597
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 15 additions and 11 deletions

View File

@ -246,26 +246,30 @@
"--processes="
"--variables=")))))
(environment-variables
;; adicionar toggle de dotfiles na lista e no preview
;; adicionar toggle pro base-directory ser $PWD
`(("LS_COLORS" . "'di=01;34:ln=01;36:or=01;31'")
("fzf_preview_dir_cmd" . "")
("FZF_DEFAULT_OPTS"
. ("--filepath-word"
"--height=~40%"
"--layout=reverse"
"--preview=''"
"--scheme=path"
"--scroll-off=2"
"--color=fg:blue,hl:#cccccc"
"--color=fg+:blue,hl+:#cccccc"
"--color=fg:blue:bold,hl:#cccccc"
"--color=fg+:blue:bold,hl+:#cccccc"
"--color=prompt:blue,pointer:blue"
"--color=info:#ffffff,border:#000000"))
("fzf_fd_opts"
. ("--absolute-path"
"--exclude='\\..*'"
"--follow"
"--base-directory=$HOME"
"--type=directory"))))))
("fzf_base_fd_opts" . ("--exclude='\\..*'"
"--follow"
"--type directory"))
("fzf_fd_opts" . ("$fzf_base_fd_opts"
"--base-directory=$HOME"
"--absolute-path"))
("fzf_directory_opts"
. ,(map (match-lambda
((bind . cmd)
(format #f "'--bind=~a:~a'" bind cmd)))
`(("ctrl-p" . "reload(fd $fzf_base_fd_opts)")
("ctrl-alt-p" . "reload(fd $fzf_fd_opts)"))))))))
#|Environment variables services|#
(simple-service 'home-shell-environment-variables