Skip to content

Omit blank lines from command history #2673

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

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

johnnovak
Copy link
Member

@johnnovak johnnovak commented Jul 10, 2023

Should be self-explanatory. Type dir in the current version, then press Enter a couple of times, then execute say mixer. You can't just press up-arrow twice to get back to the dir command in the history; you need to go through every single blank line as well...

That's quite bad; none of the normal shells work like that!

This is how all good command line shells work.
@johnnovak johnnovak self-assigned this Jul 10, 2023
@johnnovak johnnovak added the enhancement New feature or enhancement of existing features label Jul 10, 2023
Copy link
Collaborator

@weirddan455 weirddan455 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good change. I wrote some checks to avoid reading and writing blank lines to the history file but that didn't affect the in memory history for the current session.

@johnnovak johnnovak merged commit 55f0d6c into main Jul 10, 2023
@johnnovak johnnovak deleted the jn/omit-blank-lines-from-command-history branch July 12, 2023 08:18
@johnnovak johnnovak added the DOS Issues related to DOS integration or DOS commands label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DOS Issues related to DOS integration or DOS commands enhancement New feature or enhancement of existing features
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants