How to pass current buffer as argument to a shell script? #11899
Unanswered
lando-tech
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to write a shell script that takes the current file/buffer as an argument.
A simple example:
#!/bin/bash python3 "$1" # Argument is the path to the current buffer
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:
[keys.normal.'\'] R = ":run-shell-command ~/<path-to-script> {file-path}"
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.
All reactions