Sun Jun 23 10:42:28 PM CEST 2024

This commit is contained in:
Thomas Avé 2024-06-23 22:42:28 +02:00
parent 40a8a9806d
commit a87a2dad73
1 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,16 @@
number = true; number = true;
relativenumber = true; relativenumber = true;
cursorpreviewfmt = ""; cursorpreviewfmt = "";
previewer = toString (pkgs.writeShellScript "script" ''
case "''$1" in
*.tar*) tar tf "''$1";;
*.zip) unzip -l "''$1";;
*.rar) unrar l "''$1";;
*.7z) 7z l "''$1";;
*.pdf) ${pkgs.poppler_utils}/bin/pdftotext "''$1" -;;
*) ${pkgs.highlight}/bin/highlight -O ansi "''$1";;
esac
'');
}; };
keybindings = { keybindings = {
"<backspace2>" = "quit"; "<backspace2>" = "quit";