Use xdg dir and default sort fzf
This commit is contained in:
parent
60460e7644
commit
2c30426b60
4
snippy
4
snippy
@ -50,8 +50,8 @@
|
|||||||
#
|
#
|
||||||
set -o errexit -o pipefail -o nounset
|
set -o errexit -o pipefail -o nounset
|
||||||
|
|
||||||
readonly snippets_directory=$XDG_CONFIG_HOME/snippy
|
readonly snippets_directory=${XDG_CONFIG_HOME:-$HOME/.config}/snippy
|
||||||
readonly rofi_args=(-dmenu -i -sort -async-pre-read 20 -theme-str 'element-icon { size: 2.35ch;}' -kb-accept-custom "" -kb-custom-1 "Ctrl+Return")
|
readonly rofi_args=(-no-lazy-grab -dmenu -i -sort -sorting-method fzf -async-pre-read 20 -theme-str 'element-icon { size: 2.35ch;}' -kb-accept-custom "" -kb-custom-1 "Ctrl+Return")
|
||||||
readonly fzf_args=(--select-1 --reverse --inline-info --multi --preview '( bat --style auto --color always --language bash {} || highlight --force -O ansi -l {} 2> /dev/null ) | head -200' -1)
|
readonly fzf_args=(--select-1 --reverse --inline-info --multi --preview '( bat --style auto --color always --language bash {} || highlight --force -O ansi -l {} 2> /dev/null ) | head -200' -1)
|
||||||
|
|
||||||
# Placeholders
|
# Placeholders
|
||||||
|
Loading…
Reference in New Issue
Block a user