Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add terminal.integrated.linuxMetaIsCtrl setting #122476

Closed
mitar opened this issue Apr 27, 2021 · 9 comments
Closed

Please add terminal.integrated.linuxMetaIsCtrl setting #122476

mitar opened this issue Apr 27, 2021 · 9 comments
Assignees
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code terminal Integrated terminal issues
Milestone

Comments

@mitar
Copy link

mitar commented Apr 27, 2021

I have my regular terminal (Terminal on Ubuntu) configured so that pressing Super (also known as Meta key in VSCode) key acts like a Ctrl key. E.g., when I press Super+C it sends interrupt key to the terminal. In this way I get regular Ctrl key free to use for UI shortcuts (e.g., when I press Ctrl+C I get clipboard copy). In this way I have similar experience to what macOS provides.

I would like to configure the same for the integrated terminal. To me it looks like it would only need to map pressing the Super/Meta key to the Ctrl key. But just for the purposes of the terminal and not keyboard shortcuts (even when focused inside the terminal). Based on existing terminal.integrated.macOptionIsMeta i would like to ask for the terminal.integrated.linuxMetaIsCtrl key.

@vscodebot
Copy link

vscodebot bot commented Apr 27, 2021

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@Tyriar Tyriar added the feature-request Request for new features or functionality label Apr 28, 2021
@Tyriar Tyriar added this to the Backlog Candidates milestone Apr 28, 2021
@meganrogge meganrogge added the terminal Integrated terminal issues label Oct 6, 2021
@Tyriar
Copy link
Member

Tyriar commented Oct 18, 2021

I have my regular terminal (Terminal on Ubuntu) configured so that pressing Super (also known as Meta key in VSCode) key acts like a Ctrl key.

I just checked gnome terminal and couldn't find this in preferences. How did you configure this?

@mitar
Copy link
Author

mitar commented Oct 18, 2021

See this patch: https://gitlab.gnome.org/GNOME/vte/-/issues/276

@Tyriar
Copy link
Member

Tyriar commented Oct 19, 2021

@mitar oh you're using a custom build of VTE? I probably wouldn't want to move ahead with this until I see the feature in some other terminal to avoid bloating and making the terminal more complex for a feature that will rarely see use.

@mitar
Copy link
Author

mitar commented Oct 19, 2021

I mean, this is just me. But others have expressed similar needs in the past: #57083 #47616 It is not all exactly the same, but it shows that different people have different reasons/needs/configurations how they get to this (is it a question of their windows manager, or inputrc configuration). I have opted to use this only inside the terminal but not elsewhere. Given that there is already terminal.integrated.macOptionIsMeta, I think terminal.integrated.linuxMetaIsCtrl is a similar lift, no? Gnome Terminal does not have that option either.

@Tyriar
Copy link
Member

Tyriar commented Oct 19, 2021

Well gnome terminal doesn't run on mac and mac option is meta is a common option on iterm/Terminal.app. I don't think we would move forward on this until other prominent terminal(s) have a similar option. In the meantime I think you can create a set of keybindings to use super (I think super is supported). For example the below is an example which maps ctrl+/ to send \u001f

	{
		"key": "ctrl+/",
		"command": "workbench.action.terminal.sendSequence",
		"args": { "text": "\u001f" }
	}

More info: https://code.visualstudio.com/docs/editor/integrated-terminal#_send-text-via-a-keybinding

@Tyriar Tyriar added the *out-of-scope Posted issue is not in scope of VS Code label Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code terminal Integrated terminal issues
Projects
None yet
Development

No branches or pull requests

4 participants
@mitar @Tyriar @meganrogge and others