Files
lf/etc/lfrc.ps1.example
T
CatsDeservePets cb8026d627 Add visual-mode (#2021)
- Add functionality for visually selecting files
- Add keymap for Visual mode, and supporting `nmap` and `vmap` commands
- Add mode column for `maps` command, also add `nmaps` and `vmaps` commands
- Add `visualfmt` option for configuring appearance for the visual selection
- Add `%m/%M` placeholders for displaying the mode
- Add marker indicating the number of visually selected files in the ruler
- Add `visual` as an identifier when exporting `lf_mode`
- Remove experimental `invert-below` command
2025-07-05 11:33:45 +10:00

31 lines
1.2 KiB
Plaintext

# interpreter for shell commands
set shell pwsh
# allow the usage of $args inside shell commands
set shellflag "-cwa"
# speed up Powershell by skipping the profile
set shellopts "-nop"
# Shell commands with multiline definitions and/or positional arguments and/or
# quotes only partly work in Windows. For anything but the simplest shell commands,
# it is recommended to create separate script files and simply call them here
# in commands or mappings.
#
# Also, the default commands and keybindings are defined using cmd syntax (i.e. '%EDITOR%')
# which does not work with Powershell. Therefore, you need to override these
# with explicit choices accordingly.
# change the default commands and keybindings to work in Powershell
cmd open &&$Env:OPENER.Trim('"', ' ') "$Env:f"
map e $&$Env:EDITOR "$Env:f"
map i !&$Env:PAGER "$Env:f"
map w $&$Env:SHELL
cmd doc !&$Env:lf -doc | &$Env:PAGER
map <f-1> doc
cmd maps !&$Env:lf -remote "query $Env:id maps" | &$Env:PAGER
cmd nmaps !&$Env:lf -remote "query $Env:id nmaps" | &$Env:PAGER
cmd vmaps !&$Env:lf -remote "query $Env:id vmaps" | &$Env:PAGER
cmd cmaps !&$Env:lf -remote "query $Env:id cmaps" | &$Env:PAGER
cmd cmds !&$Env:lf -remote "query $Env:id cmds" | &$Env:PAGER