tasks -> send to terminal? #14058
Replies: 4 comments 2 replies
-
Closest thing to that could be configuring task for that command e.g.: {
"label": "Example command",
"command": "do this command",
"use_new_terminal": true,
"reveal": "always"
} and then to have a keybinding in your keymap config to execute the task: "ctrl-whatever": [
"task::Spawn",
{
"task_name": "Example command"
}
] I use it like this for my git workflow with |
Beta Was this translation helpful? Give feedback.
-
@tepavcevic thanks for response! I can get it to work if i launch psql in the "command" with $ZED_SELECTED_TEXT in "args" but i would like to execute commands in already connected psql session. so i don't think any command (not possible). i tried the following with no success either. also, i set "user_new_terminal" to false and it still opens a new terminal. { i wish there was more documentation on this. |
Beta Was this translation helpful? Give feedback.
-
Also requested in #8674, which was closed as a dup of bigger issue #8344 . Would be nice to have a way to do this! |
Beta Was this translation helpful? Give feedback.
-
A workaround using I added this to the global context in my
This seems a bit hacky and relies on the default
This copies the whatever text is selected, switches to terminal, pastes, hits |
Beta Was this translation helpful? Give feedback.
-
I've been playing with tasks for a bit. I am trying to get something similar to the send-to-terminal capability in VSCode. i have a terminal open w/ a psql connection to a postgres database. i'd like to highlight a command and sent that to the terminal for execution. i think i can do that as a task. are there any examples of this anywhere?
Beta Was this translation helpful? Give feedback.
All reactions