This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| import os | |
| import sys | |
| import re | |
| # Python print vs sys.stdout.write(): | |
| # http://stackoverflow.com/q/3263672 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python -S | |
| #encoding: utf-8 | |
| # For TM2:TextTasks | |
| # Settings: | |
| # Input::Line::Text | |
| # output::Replace Selection::Snippet | |
| import os | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python -S | |
| #encoding: utf-8 | |
| # For TM2:TextTasks | |
| # Settings: | |
| # Input::Line::Text | |
| # output::Insert after input::Snippet | |
| import os | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python -S | |
| #encoding: utf-8 | |
| # For TM2:TextTasks | |
| # Settings: | |
| # Input::Line::Text | |
| # output::Replace input::Snippet | |
| import os | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| property inbox_cmd : "$HOME/Tools/bin/inbox" | |
| tell application "Mail" | |
| set theMessages to selection | |
| repeat with msg in theMessages | |
| set title to subject of msg (* Strip Re: etc. *) | |
| set link to "message://%3C" & message id of msg & "%3E" | |
| set arg to title & " " & link | |
| do shell script inbox_cmd & " " & quoted form of arg | |
| end repeat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # zk - create a new zettelkast entry and return the path | |
| import sys | |
| import os | |
| import pwd | |
| import argparse | |
| from datetime import datetime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| [[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh" | |
| path=`zk --txmt` | |
| if [[ "$path" ]]; then | |
| open $path | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python -S | |
| """Open a link (or Markdown style reference link) in TextMate's companion window.""" | |
| import os | |
| import sys | |
| import re | |
| envvars = ['TM_BUNDLE_SUPPORT', 'TM_SUPPORT_PATH'] | |
| sys.path[:0] = [os.environ[v]+'/lib' for v in envvars if os.environ[v] not in sys.path] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| This module generates documentation for a TextMate bundle by parsing the .tmCommand files. | |
| """ | |
| import os | |
| import sys | |
| import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| def discard(): | |
| sys.exit(200) | |
| def replace_text(out = None): | |
| if out: | |
| sys.stdout.write(out) | |
| sys.exit(201) |
OlderNewer