Commit Graph

111 Commits (main)

Author SHA1 Message Date
olimorris fc3df75cd5 refactor!: #51 replace callbacks with user events 2023-02-22 20:24:27 +00:00
Oli 774e4d70e9
fix: #46 autoload sessions 2023-02-22 15:02:33 +00:00
olimorris 9276b786b8 docs: update readme 2023-02-21 21:13:23 +00:00
Oli dfbd039fe1
feat: load session by path (#48) (#47)
* feat: load session by path

* chore: change order of commands

* tests: fix

* docs: tweak readme wording
2023-02-21 21:09:01 +00:00
olimorris be22f38edb docs: update README 2023-02-21 15:47:42 +00:00
olimorris 558fc4b9f4 fix: badge in readme 2022-12-22 19:33:17 +00:00
olimorris 0aedefbbb1 chore: update README.md 2022-11-16 13:43:24 +00:00
olimorris 8fa9328e12 chore: remove branch separator from readme 2022-11-03 14:16:22 +00:00
ADoyle 53a39a0447
feat: add config option "telescope.reset_prompt_after_deletion"
User can decide whether to reset the prompt or not, after deleting a session
2022-11-03 14:14:36 +00:00
olimorris e39170f571 refactor!: change default branch separator 2022-11-02 17:38:41 +00:00
olimorris 6e3167e89c chore: bump neovim version to 0.7 2022-10-26 13:52:34 +01:00
Connor Robertson 38b36fc5fd
feat: allow session name to be fixed on load
* Add follow_cwd option to allow fixing session name on load

* Update readme to reflect new follow_cwd command and explain use

* Add tests for follow_cwd

* Update README.md

* Adjust wording in README for follow_cwd to clarify use case

Co-authored-by: Oli M <olimorris@users.noreply.github.com>
2022-10-14 10:08:12 +01:00
olimorris df435cee43 feat: #31 should_autosave callback 2022-10-07 12:46:58 +01:00
Latif Sulistyo b54b72dbde
feat: add `silent` config option 2022-09-13 08:28:36 +01:00
Mat Jones 321ba42367
feat: #27 add `on_autoload_no_session` hook
* Add `on_autoload_no_session` hook

* Update README.md
2022-08-23 22:02:30 +01:00
HumblePresent e994852d86
feat: add configurable git branch separator string (#25) 2022-08-22 21:36:22 +01:00
olimorris dafb7a9e43 chore: misc updates 2022-08-16 08:25:11 +01:00
olimorris 06023617d7 chore: update README.md 2022-08-14 23:09:12 +01:00
olimorris cbdde13408 refactor: move contents of README.md 2022-08-13 11:05:35 +01:00
olimorris bf69d1855d chore: remove duplicate badges 2022-08-13 11:03:40 +01:00
olimorris 22caff821f chore: update README.md 2022-08-13 11:03:08 +01:00
olimorris b70eb5317d feat: add before_source callback 2022-08-13 10:53:59 +01:00
olimorris 0f5f24f4c4 chore: update README.md 2022-07-14 22:07:27 +01:00
olimorris 4f97606552 chore: update README.md 2022-07-05 17:39:40 +01:00
olimorris 6140a4703a chore: update README.md
Thanks to @avently for the neat Telescope callback
2022-07-04 09:14:18 +01:00
olimorris 0ad729ee38 fix: #15 callbacks being incorrectly detected 2022-06-30 19:53:28 +01:00
olimorris bf27016643 fix: #12 shift autoloading to the nvim event loop
A big shoutout to @simonmclean for this pull request. Previously we autoloaded a session file as soon as Neovim opened. The problem with this is that key plugins like LSP and Treesitter may not have been initialised. This would lead to syntax highlighting issues or LSPs not attaching to buffers in the session. Pushing this to Neovim's event loop via vim.schedule allows us to sensibly load the session after these key plugins. Fixing the tests was a little cumbersome as we needed to use plenary's async library but once figured out, we have some lovely robust async tests
2022-06-07 12:55:20 -07:00
olimorris 040cf43524 feat(telescope): #7 delete session files 2022-05-13 10:48:13 +01:00
olimorris b778a4ebc4 feat: #11 after_source callback 2022-05-05 11:41:57 +01:00
olimorris f5b3d04597 chore: update README.md 2022-05-03 21:50:58 +01:00
olimorris 45e02cd474 fix: telescope callbacks in README.md 2022-04-25 12:38:14 +01:00
olimorris 5b3525ad5e refactor: #7 improve telescope support 2022-04-24 12:58:11 +01:00
olimorris baa9c73818 chore: update README.md 2022-04-22 14:14:16 +01:00
olimorris 2345ac0682 refactor: change config option dir to save_dir 2022-04-22 12:45:30 +01:00
olimorris 5ad5f88e4b feat: custom autocmd for saving a session 2022-04-22 12:37:27 +01:00
olimorris ec388c54ee chore: update README.md 2022-04-22 12:15:41 +01:00
olimorris b0c4861e23 chore: #5 cleanup README.md 2022-04-20 09:22:19 +01:00
olimorris 48ecaa7c6e feat: #5 improve auto save/load pattern match 2022-04-20 09:19:56 +01:00
olimorris f33855997e fix: README.md for using telescope extension 2022-04-19 22:29:29 +01:00
olimorris fdaf9e08b4 chore: update README.md for toc links 2022-04-19 22:24:08 +01:00
olimorris b6201178ff feat: improve README.md 2022-04-19 22:20:39 +01:00
olimorris 9c3cc1ff59 chore: update README.md 2022-04-04 23:03:24 +01:00
olimorris 38cf66b8f8 chore: clean up README.md and test spec 2022-03-12 08:46:54 +00:00
olimorris 1c465857f1 chore: update README.md 2022-03-08 20:23:00 +00:00
olimorris 91d45acdba chore: add badges and license 2022-03-08 08:00:56 +00:00
olimorris 0669d29f22 feat: allow/ignore dirs for save/load
This addresses #1 and allows the user to specify directories which the plugin will automatically save or load from. Alternatively, specify directories for which this behaviour will be ignored
2022-03-07 18:58:37 +00:00
olimorris b2e4162c74 feat: auto-load sessions addresses #3 2022-03-07 17:22:39 +00:00
olimorris 00fe043e8d feat: add command to save session 2022-03-07 13:06:58 +00:00
olimorris a323e3f50a chore: add functionality to README.md 2022-03-05 21:13:34 +00:00
olimorris eec9e3c72d chore: update README.md 2022-03-05 15:22:34 +00:00
olimorris 336909e742 chore: formatting with stylua 2022-03-03 21:15:37 +00:00
olimorris aba6b7ad05 chore: update README.md 2022-03-03 21:12:59 +00:00
olimorris 8c3bc1791d feat: add toggle function 2022-01-21 16:38:00 +00:00
olimorris e513dcd16c feat: add option to disable autosave
As per: https://github.com/folke/persistence.nvim/pull/4

Think is a useful feature to have as users may wish to manually trigger the saving of sessions
2022-01-20 15:24:31 +00:00
olimorris d9b386c618 feat!: use stdpath data instead of config
As per discussion on https://github.com/folke/persistence.nvim/pull/3.

Using stdpath('data') instead of stdpath('config') is more appropriate.
2022-01-20 15:24:31 +00:00
Oli M 340136dca1
Update README.md 2022-01-19 22:31:52 +00:00
Oli M 1386bac1a6
Update README.md 2021-09-07 19:40:54 +01:00
Alexander Gonzalez 2f2b0cc69d
docs: fix the "restore last session" map in the README (#2) 2021-07-20 20:58:19 +02:00
Folke Lemaitre 0194df8e05
docs: added vim-plug instructions and updated lazy-loading event for packer to BufReadPre 2021-07-20 09:09:35 +02:00
Folke Lemaitre 43b005ef5f
docs: fixed typos 2021-07-12 10:49:06 +02:00
Folke Lemaitre 7a67c5a859
docs: added docs 2021-07-12 10:47:14 +02:00