kassio / neoterm

Wrapper of some vim/neovim's :terminal functions.
Other
1.32k stars 117 forks source link

[Feature Request] Get the latest created or next terminal id without increasing it #223

Closed daquexian closed 5 years ago

daquexian commented 5 years ago

Thanks for your great plugin!

I'm working on my own plugin that needs to create a terminal and run all following commands in it. It will be handy that I can get the id of the terminal I just created or get the next id.

I'm now using g:neoterm:next_id(). Though it works, it will increase the id and then return it. I'm not sure if it is the proper way.

kassio commented 5 years ago

after the neoterm buffer is created you can get the neoterm id in the b:neoterm_id. Is that what you are looking for?

Also, I'd appreciate if this kinda of message come over email instead of issues in the github.