before.nvim
before.nvim copied to clipboard
very rough wip of saving between sessions
see: #5
this is really messy but just showing off the kind of idea of how you could go about this.
Also I really think the cursor should be a piece of global state in memory, that you just move through instead of looping through the whole list cause it adds a lot of stuff that probably doesn't need to be there? Then you could serialize the cursor too and it'd be a whole lot simpler.