mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 16:28:17 +00:00
feat(jumplist): allow opting out of removing unloaded buffers (#29347)
Problem: Cannot opt out of removing unloaded buffers from the jumplist. Solution: Only enable that with "unload" flag in 'jumpoptions'.
This commit is contained in:
@@ -4495,7 +4495,7 @@ return {
|
||||
{
|
||||
abbreviation = 'jop',
|
||||
cb = 'did_set_jumpoptions',
|
||||
defaults = { if_true = '' },
|
||||
defaults = { if_true = 'unload' },
|
||||
deny_duplicates = true,
|
||||
desc = [=[
|
||||
List of words that change the behavior of the |jumplist|.
|
||||
@@ -4508,6 +4508,9 @@ return {
|
||||
view When moving through the jumplist, |changelist|,
|
||||
|alternate-file| or using |mark-motions| try to
|
||||
restore the |mark-view| in which the action occurred.
|
||||
|
||||
unload Remove unloaded buffers from the jumplist.
|
||||
EXPERIMENTAL: this flag may change in the future.
|
||||
]=],
|
||||
expand_cb = 'expand_set_jumpoptions',
|
||||
full_name = 'jumpoptions',
|
||||
|
Reference in New Issue
Block a user