Make Vim persist editing state without fuss
Full Changelog: https://github.com/zhimsel/vim-stay/compare/v1.4.2...v1.4.3
This release includes some internal CI improvements, documentation fixes/linting, and some minor improvements to the :CleanViewdir
command.
A few of bugs were fixed, and some documentation was updated.
Please refer to git diff v1.4.1 v1.4.2
for a list of what changed.
Fixed:
glob2regpat()
would not be detected.
… plus all the goodies from release 1.3.0:
Added:
vim-stay now stores the path to the last view session file it loaded in b:stay_loaded_view
.
Changed:
Sourcing / writing autocommands for view session files are not suppressed anymore.
Fixed:
glob2regpat()
), there should be no more delays when switching buffers.BufStay*Post
autocommands would not always be fired if view session loading / saving failed, which could leave integration modules in an inconsistent state.SessionLoadPost
was fired even if no view session file was actually loaded, which would cause trouble with other plug-ins not expecting such spurious events (see https://github.com/Konfekt/FastFold/issues/16).Removed:
Nothing.
Added:
vim-stay now stores the path to the last view session file it loaded in b:stay_loaded_view
.
Changed:
Sourcing / writing autocommands for view session files are not suppressed anymore.
Fixed:
glob2regpat()
), there should be no more delays when switching buffers.BufStay*Post
autocommands would not always be fired if view session loading / saving failed, which could leave integration modules in an inconsistent state.SessionLoadPost
was fired even if no view session file was actually loaded, which would cause trouble with other plug-ins not expecting such spurious events (see https://github.com/Konfekt/FastFold/issues/16).Removed:
Nothing.
Added:
backupskip
option):CleanViewdir
command to easily remove view session files from your viedwir
(#8):StayReload
command for when you need to reload vim-stay and / or its 3rd party integrationsChanged:
SessionLoadPost
eventunsilent
everything anymorestay#shim#globpath
is now statically defined depending on Vim version (it’s not like your Vim version and patch level is likely to change during your editing session)Fixed:
filetype
(that‘s the multi-file types separated by a dot for you)stay#shim#globpath
shim for older Vim versions
globpath()
argumentsmanual
after saving a viewRemoved:
Added:
Nothing.
Changed:
g:volatile_ftypes
, and no more netrw
lurking there by default.Fixed:
gitsendmail
files being considered persistent.Removed:
Nothing.
Added:
User
events:
BufStayLoadPre
and BufStayLoadPost
before and after loading a view session;BufStaySavePre
and BufStaySavePost
before and after saving a view session.Fixed:
Removed:
Nothing.
Added:
Nothing.
Fixed:
g:volatile_ftypes
. PSA: this is not the main configuration mechanism, users should not usually have to change its default value.stay#view#make()
or stay#view#load()
directly. Still, better safe than sorry).Removed:
Nothing.