folke / persistence.nvim

💾 Simple session management for Neovim
Apache License 2.0
638 stars 26 forks source link

Add vim commands #12

Closed ten3roberts closed 2 years ago

ten3roberts commented 2 years ago

While the lua side of neovim is fantastic, the Ex side is still required for calling from the cmdline.

Since this plugins aims to be manual (or operated through custom autocmds) it would be great if there existed Ex commands for quick Ex completion. E.g;

:PersistenceLoad
:PersistenceLast
:PersistenceStop

This way, I can enter a dir and do

:PersistenceL<Tab>
olimorris commented 2 years ago

@ten3roberts As a heads up I've forked this repo and added commands in:

https://github.com/olimorris/persisted.nvim

ten3roberts commented 2 years ago

Great. Which other cool new features are in your fork?

I just stuck the command definitions inside my config

olimorris commented 2 years ago

Support for sessions by git branch. Auto loading from specific directories. A telescope extension. Sooooo much! It's all detailed in the repo 👍🏼

ten3roberts commented 2 years ago

Ooooh

You changed to use stdpath('data') instead, fanstastic.

Been using nvim-session before but had many issues and issues with options being incorrect, scrolloff and such