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

Opening betterTerm in current window

Open Maritsu opened this issue 2 years ago • 3 comments

I've been wondering if there's a way to not only have the default config open terminals in a new window located at the bottom of the screen, but also to have a custom keymap that opens a betterTerm instance in the currently focused window instead of at the bottom of the screen.

Maritsu avatar Feb 10 '23 11:02 Maritsu

It is something possible but I have no idea how to do it, you could try with the configurations changing bot for some other position of vim

CRAG666 avatar Feb 18 '23 23:02 CRAG666

It possible but the are some difficulties depending on how you want the terminal to behave. @Maritsu Do you wanna a toggle functionality, something like you open the terminal in the current window then you re-hit you key bind for toggling the terminal and goes back to the previous buffer you were editing? Or you simply close that window when the terminal closes?

saccarosium avatar Apr 29 '23 13:04 saccarosium

It possible but the are some difficulties depending on how you want the terminal to behave. @Maritsu Do you wanna a toggle functionality, something like you open the terminal in the current window then you re-hit you key bind for toggling the terminal and goes back to the previous buffer you were editing? Or you simply close that window when the terminal closes?

To be honest either one would be fine. Initially I was thinking about the last option you suggested - just closing the window when the terminal closes.
Other than that, anything works to be honest

Maritsu avatar Aug 04 '23 15:08 Maritsu