Tags
I added commands to the following commands to the Tasks bundle.
- Skip a task (toggle)
- Expire Skipped tasks
Items marked in cross – ‘X’ change colour to yellow indicate skipped tasks. This is how it looks:
If you want to use it please follow these steps so that you can use it for your presentations/workshops etc…
- Git clone:
$ git clone git@github.com:DhavalDalal/textmate-bundles.git
- Change the working dir to:
$ cd textmate-bundles/ $ git branch --list * master
We need to checkout to the branch – skipped. However, if you notice, its not being shown as a local branch.
- So, lets check all the remote branches:
$ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master remotes/origin/skipped
Though the ‘skipped’ branch is there on the remote, we need to track it locally like the master.
- Track all remote branches:
$ git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
- Verify all our locals for the remotes are created:
$ git branch --list * master skipped
- Update local branches that the track remote branches:
$ git pull --all Fetching origin
- Switch to Skipped branch:
$ git checkout skipped Switched to branch 'skipped' Your branch is up-to-date with 'origin/skipped'.
- Go to:
$ cd Review/Bundles
In here, you will find the directory –
Tasks.tmbundle
- Copy this entire directory to the place where Textmate2 stores its bundles (Usually this is
~/Library/Application\ Support/TextMate/Bundles
):$ cp -r Tasks.tmbundle/ ~/Library/Application\ Support/TextMate/Bundles/Tasks.tmbundle/
- Finally, restart TextMate and create a todo list.
- Use ⌘K to Skip the task and the same to toggle back to unskip. If no text is selected, the task on the current line is toggled: if it’s pending, it’s marked as skipped and vice versa. If text is selected, every task in the selection is toggled in batch: if any of the tasks are pending, all are marked as skipped; if all are completed, they’re marked as pending.
- Press ⌘E to remove skipped tasks in the selection or else the entire document.
Advertisements