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

Support flushing command history #148

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

414owen
Copy link

@414owen 414owen commented Nov 30, 2020

Doesn't look like #36 will be updated, I'm happy to pick up where that PR left off.

Changes:

  • History is appended instead of overwritten
  • Can be enabled via the preference incAppendHistory (based on ZSH's INC_APPEND_HISTORY)

Regressions:

In order to append to history file, items are now written in the order they were entered. This is the opposite of the previous behavior, so when applications upgrade, their history up to that point will be in reverse order.

nkartashov and others added 3 commits November 24, 2020 23:17
Previously command history was only flushed after the end of session,
this commit adds flushHistory function which performs the flushing and
a flag to enforce flushing after every command.
Previously command history was only flushed after the end of session,
this commit adds flushHistory function which performs the flushing and
a flag to Prefs to enforce flushing after every command.
@nkartashov
Copy link

@414owen hey, sorry for disappearing, happy for you to pick it up!

@414owen
Copy link
Author

414owen commented Apr 18, 2021

👋 @judah

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.

2 participants