Send code to terminal #8674
Replies: 3 comments 4 replies
-
I believe there's already a feature request for this #8344. |
Beta Was this translation helpful? Give feedback.
-
Noting also several vim plugins that offer similar functionality: https://github.com/preservim/vimux or https://github.com/tpope/vim-dispatch. Send arbitrary text to another pane / dispatch a command. The task runner is okay for lots of things! However, for many workflows, it's inferior to being able to send text to an existing terminal pane. Maybe // Whether to use a new terminal tab or reuse the existing one to spawn the process, defaults to `false`.
"use_new_terminal": false, |
Beta Was this translation helpful? Give feedback.
-
I just find a solution to have similar feature than SendCode for Sublime Text. I add this to my keymap file
The ctr-i keyboard shortcut is personal, but enable to open or switch to terminal. I just change to cmd-alt-enter rather than cmd-enter, as I potentially have conflict with other shortcut, but I do not find which one for now. The only thing is that we need to highlight text we want to execute. |
Beta Was this translation helpful? Give feedback.
-
I'd like to run interpreted code from Zed, for example this python function. Is there any way to contextually send the code in the editor to the terminal? Are there keyboard commands that can do that?
Beta Was this translation helpful? Give feedback.
All reactions