sane-term icon indicating copy to clipboard operation
sane-term copied to clipboard

Unexpected behavior when invoking sane-term with two or more buffers opened.

Open fmndantas opened this issue 4 years ago • 1 comments

When I have two or more buffers opened, the terminal buffer is opened on the currently selected buffer. I'd like to know if it is possible to enforce sane-term to open the terminal on a new buffer that appears to be on front of the two already opened buffers, and if it is possible that when the terminal is closed, the previously opened buffers are show again.

The two following pictures show the unexpected behavior mentioned above. The first one shows two buffers. Note that the latter is selected. image

When I invoke sane-term, the terminal is opened on the latter (selected) buffer. image

Any assistance would be greatly appreciated.

fmndantas avatar Mar 15 '21 22:03 fmndantas

@fmndantas Thank you for the detailed report and I'm super sorry for the late response. I somehow didn't see the notification and just stumbled onto this it today.

enforce sane-term to open the terminal on a new buffer that appears to be on front of the two already opened buffers

I'm not quite sure I understand what you want to happen. In the second screenshot, the terminal did open in a new buffer (and then selected it). Can you help me understand what you would prefer to happen?

In my workflow I have (global-set-key (kbd "C-c y") 'bury-buffer) so I can run a command or two then hit C-c y and send the terminal window to the back of the stack. Which would then bring back the previous buffer. Then I can hit C-x t to bring it back to the foreground. I only mention that in case it can help with what you are trying to accomplish.

adamrt avatar Mar 31 '21 21:03 adamrt