akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

[Feature Request] Open horizontal term at the top / Expose split_commands #590

Closed cagdassalur closed 1 month ago

cagdassalur commented 1 month ago

Very similar topics came up before from various needs, #326, #97. So I know it's not preferred for you to expose/maintain window commands.

My usecase is to be able to open the horizontal term at top instead of bottom. Imho much more ergonomic and easy to read especially on a laptop screen that's not raised. But looking around the code and seeing the previous discussions, i don't see how this would be possible to achieve.

Maybe we can have an undocumented config? So it won't be "officially" supported but still make toggleterm a bit more scriptible. How about adding a config for 'top/below'? similar overhead imho but seems more logical if just exposing window commands as a whole is a concern.

Maybe there are other ways, feel free to suggest or just close the issue if this is spammy.

But if you're okay with some kind of way to achieve this, i can get to creating a pr for it.

Also: thanks for this plugin!

akinsho commented 1 month ago

This isn't really one for me I think sounds like a non trivial amount of work and tbh I don't think it'll be worth it