nvimux
nvimux copied to clipboard
Preserve the quick terminal in vim session
I'm starting to use vim sessions to help replace tmuxinator. Would be awesome if nvimux could recognize the quick term when a vim session is restored.
Hi @devth. Thanks for the issue.
Initially, nvimux was supporting other terminal providers. I'm not sure how quickterm works and what is needed to provide support for it.
Could you help me with more details? I'd be more than happy to help with this.
I don't know much about sessions, other than they look like a ton of commands, e.g. here is a snippet of one of mine:
let NERDTreeGlyphReadOnly = "RO"
let NERDTreeMapOpenRecursively = "O"
let NERDTreeMapToggleBookmarks = "B"
let NERDTreeMapUpdirKeepOpen = "U"
let NERDTreeQuitOnOpen = 0
wincmd w
argglobal
I also found out how Taboo (another plugin I use) is persisting its data in the session: https://github.com/gcmt/taboo.vim/blob/1367baf547ff931b63ea6a389e551f4ed280eadf/plugin/taboo.vim#L257
Maybe nvimux would need to persist some state the same way, around here? https://github.com/Vigemus/nvimux/blob/master/lua/nvimux/init.lua#L152
I use vim-obsession to autosave sessions as I work. Then I can quit vim and reopen to my last saved point using nvim -S my-session. And ideally nvimux would set/load whatever vars it needs to know that a quickterm already existed (if it existed).
Hope that's more clear. I'm happy to add more detail if not. Thanks!