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
Add jumps
command for displaying the jump list
#1233
Conversation
I think this is a very nice idea. Thanks! In the docs, we could mention how this is supposed to be used. You could add: I'm also thinking that it would be good to reverse the output. If the jump list is longer than the screen, the user probably wants to see the current position (which is usually the last position in the jump list) immediately. Currently, they'd have to scroll to the very bottom to see it. For reference, the output currently looks like this: Usual case:
After a few
|
Hi @ilyagr, thanks for your comments! I've updated the documentation to mention the jump counts. Regarding the order for which the jump list locations are printed, I do agree that it's more user-friendly to print the recent locations first. However Vim uses the opposite order - I'm sort of undecided here but I decided to reverse the order as you suggested anyway. This is done in b26324e, the commit can be reverted if anyone doesn't like it. BTW the following is sort of off-topic and probably should take place in a separate discussion, but I do recall you wanting to refactor the code for handling the pager - have you made any progress on it? I was reading the code so I could implement |
Thanks!
I think this is more important than matching what Vim does exactly. In any case, thanks for changing it, and let's see if anybody dislikes the reversed order.
Yes, I have a version of it from a while ago that I need to freshen up. Sorry for the delay. |
That's OK, you can take your time, no need to rush for this kind of thing.🙂 I'm just wondering about other ways this power can be harnessed. In general the idea of having |
Looks good, thank you @joelim-work for the patch and thank you @ilyagr for the review and suggestions. |
I thought it would be nice to add more functionality for displaying the internal state, now that there is some support for piping data into a pager. I have tried to keep the implementation similar to the Vim counterpart, using relative numbers (useful for jumping with a count, such as 3[), as well as displaying a
>
for the current location in the jump list.