toggleterm.nvim icon indicating copy to clipboard operation
toggleterm.nvim copied to clipboard

[Question] How to properly use TermNew

Open andtankian opened this issue 11 months ago • 4 comments

The doc says that we can create new terminal without worry about counting. For example, I have a mapping <leader>tn in which I want to create new horizontal terminal. However I don't want to deal with counting. Is there a way to do this without a custom function that generate random numbers? Maybe TermNew command (that doesn't work at all)

Thank you guys for this amazing project.

andtankian avatar Mar 10 '25 19:03 andtankian

TermNew is not in a tagged release yet, but if you get the lastest toggleterm version it should start working! (see https://github.com/akinsho/toggleterm.nvim/issues/641#issuecomment-2892225396)

net-solution avatar May 19 '25 20:05 net-solution

@net-solution is there any prevision to add that to tagged release?

andtankian avatar Aug 14 '25 13:08 andtankian

@net-solution is there any prevision to add that to tagged release?

I don't know I'm afraid. You'd have to ask the maintainer

net-solution avatar Aug 16 '25 09:08 net-solution

In case you're interested, I'm the author of the original PR introducing the :TermNew command. I consolidated all the flow around it in a fork which I called ergoterm. Feel free to take a look and provide any feedback!

waiting-for-dev avatar Aug 23 '25 08:08 waiting-for-dev