Set minimum "string length" for command line history (Alt+F8)
Posted: 2023-04-11, 19:10 UTC
By accident I have sometimes typed a letter in the command line (which I don't notice) and then a short while later I hit enter to open file or enter a directory but the letter is there so the "command" is executed which of course doesn't exist and you get a MsgBox warning. So far so good.
But I also often use the command line history and then I see these "letters" there which have no purpose, so perhaps a minimum length setting could be introduced so that commands "shorter then X" aren't added to the command line history. Even if you really have a one letter command (say "z.cmd" somewhere in your path) there is very little value (for me) to have that one letter "z" in the history as it is way faster to just type z again vs looking it up in the history which is more useful for longer commands.
I would set it to 3 for example, I have some 3 letter batch files that I simply retype because it is more work to get them back from the history.
The current behaviour can remain of course, but given the user the option to set a threshold would be nice I think.
But I also often use the command line history and then I see these "letters" there which have no purpose, so perhaps a minimum length setting could be introduced so that commands "shorter then X" aren't added to the command line history. Even if you really have a one letter command (say "z.cmd" somewhere in your path) there is very little value (for me) to have that one letter "z" in the history as it is way faster to just type z again vs looking it up in the history which is more useful for longer commands.
I would set it to 3 for example, I have some 3 letter batch files that I simply retype because it is more work to get them back from the history.
The current behaviour can remain of course, but given the user the option to set a threshold would be nice I think.