Open tomaley opened 11 months ago
Thanks for this feature request! There is a somewhat related issue you can track here: https://github.com/warpdotdev/Warp/issues/3205
In essence, when you have two arguments side by side with no character/space in between, the workflows don't work as intended. (i.e. echo {{arg1}}{{arg2}}
)
Please add a :+1: to the original post at the top to signal that you want this feature, and then hit the subscribe button if you'd like to be notified.
Thanks for this request! I'm thinking what the product should do is allow you to escape if what you want is the explicit moustache. It looks like the standard syntax in HTML would be to do {{{end}}}
. Does that seem like the right approach to you?
@zheng that sounds perfectly reasonable to me
I have this issue too with some Docker related commands in my Warp workflows. For example docker stats --format "table {{.Name}} {{.CPUPerc}}"
for displaying the CPU stats of my containers.
Let me also add my pain point - I've been unable to transfer all my iTerm snippets to Warp, which amazes me as there is no way to save plain text commands. I've been struggling with docker history --no-trunc --format "{{.ID}}: {{.CreatedBy}}"
.
Can you add a boolean checkmark somewhere to store the workflow as plain text and to be able to save that workflow?
You can take a detour and enter DOCKER_TEMPLATE=$(echo '{{ json .Mounts }}')
in the linux shell
Then use the following syntax in the workflow
docker inspect --format "$DOCKER_TEMPLATE" {{DOCKER_IMAGE}} | python3 -m json.tool
I hope the official can optimize this syntax
I am also experiencing this bug.
IMHO this is what Warp should do:
{{anything}}
as a literal string (everything is treated literally by default, users must make a part of the code a variable explicitly);{{anything}}
clickable;{{anything}}
, it would create a variable (with description and default value text boxes);{{anything}}
by keyboard (without mouse/touchpad/TrackPoint; e.g. using a special keyboard shortcut like Alt+1) and then press Enter.Another way to accomplish this is to select a part of the code and click a button (e.g. Make a variable
) or press a keyboard shortcut (e.g. Alt+V).
Discord username (optional)
No response
Describe the solution you'd like?
Is your feature request related to a problem? Please describe.
Additional context
No response
How important is this feature to you?
3
Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087
None