Sometimes prompts are unwanted or annoying.
- Prompt for editing preprocessed file
WARNING: This file was viewed via LESSOPEN (press RETURN)
If the less configured as following
LESSOPEN="| source-highlight --out-format=esc --input=%s 2> /dev/null" less filename.c
So, every time I try to edit a file via visual command, I get this prompt.
- Prompt after shell execution
!done (press RETURN)
In general, it's a good idea to keep the screen after a command execution to give user an opportunity to read the command output.
But, it's annoying when shell command is a interactive command like another instance of less. Of course, it's actual only if lesskey configured to execute such commands.
Suggestions
- It could be option like in mutt : prompt-after. It suppresses the output of prompts.
- It could be an inline flag e.g.
!@cmd' or 'LESSOPEN="|@ suppresses the prompt.
Thank you for making one of the greatest pager.
Sometimes prompts are unwanted or annoying.
WARNING: This file was viewed via LESSOPEN (press RETURN)If the
lessconfigured as followingLESSOPEN="| source-highlight --out-format=esc --input=%s 2> /dev/null" less filename.cSo, every time I try to edit a file via
visualcommand, I get this prompt.!done (press RETURN)In general, it's a good idea to keep the screen after a command execution to give user an opportunity to read the command output.
But, it's annoying when shell command is a interactive command like another instance of
less. Of course, it's actual only if lesskey configured to execute such commands.Suggestions
!@cmd' or 'LESSOPEN="|@suppresses the prompt.Thank you for making one of the greatest pager.