fzfmenu: make --reverse configurable

This commit is contained in:
tv 2020-06-16 21:38:32 +02:00
parent aa019f372e
commit f027eaacf2

View File

@ -26,6 +26,10 @@ let
default = true;
type = types.bool;
};
reverse = mkOption {
default = true;
type = types.bool;
};
windowTitle = mkOption {
default = "fzfmenu";
type = types.str;
@ -87,7 +91,7 @@ pkgs.writeDashBin "fzfmenu" ''
${pkgs.fzf}/bin/fzf \
--history=/dev/null \
--prompt="$PROMPT" \
--reverse \
${optionalString cfg.reverse "--reverse"} \
${optionalString cfg.printQuery "--print-query"} \
${optionalString cfg.printQuery "| ${pkgs.coreutils}/bin/tail -1"}
''