How to pass current buffer as argument to a shell script? #11899
-
I am trying to write a shell script that takes the current file/buffer as an argument.
Is there a way to achieve this using a custom key binding in the config.toml? Here is the current configuration I was experimenting with:
I just started using helix and I am still reading through the docs, but I haven't found anything yet on this particular feature or if it even exists. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Do you want to give WezTerm a try? https://quantonganh.com/2023/08/19/turn-helix-into-ide.md |
Beta Was this translation helpful? Give feedback.
-
The command expansions PR adds this functionality. It's not merged yet, so you would need to build from source to use it. You can see an example in the docs part of the PR: [keys.normal]
# Print blame info for the line where the main cursor is.
C-b = ":echo %sh{git blame -L %{linenumber} %{filename}}" The PR still needs maintainer approval, but I've been building from source and using that PR for months. It works well. |
Beta Was this translation helpful? Give feedback.
The command expansions PR adds this functionality. It's not merged yet, so you would need to build from source to use it. You can see an example in the docs part of the PR:
The PR still needs maintainer approval, but I've been building from source and using that PR for months. It works well.