olimorris
ed5706f827
test: rename default settings spec
2022-03-08 20:11:28 +00:00
olimorris
91d45acdba
chore: add badges and license
2022-03-08 08:00:56 +00:00
olimorris
5bcc228eb8
test: move files to stubs folder
2022-03-08 07:55:18 +00:00
olimorris
aa45be80ad
test: add initial tests and ci
2022-03-08 07:53:00 +00:00
olimorris
f6cfb73d62
chore: add gitignore
2022-03-07 18:59:04 +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
0f642be4fa
feat: add commands
2022-03-05 15:22:26 +00:00
olimorris
ac24493128
feat: add before and after callbacks
2022-03-05 15:22:13 +00:00
olimorris
831caa7261
feat: delete current session
...
Mirroring the great pull request on persistence.nvim by @edementyev
2022-03-03 21:16:19 +00:00
olimorris
336909e742
chore: formatting with stylua
2022-03-03 21:15:37 +00:00
olimorris
4770626aec
chore: add stylua.toml
2022-03-03 21:13:06 +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
cbb601eaec
chore: format code
2022-01-21 11:09:49 +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
olimorris
9fd0958a19
chore: rename to persisted
2022-01-20 14:23:51 +00:00
Oli M
340136dca1
Update README.md
2022-01-19 22:31:52 +00:00
olimorris
05247100ba
fix: 🤦♂️ add back git branching
2021-12-24 18:52:15 +00:00
olimorris
0cd9bf7d67
chore: make code more terse
2021-11-16 20:03:20 +00:00
Oli M
23294c5362
Merge branch 'folke:main' into main
2021-11-09 10:03:27 +00:00
olimorris
ff30e8b4cc
fix: vim.fn.has('win32') returns 0 or 1, not a boolean
2021-10-24 19:55:22 +01:00
FollieHiyuki
77cf5a6ee1
fix: vim.fn.has('win32') returns 0 or 1, not a boolean ( #8 )
2021-10-22 20:24:20 +02:00
Oli M
082a52e999
Merge branch 'main' into main
2021-10-22 14:14:04 +01:00
3rdey3
83af96b1f2
fix: properly escape session file names on Windows ( #7 )
2021-10-22 13:25:52 +02:00
olimorris
76a994c185
Fix: use_git_branch in a non git repo caused error
...
Using `use_git_branch` in a non git enabled repo caused an error. This has been addressed by checking for the presence of a `.git` folder in the cwd. If no branch has been specified then we default to HEAD via the addition of `2>/dev/null` in our shell command
2021-09-08 17:01:06 +01:00
olimorris
2d6a222073
Add additional 'using_persistence' global vars
...
In further testing, it became clear that adding the global variables to the setup and start functions would be useful.
It also seemed to make sense to return boolean values to detect if Persistence has stopped (false) or is in active use (true).
2021-09-07 22:31:12 +01:00
olimorris
f4e7632db2
Correct typos
2021-09-07 19:57:22 +01:00
Oli M
1386bac1a6
Update README.md
2021-09-07 19:40:54 +01:00
olimorris
e70b5e2fc8
Add ability to determine if persistence.nvim is running
...
In my statusline, I like to know if persistence.nvim is active. I have a simple helper function:
function using_session()
return (vim.g.using_persistance ~= nil)
end
which I reference and display a corresponding glyph
2021-09-07 19:38:33 +01:00
olimorris
3d84264be5
Add ability to session based on cwd and git branch
...
This creates session files like:
%Users%Oli%Code%Projects%persistance_feature%add-git-branch-to-session
enabling you to segment your project directory by git branch
2021-09-07 19:37:26 +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
Folke Lemaitre
a39f3f10c8
feat: added config options
2021-07-12 10:47:09 +02:00
Folke Lemaitre
38203a17a9
fix: renamed session to persistence in autocmds
2021-07-03 23:53:52 +02:00
Folke Lemaitre
8b32094309
feat: inital version
2021-07-02 08:55:37 +02:00