I am not able to reopen the previous PR (#7738). So opening a new one.
Port the "jumpoptions" support from NeoVim:
https://neovim.io/doc/user/motion.html#jumplist-stack
neovim/neovim@39094b3
neovim/neovim#11530
https://vi.stackexchange.com/questions/18344/how-to-change-jumplist-behavior
Based on the feedback in the previous PR, it looks like many people like this option.
Bram wanted a much more elaborate infrastructure (similar to the undo tree) that is based on
timestamps to go back in time to different jump locations. This will take quite a bit of effort
to implement. So instead we can with this option for now.
https://github.com/vim/vim/pull/13134
(10 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Merging #13134 (8557022) into master (aa64ba1) will increase coverage by
0.59%.
The diff coverage is100.00%.
@@ Coverage Diff @@ ## master #13134 +/- ## ========================================== + Coverage 82.13% 82.72% +0.59% ========================================== Files 160 150 -10 Lines 195239 182042 -13197 Branches 43815 40917 -2898 ========================================== - Hits 160351 150587 -9764 + Misses 22050 18512 -3538 - Partials 12838 12943 +105
| Flag | Coverage Δ | |
|---|---|---|
| huge-clang-Array | 82.72% <100.00%> (-0.03%) |
⬇️ |
| linux | 82.72% <100.00%> (-0.03%) |
⬇️ |
| mingw-x64-HUGE | ? |
|
| mingw-x86-HUGE | ? |
|
| windows | ? |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Files Changed | Coverage Δ | |
|---|---|---|
| src/mark.c | 88.50% <100.00%> (-0.05%) |
⬇️ |
| src/optionstr.c | 91.67% <100.00%> (+0.11%) |
⬆️ |
... and 143 files with indirect coverage changes
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
thanks. sounds like there is some demand for this, so let me include this.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
sounds like there is some demand for this,
not sure if i had readed or tried correctly, this seems made ctrl-i useless, was that really useful demand or it is a bug of this.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
sounds like there is some demand for this,
not sure if i read or tried correctly, this seems made ctrl-i useless, was that really a useful demand or it is a bug of this.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
sounds like there is some demand for this,
not sure if i read or tried correctly, this seems made ctrl-i useless, was that really a useful demand or it is a bug of this.
The CTRL-O/CTRL-I commands to browse the jump list still work. Note that without this option, if you go back
in the jump list using CTRL-O and then jump to a new location, the new jump location will be added to the end
of the jump list. Now if you press CTRL-O, it will go to a different location (confusing the users). With this option,
the jump list will behave like the tag stack. Please refer to the previous PR for the comments and also you can
try this option out in the latest Vim.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
There is a thread in Vi stack exchange about this: https://vi.stackexchange.com/questions/18344/how-to-change-jumplist-behavior
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
as my understanding, the traditional one maybe a bit messed order after ctrl-o and new jump,
but this added 'stack' one may clear the record, i felt did not it make case be worse?
a.k.a bram said based on timestamp maybe was the right one IF really want to refine.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Think of it as using the browser based forward/backward navigations.
This may actually make me use the jumplist, because I always found it to be too confusing where to jump next.
Yes a timestamp based navigation (similar to the undo-stack) may be even more desirable, but we then have to think about additional commands to navigate into the different branches (and it may still be confusing then)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
because I always found it to be too confusing where to jump next
yes, that traditional one sometime made me feel confused too,
but i may like keeping the jump list history there too, this added 'stack' one made me feel it worse.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
well, if you don't have to use this option.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
yes, i did not and would not set it.
but, hi, my point was let's keeping the style which bram or classic vim's style which preferred to add confirmed refined one, vs not a mid-stage of something, a.k.a not just someone said it is neovim or so-called IDE style then hurry to add it.
// and i doubt was this really a IDE style?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()