Skip to content
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

Enable history entry exclusion with leading space #9371

Merged
merged 1 commit into from Jun 10, 2023

Conversation

sholderbach
Copy link
Member

Description

Makes use of the feature introduced by nushell/reedline#566

If we consider this to be problematic we can decide to add a config
point for this behavior, but at first I was a bit hesistant expanding
the config in this area.

User-Facing Changes

Follows precedent found in bash/zsh/fish to exclude lines starting with
a space from the history.
Like in fish you can still recall the last entry once but it will not be
stored and will be forgotten after the next submitted entry.

Tests + Formatting

(-)

Makes use of the feature introduced by nushell/reedline#566

Follows precedent found in bash/zsh/fish to exclude lines starting with
a space from the history.
Like in fish you can still recall the last entry once but it will not be
stored and will be forgotten after the next submitted entry.

If we consider this to be problematic we can decide to add a config
point for this behavior, but at first I was a bit hesistant expanding
the config in this area.
@fdncred
Copy link
Collaborator

fdncred commented Jun 9, 2023

are we ready to land this?

@amtoine
Copy link
Member

amtoine commented Jun 9, 2023

@sholderbach
this might close #9387 as well 👍

@sholderbach
Copy link
Member Author

My preference for good defaults over too much config is expressed in this (as it adds it without a config point.)

If there are good reasons not to do it, I can add a config point. Else I would vote for landing it and if there is a significant pushback we can follow this up with a config.

(The bash options are mentioned in #9387, but if I read it correctly the main interest is in having the feature?)

@fdncred
Copy link
Collaborator

fdncred commented Jun 10, 2023

i'm fine with landing it without a config point. let's see how it goes.

@fdncred fdncred merged commit 374df9d into nushell:main Jun 10, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't save history for commands starting with a space
3 participants