programs.lf.enable
Whether to enable lf.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.lf.package
The lf package to use.
Type: package
Default:
pkgs.lf
Declared by:
programs.lf.cmdKeybindings
Keys to bind to command line commands which can only be one of the builtin commands. Keys set to null or an empty string are deleted.
Type: attribute set of (null or string)
Default:
{ }
Example:
{
"<c-g>" = "cmd-escape";
}
Declared by:
programs.lf.commands
Commands to declare. Commands set to null or an empty string are deleted.
Type: attribute set of (null or string)
Default:
{ }
Example:
{
get-mime-type = "%xdg-mime query filetype \"$f\"";
open = "$$OPENER $f";
}
Declared by:
programs.lf.extraConfig
Custom lfrc lines.
Type: strings concatenated with “\n”
Default:
""
Example:
''
$mkdir -p ~/.trash
''
Declared by:
programs.lf.keybindings
Keys to bind. Keys set to null or an empty string are deleted.
Type: attribute set of (null or string)
Default:
{ }
Example:
{
D = "trash";
U = "!du -sh";
gg = null;
gh = "cd ~";
i = "$less $f";
}
Declared by:
programs.lf.previewer.keybinding
Key to bind to the script at previewer.source and
pipe through less. Setting to null will not bind any key.
Type: null or string
Default:
null
Example:
"i"
Declared by:
programs.lf.previewer.source
Script or executable to use to preview files. Sets lf’s
previewer option.
Type: null or absolute path
Default:
null
Example:
pkgs.writeShellScript "pv.sh" ''
#!/bin/sh
case "$1" in
*.tar*) tar tf "$1";;
*.zip) unzip -l "$1";;
*.rar) unrar l "$1";;
*.7z) 7z l "$1";;
*.pdf) pdftotext "$1" -;;
*) highlight -O ansi "$1" || cat "$1";;
esac
''
Declared by:
programs.lf.settings
An attribute set of lf settings. See the lf documentation for
detailed descriptions of these options. Prefer
programs.lf.previewer.* for setting lf’s previewer
option. All string options are quoted with double quotes.
Type: attribute set of (string or signed integer or list of (string or signed integer) or boolean)
Default:
{ }
Example:
{
number = true;
ratios = [
1
1
2
];
tabstop = 4;
}
Declared by: