Closed iilyak closed 6 years ago
JFYI: I am trying to strip new line returned by peco
[project] Select project (Args: [])
helloworld
---
✔ project DONE
[edit] Open given file (Args: [])
helloworld--noextraspaces
---
✔ edit DONE
04:26 PM ✔ kcmerrill tmp ] cat alfred.yml
project:
summary: Select project
command: echo "helloworld "
register: project
tasks:
edit
edit:
summary: Open given file
command: |
echo "{{ index .Vars "project" | trim }}--noextraspaces"```
---
Make sure youre on the latest and greatest. If you are, that yaml for some reason that "|" is throwing me off. Try tossing quotes around that ....
or try this:
```project:
summary: Select project
command: |
ls projects | bin/peco --prompt "project>" # <-- make sure the spacing here is correct, github editor doesn't like me tabbing
register: project
tasks:
edit
edit:
summary: Open given file
command: |
echo {{ index .Vars "project" | trim }}```
I am having the following tasks defined:
The error I am getting is