From fa5623fca86220fe4091ac307581a7fe0dd9ee1b Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sun, 8 Nov 2020 16:56:01 +0300 Subject: [PATCH] add example configuration files for windows Related #431 --- etc/lfrc.cmd.example | 32 ++++++++++++++++++++++++++++++++ etc/lfrc.ps1.example | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 etc/lfrc.cmd.example create mode 100644 etc/lfrc.ps1.example diff --git a/etc/lfrc.cmd.example b/etc/lfrc.cmd.example new file mode 100644 index 0000000..c1bfd15 --- /dev/null +++ b/etc/lfrc.cmd.example @@ -0,0 +1,32 @@ +# interpreter for shell commands +set shell cmd + +# Shell commands with multiline definitions and/or positional arguments and/or +# quotes do not 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. + +# change the editor used in default editor keybinding +# There is no builtin terminal editor installed in Windows. The default editor +# mapping uses 'notepad' which launches in a separate GUI window. You may +# instead install a terminal editor of your choice and replace the default +# editor keybinding accordingly. +map e $vim %f% + +# change the pager used in default pager keybinding +# The standard pager used in Windows is 'more' which is not a very capable +# pager. You may instead install a pager of your choice and replace the default +# pager keybinding accordingly. +map i $less %f% + +# change the shell used in default shell keybinding +map w $powershell + +# change 'doc' command to use a different pager +cmd doc $lf -doc | less + +# leave some space at the top and the bottom of the screen +set scrolloff 10 + +# use enter for shell commands +map shell diff --git a/etc/lfrc.ps1.example b/etc/lfrc.ps1.example new file mode 100644 index 0000000..ae8c55d --- /dev/null +++ b/etc/lfrc.ps1.example @@ -0,0 +1,36 @@ +# interpreter for shell commands +set shell powershell + +# Shell commands with multiline definitions and/or positional arguments and/or +# quotes do not 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 keybindings are defined using cmd syntax (i.e. '%EDITOR%') +# which does not work with powershell. Therefore, you need to override these +# keybindings with explicit choices accordingly. + +# change the editor used in default editor keybinding +# There is no builtin terminal editor installed in Windows. The default editor +# mapping uses 'notepad' which launches in a separate GUI window. You may +# instead install a terminal editor of your choice and replace the default +# editor keybinding accordingly. +map e $vim $Env:f + +# change the pager used in default pager keybinding +# The standard pager used in Windows is 'more' which is not a very capable +# pager. You may instead install a pager of your choice and replace the default +# pager keybinding accordingly. +map i $less $Env:f + +# change the shell used in default shell keybinding +map w $powershell + +# change 'doc' command to use a different pager +cmd doc $lf -doc | less + +# leave some space at the top and the bottom of the screen +set scrolloff 10 + +# use enter for shell commands +map shell