You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When entering a terminal, I can no longer change tabs using Cmd-{}, not create a new one using Cmd-T, presumably because these keys get passed on to the terminal.
If you're talking about Apple's Terminal.app, it doesn't support passing Cmd key to apps. Some other terminal apps has limited support for this feature
I'm talking about the MacVim GUI. I can use those keys normally to switch between tabs in other buffers, but if the current selected buffer is a :terminal, it doesn't work.
As far as I understand, Vim captures the input and then sends it to the terminal, which is not the same as you process a key directly. Also Vim's terminal emulator is not perfect enough to be compared to Xterm, for example.
I think the issue is that the menu entries are not properly mapped. This will be fixed next release to have the tab menu items properly mapped in terminal mode. (They need to use tlmenu instead of the generic amenu since terminal menus work well enough that the generic amenu doesn't work with it)
Activity
eirnym commentedon May 6, 2020
@barreyra, Thank you for an issue,
If you're talking about Apple's
Terminal.app, it doesn't support passing Cmd key to apps. Some other terminal apps has limited support for this featurebarreyra commentedon May 6, 2020
I'm talking about the MacVim GUI. I can use those keys normally to switch between tabs in other buffers, but if the current selected buffer is a
:terminal, it doesn't work.eirnym commentedon May 6, 2020
As far as I understand, Vim captures the input and then sends it to the terminal, which is not the same as you process a key directly. Also Vim's terminal emulator is not perfect enough to be compared to Xterm, for example.
barreyra commentedon May 8, 2020
Aha, I figured out my own issue. The terminal has its own set of key-bindings. The following adds the basic tab navigation commands:
It seems the problem is that the
:macmenucommand doesn't map things in the terminal.ychin commentedon Aug 12, 2020
I think the issue is that the menu entries are not properly mapped. This will be fixed next release to have the tab menu items properly mapped in terminal mode. (They need to use
tlmenuinstead of the genericamenusince terminal menus work well enough that the genericamenudoesn't work with it)Add terminal menu mappings for new tab/tab next/full screen menus
ychin commentedon Aug 12, 2020
This is now fixed. @barreyra feel free to remove your own mappings once the new version (164) is out soon. MacVim will do the right thing.
MacVim Snapshot 164
MacVim Snapshot 165
MacVim Snapshot 165
barreyra commentedon Aug 16, 2020
Thank you, it works great. Cmd-w and Cmd-b are still missing, I'll post a patch if no one else does.
ychin commentedon Aug 16, 2020
I'm not sure if Cmd-W would work. It's mapped to
:conf qwhich I don't think works inside terminal mode. I could see Cmd-B though.