-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement request: option for suppressing prompts #513
Comments
In the second case, the ^P flag already exists to suppress the !done prompt. See #462. I will look into doing something about the first case. |
Maybe the default could be to suppress the message only if the exit code is 0? (and one could change it to always suppress or always show). As for the LESSOPEN one, maybe the default could be to warn only if the file would be considered binary if Though I'd think such default change should wait till after the release. |
Maybe I'm misunderstanding, but I don't think that would be feasible. If the user types
by default they would want to see the output of ls even if the exit code is zero. |
I'm guessing you mean it won't be useful? And yes, that's what I meant, but indeed for this use case where the user is interested in observing the output of the command, then indeed it would not be useful to suppress the pause on success. Apologies for not thinking it through enough (I don't use this feature). |
Sometimes prompts are unwanted or annoying.
WARNING: This file was viewed via LESSOPEN (press RETURN)
If the
less
configured as followingLESSOPEN="| 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.!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.
The text was updated successfully, but these errors were encountered: