Commit Graph

71 Commits

Author SHA1 Message Date
7f1e8ce997 chore(main): release 3.0.0 (#61)
🤖 I have created a release *beep* *boop*
---


##
[3.0.0](https://github.com/folke/persistence.nvim/compare/v2.0.0...v3.0.0)
(2024-07-06)


### ⚠ BREAKING CHANGES

* opts.need specifieds how many buffers should be open for saving.
Replaces save_empty. Closes #19
* removed load_pre/load_post/save_pre/save_post in favor of events.
Check the readme
* removed `opts.options`. Use `vim.o.sessionoptions` instead.

### Features

* added `require("persistence").select()` to select a session to load
([5346b53](5346b5346a))
* opts.need specifieds how many buffers should be open for saving.
Replaces save_empty. Closes
[#19](https://github.com/folke/persistence.nvim/issues/19)
([7bb5755](7bb575517c))
* persistence.active. Check if a session saving is active
([f0ac0e9](f0ac0e981e))
* **persistence:** add `pre-` and `post-` load hooks
([#24](https://github.com/folke/persistence.nvim/issues/24))
([3d443bd](3d443bd0a7))
* removed `opts.options`. Use `vim.o.sessionoptions` instead.
([eb5622e](eb5622edae))
* removed load_pre/load_post/save_pre/save_post in favor of events.
Check the readme
([f58a838](f58a838282))
* sessions per branch. Closes
[#9](https://github.com/folke/persistence.nvim/issues/9)
([cd0054e](cd0054e6a4))


### Bug Fixes

* don't save `gitrebase` session
([#44](https://github.com/folke/persistence.nvim/issues/44))
([9dbe264](9dbe2648c6))
* opts.need
([9c0e522](9c0e5227fa))
* remove expand() as stdpath() expands itself
([#50](https://github.com/folke/persistence.nvim/issues/50))
([a2fd3d9](a2fd3d9965))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v3.0.0
2024-07-06 22:01:55 +02:00
e1e2bf917f chore(build): auto-generate docs 2024-07-06 20:00:45 +00:00
cd0054e6a4 feat: sessions per branch. Closes #9 2024-07-06 22:00:20 +02:00
9c0e5227fa fix: opts.need 2024-07-06 21:54:41 +02:00
7bb575517c feat!: opts.need specifieds how many buffers should be open for saving. Replaces save_empty. Closes #19 2024-07-06 21:41:58 +02:00
f0ac0e981e feat: persistence.active. Check if a session saving is active 2024-07-06 21:31:22 +02:00
06e8ef93c8 chore(build): auto-generate docs 2024-07-06 19:24:52 +00:00
5346b5346a feat: added require("persistence").select() to select a session to load 2024-07-06 21:24:22 +02:00
f58a838282 feat!: removed load_pre/load_post/save_pre/save_post in favor of events. Check the readme 2024-07-06 21:23:56 +02:00
eb5622edae feat!: removed opts.options. Use vim.o.sessionoptions instead. 2024-07-06 21:22:40 +02:00
08af8fee77 chore(update): update repository (#60)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: folke <292349+folke@users.noreply.github.com>
2024-07-06 18:06:06 +02:00
4452f973c3 chore(update): update repository (#59)
Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: folke <292349+folke@users.noreply.github.com>
2024-07-06 14:59:44 +02:00
b915cbd3d1 chore(build): auto-generate docs 2024-07-06 09:48:09 +00:00
f11c573cb2 ci: update 2024-07-06 11:45:26 +02:00
57953891f8 ci: update 2024-07-05 19:00:53 +02:00
04599f36b5 chore(build): auto-generate docs 2024-07-05 13:46:37 +00:00
6a45b4fe2c ci: update 2024-07-05 15:46:10 +02:00
95d03ad545 chore(build): auto-generate vimdoc 2024-06-12 03:53:44 +00:00
a2fd3d9965 fix: remove expand() as stdpath() expands itself (#50) 2024-06-12 05:53:08 +02:00
5fe077056c chore(build): auto-generate vimdoc 2024-05-16 17:03:50 +00:00
3d443bd0a7 feat(persistence): add pre- and post- load hooks (#24)
* Add optional hook typings to config object

* Add optional hooks conditional calls

* Add hooks description to main readme
2024-05-16 19:03:16 +02:00
4982499c16 chore(build): auto-generate vimdoc 2024-01-19 15:14:59 +00:00
9dbe2648c6 fix: don't save gitrebase session (#44) 2024-01-19 16:14:29 +01:00
09af251a93 docs: folke => lazy.nvim (#39) 2024-01-19 16:14:01 +01:00
ad538bfd53 chore(main): release 2.0.0 (#36)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v2.0.0
2023-10-15 21:42:03 +02:00
01d7fa95fe chore(build): auto-generate vimdoc 2023-10-15 19:41:11 +00:00
0361df7775 fix(start)!: session name is now based on the cwd when the session starts and not when the session ends. Fixes #1688 2023-10-15 21:40:27 +02:00
9730a073fd chore(main): release 1.2.1 (#34)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v1.2.1
2023-10-13 08:56:34 +02:00
8f7cbccfb5 fix: dont save the session when only gitcommit buffers are present. Fixes #14 2023-10-13 08:47:08 +02:00
21f55da0d3 chore(main): release 1.2.0 (#33)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v1.2.0
2023-10-13 07:58:56 +02:00
878c3b32d9 chore(build): auto-generate vimdoc 2023-10-13 05:57:50 +00:00
e9afeaf3a7 feat: don't save the session when no files are open (save_empty = false) 2023-10-13 07:57:09 +02:00
4b8051c01f chore(build): auto-generate vimdoc 2023-05-22 14:39:07 +00:00
7b86ec2430 docs: lazy install 2023-05-22 16:38:25 +02:00
c814fae5c3 chore: update templates 2023-03-19 21:15:43 +01:00
4d2857b647 chore(build): auto-generate vimdoc 2023-03-19 19:37:23 +00:00
74475d1f7d chore: update templates 2023-03-19 20:36:39 +01:00
adcf691369 chore(main): release 1.1.0 (#23)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v1.1.0
2023-02-28 12:43:14 +01:00
5e47847262 chore(build): auto-generate vimdoc 2023-02-28 09:06:44 +00:00
f4bb0c5641 feat(persistence): pre_save option to call before saving (#22)
* feat(persistence): `pre_save` option to call before saving

This commit adds the `pre_save` option, which is a `fun()|nil` that will
be called (if present) before saving the current session. Use cases
include filtering buffers, executing `User` autocmds, etc.

* docs: `pre_save` option
2023-02-28 10:05:58 +01:00
d8a3eda0e1 chore(build): auto-generate vimdoc 2023-01-23 19:53:21 +00:00
b0e2b283c6 ci: checkout v3 2023-01-23 20:52:38 +01:00
cc68aed5a1 chore(build): auto-generate vimdoc 2023-01-17 09:54:20 +00:00
5b7e71abe9 docs: update path to session in state directory. Fixes #20 2023-01-17 10:53:36 +01:00
8484fdaa28 chore(main): release 1.0.1 (#18)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v1.0.1
2023-01-06 19:33:37 +01:00
8c40aa7b80 chore(build): auto-generate vimdoc 2023-01-06 18:29:26 +00:00
70c281e54e fix: dont throw error when session was already stopped 2023-01-06 19:28:37 +01:00
7421e30704 chore(build): auto-generate vimdoc 2023-01-05 07:38:46 +00:00
5453a25028 docs: updated session directory (#16)
* Update README.md

* Update docs
2023-01-05 08:38:06 +01:00
ea9d9245d8 chore(main): release 1.0.0 (#15)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v1.0.0
2023-01-04 20:35:33 +01:00