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

Time machine? #60

Closed
pickfire opened this issue Jun 2, 2021 · 4 comments
Closed

Time machine? #60

pickfire opened this issue Jun 2, 2021 · 4 comments
Assignees
Labels
C-enhancement Category: Improvements

Comments

@pickfire
Copy link
Contributor

pickfire commented Jun 2, 2021

:ear ~1f and :lat 1h in vim IIRC

And also history branching like g+ and g-, not sure if kakoune supports them but I miss them.

@archseer
Copy link
Member

archseer commented Jun 3, 2021

I would be interested in this, it should be possible to build by extending the History implementation (we'd need to store a timestamp of each change as well).

@pickfire Since you've been quite active so far, can I invite you to join us on the Matrix channel?

@archseer archseer added the C-enhancement Category: Improvements label Jun 3, 2021
@jbaa
Copy link
Contributor

jbaa commented Jun 3, 2021

I'd like to take a stab at this. It sounds like a good feature to get to know the editor state, the history representation, and adding new commands.

My current understanding is that for the :earlier and :later commands we can reuse the current history implementation. For branching we'd need to represent the change history as a change tree that branches on new insertions.

Therefore it will be easier to start with the time machine, and follow up with branching, or even split branching out to a separate issue.

@archseer
Copy link
Member

archseer commented Jun 4, 2021

Go for it! The issue is yours :)

@archseer
Copy link
Member

Closed by #194 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

3 participants