1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(fzf): preview commands

This commit is contained in:
2023-08-07 14:22:47 +02:00
parent 3be3410baa
commit 249e8c016d

View File

@@ -11,12 +11,12 @@
defaultOptions = ["--height=40%"]; defaultOptions = ["--height=40%"];
changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d"; changeDirWidgetCommand = "${pkgs.fd}/bin/fd --type d";
changeDirWidgetOptions = [ changeDirWidgetOptions = [
"--preview '${pkgs.tree}/bin/tree -L 1 {}'" "--preview='${pkgs.tree}/bin/tree -L 1 {}'"
"--bind=space:toggle-preview" "--bind=space:toggle-preview"
"--preview-window=hidden" "--preview-window=hidden"
]; ];
fileWidgetCommand = defaultCommand; fileWidgetCommand = defaultCommand;
fileWidgetOptions = ["--preview 'head -$LINES {}'"]; fileWidgetOptions = ["--preview='head -$LINES {}'"];
}; };
}; };
} }