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="
|
"--processes="
|
||||||
"--variables=")))))
|
"--variables=")))))
|
||||||
(environment-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'")
|
`(("LS_COLORS" . "'di=01;34:ln=01;36:or=01;31'")
|
||||||
("fzf_preview_dir_cmd" . "")
|
|
||||||
("FZF_DEFAULT_OPTS"
|
("FZF_DEFAULT_OPTS"
|
||||||
. ("--filepath-word"
|
. ("--filepath-word"
|
||||||
"--height=~40%"
|
"--height=~40%"
|
||||||
"--layout=reverse"
|
"--layout=reverse"
|
||||||
|
"--preview=''"
|
||||||
"--scheme=path"
|
"--scheme=path"
|
||||||
"--scroll-off=2"
|
"--scroll-off=2"
|
||||||
"--color=fg:blue,hl:#cccccc"
|
"--color=fg:blue:bold,hl:#cccccc"
|
||||||
"--color=fg+:blue,hl+:#cccccc"
|
"--color=fg+:blue:bold,hl+:#cccccc"
|
||||||
"--color=prompt:blue,pointer:blue"
|
"--color=prompt:blue,pointer:blue"
|
||||||
"--color=info:#ffffff,border:#000000"))
|
"--color=info:#ffffff,border:#000000"))
|
||||||
("fzf_fd_opts"
|
("fzf_base_fd_opts" . ("--exclude='\\..*'"
|
||||||
. ("--absolute-path"
|
"--follow"
|
||||||
"--exclude='\\..*'"
|
"--type directory"))
|
||||||
"--follow"
|
("fzf_fd_opts" . ("$fzf_base_fd_opts"
|
||||||
"--base-directory=$HOME"
|
"--base-directory=$HOME"
|
||||||
"--type=directory"))))))
|
"--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|#
|
#|Environment variables services|#
|
||||||
(simple-service 'home-shell-environment-variables
|
(simple-service 'home-shell-environment-variables
|
||||||
|
|
Loading…
Reference in New Issue