kassio/neoterm

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

Closed this issue · 1 comments

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.

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.