Open ubunatic opened 1 year ago
Hey, I'm going to hop on this; I think that I have a similar question(s).
~/.config/zed/keymap.json
sufficient, or need I restart the application?terminal::SendText
action to work. More below:What I want to do: Send lines of code from the current file open down to be executed in the terminal. This is really nice when I am working on computing clusters in a REPL environment and editing files locally. I have this setup in VSCode:
{
"key": "cmd+enter",
"command": "workbench.action.terminal.runSelectedText",
"when": "editorTextFocus"
}
Let me know how I might achieve this, and thank you!
I too am looking for a way to run the current line, or highlighted code, by sending it to the currently active terminal.
Hello,
I second this. The following config works only if the terminal is already in focus:
{
"context": "Workspace",
"bindings": {
"ctrl-alt-u": ["terminal::SendText", "my-command\n"]
}
}
It would be nice if it would work from anywhere.
Check for existing issues
Describe the feature
I use a German keyboard with umlauts (ö,ä,ü) and like to remap them in the Editor and in the Terminal. It works in the Terminal.
Here is my working
keymap.json
:I can already capture umlaut keypresses and trigger other actions in the Editor. This means the editor is already able to intercept regular key presses and not just with modifiers.
This works for instance:
The Terminal already has a
SendText
action. Please also "enable" this in the Editor.If applicable, add mockups / screenshots to help present your vision of the feature
No response