jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
368 stars 32 forks source link

Expose selected variables to execution environment #67

Closed jschlatow closed 11 years ago

jschlatow commented 11 years ago

Provide $FILE, $UUID, $ID, $ANNOTATION and $LABEL so that the user may decide/configure which arguments will be passed to a command.

This should work on the command line.:

taskopen -x 'cat "$FILE" | head -n 2'

as well as in taskopenrc:

CUSTOM1_REGEX=".*\.sh"
# execute .sh files and pass UUID as first argument
CUSTOM1_CMD="$FILE $UUID"
linuxcaffe commented 11 years ago

o.m.g.

On 2 March 2013 00:13, Johannes S. notifications@github.com wrote:

Provide $FILE, $UUID, $ID, $ANNOTATION and $LABEL so that the user may decide/configure which arguments will be passed to a command.

This should work on the command line.:

taskopen -x 'cat "$FILE" | head -n 2'

as well as in taskopenrc:

CUSTOM1_REGEX=".*.sh"

execute .sh files and pass UUID as first argument

CUSTOM1_CMD="$FILE $UUID"

— Reply to this email directly or view it on GitHubhttps://github.com/ValiValpas/taskopen/issues/67 .