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

Buffered commands: Relative jump #68

Open
stevesims opened this issue Oct 22, 2023 · 0 comments
Open

Buffered commands: Relative jump #68

stevesims opened this issue Oct 22, 2023 · 0 comments

Comments

@stevesims
Copy link
Contributor

Is it useful to add in "relative" jump functionality?

The inclusion of this functionality was suggested in #51

This could/would allow for jumping solely within a buffer, supporting jumping backwards/forwards a fixed number of either blocks, or bytes.

This could have some uses... But is it useful enough to warrant its inclusion?

Currently we only support jumping to absolute positions. Arguably that is enough...

One slight complication with adding this in would be that it wouldn't really fit with the the shape of the current buffered commands API, as such a command explicitly shouldn't specify the buffer, as it's inherently "this buffer".

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

No branches or pull requests

1 participant