Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve the quick terminal in vim session #35

Open
devth opened this issue Jan 21, 2019 · 2 comments
Open

Preserve the quick terminal in vim session #35

devth opened this issue Jan 21, 2019 · 2 comments

Comments

@devth
Copy link

devth commented Jan 21, 2019

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.

@hkupty
Copy link
Owner

hkupty commented Jan 21, 2019

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.

@devth
Copy link
Author

devth commented Jan 21, 2019

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants