Releases: zhimsel/vim-stay
1.4.3
<insert witty title about bugfixes here>
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.
View creation errors can Stay in /dev/null
Improved staying with vim-stay!
Stay fast. Stay good. Bugfix edition.
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:
- buffer persistency testing was slow, it’s not anymore: with a speedup by a factor of 100 (even more if your Vim version supports
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 Konfekt/FastFold#16).- typo in the docs. It’s stay, not stray. We definitely don’t do that.
Removed:
Nothing.
Stay fast. Stay good.
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:
- buffer persistency testing was slow, it’s not anymore: with a speedup by a factor of 100 (even more if your Vim version supports
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 Konfekt/FastFold#16).- typo in the docs. It’s stay, not stray. We definitely don’t do that.
Removed:
Nothing.
Well-mannered staying edition
Added:
- ignore files in known temp paths (based on Vim’s
backupskip
option) - ignore file types for other version control systems than Git – Mercurial, Bazaar, CVS and SVN users, vim-stay now has you covered
:CleanViewdir
command to easily remove view session files from yourviedwir
(#8):StayReload
command for when you need to reload vim-stay and / or its 3rd party integrations
Changed:
- loading a view session now fires a
SessionLoadPost
event - autocommand events are now only fired when there is a defined autocommand for them – no need to
unsilent
everything anymore - errors loading a view session files are now quietly discarded
- compatibility requirements are now fully documented in help
- more helpful 3rd party integration failure messages
- FastFold integration now is conditional on the FastFold plug-in being, you know, actually installed (and has a much smaller footprint when it is not)
- for better performance,
stay#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:
- volatile file types would not be recognised when the buffer had a composite
filetype
(that‘s the multi-file types separated by a dot for you) - the
stay#shim#globpath
shim for older Vim versions- would not process all
globpath()
arguments - did not check for Vim patch levels correctly
- would not find files whose path contains a newline
- would not process all
- several issues with FastFold integration (#5)
- FastFold fold method would not be reset to
manual
after saving a view - FastFold fold method would be overwritten when first loading a view
- FastFold fold method would not be reset to
- incorrect TOC in help document
- duplicate help tag in documentation (Pathogen users, rejoice – #7)
Removed:
- stay-side integration for vim-fetch (don’t fear, it’s not gone – just provided by vim-fetch starting from its version 2. Dogfooding, that is, kids).
Senior staying edition
Added:
Nothing.
Changed:
- heuristics refinements – it should be less necessary than ever to modify
g:volatile_ftypes
, and no morenetrw
lurking there by default.
Fixed:
- failure to initialise in Vim versions below 7.4.279 (#6).
gitsendmail
files being considered persistent.
Removed:
Nothing.
Extended staying edition
Added:
- autocommand API via
User
events:BufStayLoadPre
andBufStayLoadPost
before and after loading a view session;BufStaySavePre
andBufStaySavePost
before and after saving a view session.
- extended integration API for 3rd party plug-ins: one unified mechanism to integrate other plug-ins with vim-stay from either inside vim-stay, inside the 3rd party plug-in, or via a separate connector plug-in.
- FastFold integration based on the above. Thanks to @Konfekt for his input.
Fixed:
- README glitches.
Removed:
Nothing.
Tidier staying edition
Added:
Nothing.
Fixed:
- amended various glitches in the documentation (with help from @mikedfunk).
- clarified misleading documentation of
g:volatile_ftypes
. PSA: this is not the main configuration mechanism, users should not usually have to change its default value. - stop window switches messing up alt files and the jumplist or triggering autocommands (only relevant if you use
stay#view#make()
orstay#view#load()
directly. Still, better safe than sorry).
Removed:
Nothing.