Skip to content

feat: Add TermNew command#623

Merged
akinsho merged 2 commits intoakinsho:mainfrom
waiting-for-dev:waiting-for-dev/term_new
Mar 9, 2025
Merged

feat: Add TermNew command#623
akinsho merged 2 commits intoakinsho:mainfrom
waiting-for-dev:waiting-for-dev/term_new

Conversation

@waiting-for-dev
Copy link
Contributor

Humans are bad at remembering numbers, so this command allows you to open a new terminal at the next available count. It's helpful in combination with :TermSelect to work with terminals without needing to remember numbers. It supports the regular arguments as :ToggleTerm.

@waiting-for-dev waiting-for-dev force-pushed the waiting-for-dev/term_new branch from 6789998 to e7cc284 Compare December 24, 2024 12:36
Humans are bad at remembering numbers, so this command allows you to
open a new terminal at the next available count. It's helpful in
combination with `:TermSelect` to work with terminals without needing to
remember numbers. It supports the regular arguments as `:ToggleTerm`.
@waiting-for-dev waiting-for-dev force-pushed the waiting-for-dev/term_new branch from e7cc284 to f57953a Compare December 24, 2024 12:38
Copy link
Owner

@akinsho akinsho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the long delay this seems reasonable to me, haven't looked at the code in a while so hopefully there isn't some assumption this breaks

@akinsho
Copy link
Owner

akinsho commented Feb 22, 2025

Think the testing workflow need some maintenance, probably not the code breaking

end
end

M.__next_id = next_id
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually think this isn't necessary anymore. Since I wasn't exporting next_id before this was a way of trying to do it privately so I could use it in tests but now it's public this line can be removed and the corresponding usages of M.__next_id can just be M.next_id

@akinsho akinsho merged commit b4b0dfc into akinsho:main Mar 9, 2025
2 of 4 checks passed
vandalt pushed a commit to vandalt/toggleterm.nvim that referenced this pull request Apr 1, 2025
* feat: Add TermNew command

Humans are bad at remembering numbers, so this command allows you to
open a new terminal at the next available count. It's helpful in
combination with `:TermSelect` to work with terminals without needing to
remember numbers. It supports the regular arguments as `:ToggleTerm`.

* Fix failing tests
@W3ND31
Copy link

W3ND31 commented May 24, 2025

Hello, @akinsho ! You think in create a new release/tag for this option? The last one is from December (as the last commit behind this)

@waiting-for-dev waiting-for-dev deleted the waiting-for-dev/term_new branch August 23, 2025 08:54
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

Successfully merging this pull request may close these issues.

3 participants