add 'shellflag' option to customize shell flag

cc #597
This commit is contained in:
Gokcehan committed 2021-04-04 18:23:14 +03:00
1 parent aebff483a7
commit ca0068514a
8 files changed
+29 -7

No files matched your search

+6 -2
View File
@@ -126,6 +126,7 @@ The following options can be used to customize the behavior of lf:
reverse bool (default off)
scrolloff int (default 0)
shell string (default 'sh' for unix and 'cmd' for windows)
shellflag string (default '-c' for unix and '/c' for windows)
shellopts []string (default '')
smartcase bool (default on)
smartdia bool (default off)
@@ -641,8 +642,11 @@ A smaller offset can be used when the current file is close to the beginning or
shell string (default 'sh' for unix and 'cmd' for windows)
Shell executable to use for shell commands.
Shell commands are executed as 'shell shellopts -c command -- arguments'.
On windows, '/c' is used instead of '-c' which should work in 'cmd' and 'powershell'.
Shell commands are executed as 'shell shellopts shellflag command -- arguments'.
shellflag string (default '-c' for unix and '/c' for windows)
Command line flag used to pass shell commands.
shellopts []string (default '')