Skip to content

Enhancement request: option for suppressing prompts #513

@telychko

Description

@telychko

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions