Use xdg dir and default sort fzf

This commit is contained in:
BarbUk 2021-06-18 13:46:14 +04:00
parent 60460e7644
commit 2c30426b60
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE

4
snippy
View File

@ -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