Vim Stay Versions Save

Make Vim persist editing state without fuss

v1.4.3

10 months ago

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.

v1.4.2

5 years ago

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.

v1.4.0

5 years ago

Changes

  • Many bugfixes
  • Internal improvements

For a verbose list of changes, see the commit history.

v1.3.1

9 years ago

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 https://github.com/Konfekt/FastFold/issues/16).
  • typo in the docs. It’s stay, not stray. We definitely don’t do that.

Removed:

Nothing.

v1.3.0

9 years ago

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 https://github.com/Konfekt/FastFold/issues/16).
  • typo in the docs. It’s stay, not stray. We definitely don’t do that.

Removed:

Nothing.

v1.2.0

9 years ago

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 your viedwir (#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
  • 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
  • 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).

v1.1.1

9 years ago

Added:

Nothing.

Changed:

  • heuristics refinements – it should be less necessary than ever to modify g:volatile_ftypes, and no more netrw lurking there by default.

Fixed:

  • failure to initialise in Vim versions below 7.4.279 (#6).
  • gitsendmail files being considered persistent.

Removed:

Nothing.

v1.1.0

9 years ago

Added:

  • autocommand API via User events:
    • BufStayLoadPreand BufStayLoadPost before and after loading a view session;
    • BufStaySavePreand BufStaySavePost 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.

v1.0.1

9 years ago

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()or stay#view#load() directly. Still, better safe than sorry).

Removed:

Nothing.