Is there an existing request for this?
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
Is there an existing request for this?
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'sHISTCONTROL=ignorespace.Commands entered at
mc'spanels that begin with a space wouldn't be remembed (invoked by a subsequent Alt+P or Alt+H, nor saved tomc's own history).I truly like this feature of
bashand 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 asrm somefile,git reset --hardetc.(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_historyor equivalent, it's aboutmc's history.)Describe alternatives you've considered
No response
Additional context
No response