Skip to content

Add an "ignorespace" option #5072

Description

@egmontkob

Is there an existing request for this?

  • I have searched the existing issues

Is your feature request related to a problem?

4.8.33, git

Describe the solution you'd like

Add a config option equivalent to bash's HISTCONTROL=ignorespace.

Commands entered at mc's panels that begin with a space wouldn't be remembed (invoked by a subsequent Alt+P or Alt+H, nor saved to mc's own history).

I truly like this feature of bash and use it on a regular basis. I have the muscle memory to begin commands with a space that are potentially harmful if later accidentally invoked again via the history, such as rm somefile, git reset --hard etc.

(Note that this has nothing to do with setting this env var for the subshell; we already do that. It's not about the subshell's .bash_history or equivalent, it's about mc's history.)

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: configConfiguration INI filesarea: coreIssues not related to a specific subsystemprio: lowMinor problem or easily worked around

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions