How to bind a printf/echo command that begins with a vertical bar/pipe? #3425
Unanswered
bound-variable
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You can escape the pipe (
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my bindings file I have:
"Alt-c": "command:textfilter printf '| — '",
But this errors with:
Error in bindings: action — ' does not exist
If I escape the vertical bar:
"Alt-c": "command:textfilter printf '\| — '",
This errors with:
Error reading bindings.json: invalid character '|' in string escape code
Beta Was this translation helpful? Give feedback.
All reactions