Skip to content

Conversation

jorbakk
Copy link

@jorbakk jorbakk commented Mar 30, 2023

New backend for handling a large number of history entries along with a different user interface for handling the history:

  • practically unlimited number of history entries with fast access thanks to an sqlite backend
  • history hints are shown while typing input or navigating history (similar to fish shell)
  • input can be seamlessly extended with the history hint using the usual keys for cursor movement
  • history hints are continuously updated using a prefix based search through history while typing

The sqlite backend adds a dependency and could be replaced by e.g. a memory mapped file in the long run. However, currently it's easier to explore more advanced features with the sqlite backend. Advanced features could be:

  • handle parallel sessions (e.g. based on terminal name) and merge history when exiting a session
  • prioritize commands issued in the current working directory
  • add a directory history
  • ...

jorbakk added 30 commits March 18, 2023 18:43
jorbakk added 30 commits March 26, 2023 09:04
This would lead to inconsistencies with showing/hiding and handling
the history entries.
Implementation is most likely not fully correct ... it's just to
show that the original backend should also work with the new API.
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.

1 participant