Skip to content

Conversation

sakurawald
Copy link
Contributor

@sakurawald sakurawald commented Dec 5, 2024

The vi-jump-previous command is a useful command, to jump between current point, and previous point.

A use-case: you are writing a function b, which calls the function a, you need to jump between the definition of a and b. Just double pressed the ' key, it will works.


The implementaion is easy: We can compose the vi-jump-back command and define-motion.
The effect is to define a new motion-command, its function is vi-jump-back.
But because it is a motion-command, so the vi jumplist facility will save current-point for us automatically.

@sakurawald sakurawald changed the title add: the missing vi-jump-previous command. add: the missing vi-jump-previous command and binding. Dec 5, 2024
@cxxxr cxxxr merged commit 0269c53 into lem-project:main Dec 5, 2024
2 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.

2 participants