Skip to content

Instantly share code, notes, and snippets.

View larryhynes's full-sized avatar

larryhynes larryhynes

View GitHub Profile
#!/bin/sh
TODOFILE=/Users/larry/todo.taskpaper
TEMPTODO=`basename $0`
LINE=1
TMPFILE=`mktemp /tmp/${TEMPTODO}.XXXXXX` || exit 1
cat | sed 's/^/ -/' | unexpand -t4 > $TMPFILE || exit 1
ed -s $TODOFILE <<SHAZAM
${LINE}r $TMPFILE
w
#!/bin/bash
# http://larryhynes.net/2013/12/launchbar-to-taskpaper.html
# Important disclaimer: I have no idea what I’m doing
TODOFILE=/Users/larry/todo.taskpaper
TEMPTODO=`basename $0`
LINE=1
TMPFILE=`mktemp /tmp/${TEMPTODO}.XXXXXX` || exit 1
printf "$1" | sed 's/^/ - /' | unexpand -t4 > $TMPFILE || exit 1
ed -s $TODOFILE <<EOF
${LINE}r $TMPFILE
#!/bin/sh
# mutt_to_taskpaper.sh
# larryhynes.net/
# Important disclaimer: I have no idea what I'm doing
# This script will take the subject line of an email in mutt and add it to your Taskpaper inbox provided that "Inbox:" is the first line of your taskpaper file. The script can be called by a macro in mutt by adding `macro index T "<pipe-entry>~/mutt_to_taskpaper.sh<enter>"` to your .muttrc file, then T will add the todo item. You may need to make sure that the script is executable. You can adjust the path and name of your taskpaper file below to suit your setup.
TODOFILE=/Users/larry/todo.taskpaper
TEMPTODO=$(basename "$0")
LINE=1
TMPFILE=$(mktemp /tmp/"${TEMPTODO}".XXXXXX) || exit 1
@larryhynes
larryhynes / .slate
Last active December 27, 2015 17:29
# Configuration is split into the following directives:
# config (for global configurations)
config defaultToCurrentScreen true
config resizePercentOf screenSize
# alias (to create alias variables)
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY