mirror of https://codeberg.org/anemofilia/zero
home-environments: radio: Add toggle for --relative-path and --base-directory=$PWD in fish-fzf
parent
58a9713d4a
commit
9442242597
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue