-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Way to execute shell commands #1541
Comments
Does https://docs.helix-editor.com/keymap.html#shell fit your needs ? |
No. It executes the command and pastes the output. There are commands that needs to be run in background or it needs to run and the output needs to be shown on a separate buffer or window. |
I'm curious what commands you're running where you need to see the output, but wouldn't be better served just by running it in another terminal window/pane/tab? Like if you have to switch buffers to see the output anyway, how is this better than the shell? If you have a pane with the output at the bottom of the editor, then how is this better than a split tmux pane? |
Should be easy to create such a command via helix/helix-term/src/commands.rs Lines 6015 to 6051 in 4044c70
|
Running with |
It is sure possible to run commands. but I want to bind a shell command to a keymap |
By adding a command (e.g. |
I'm pretty sure. |
Ye!!!. That PR looks good |
As PR #1682 has been merged. This Issue can be closed. |
There are times when one wants execute shell commands in a text editor. Vim achieves this by taking !commands as commands for executing in shell. example:
:!pandoc '%' --pdf-engine=xelatex -o ~/Documents/out.pdf &<cr><cr>
. This is extremely convinient as i don't have to open a separate terminal to do this command. the % in the command refers to the current fileThe text was updated successfully, but these errors were encountered: