From f5b801d43ecf48686e92e99200024289e9a176ad Mon Sep 17 00:00:00 2001 From: Fernando Blat Date: Thu, 19 Aug 2010 13:04:49 +0200 Subject: [PATCH] First commit with the improvements over the original code --- Commands/Toggle Completed.tmDelta | 17 ++ Preferences/Style: Footer.tmPreferences | 19 +++ Preferences/Style: SubHeader.tmPreferences | 21 +++ Preferences/Symbol List: Footer.tmPreferences | 19 +++ .../Symbol List: SubHeaders.tmPreferences | 19 +++ Readme.md | 84 ++++++++++ Syntaxes/Tasks.tmDelta | 147 ++++++++++++++++++ info.plist | 32 ++++ 8 files changed, 358 insertions(+) create mode 100644 Commands/Toggle Completed.tmDelta create mode 100644 Preferences/Style: Footer.tmPreferences create mode 100644 Preferences/Style: SubHeader.tmPreferences create mode 100644 Preferences/Symbol List: Footer.tmPreferences create mode 100644 Preferences/Symbol List: SubHeaders.tmPreferences create mode 100644 Readme.md create mode 100644 Syntaxes/Tasks.tmDelta create mode 100644 info.plist diff --git a/Commands/Toggle Completed.tmDelta b/Commands/Toggle Completed.tmDelta new file mode 100644 index 0000000..8ff1252 --- /dev/null +++ b/Commands/Toggle Completed.tmDelta @@ -0,0 +1,17 @@ + + + + + changed + + keyEquivalent + $@ + + deleted + + isDelta + + uuid + 40140EB8-3634-465A-A656-32D6C879C85B + + diff --git a/Preferences/Style: Footer.tmPreferences b/Preferences/Style: Footer.tmPreferences new file mode 100644 index 0000000..2541547 --- /dev/null +++ b/Preferences/Style: Footer.tmPreferences @@ -0,0 +1,19 @@ + + + + + name + Style: Footer + scope + meta.footer.tasks + settings + + background + #FF0000 + foreground + #FFFFFF + + uuid + 5D4655C1-4F49-43F4-80D1-472127217ECA + + diff --git a/Preferences/Style: SubHeader.tmPreferences b/Preferences/Style: SubHeader.tmPreferences new file mode 100644 index 0000000..543b15d --- /dev/null +++ b/Preferences/Style: SubHeader.tmPreferences @@ -0,0 +1,21 @@ + + + + + name + Style: SubHeader + scope + meta.subheader.tasks + settings + + background + #34D167 + fontStyle + italic + foreground + #FFFFFF + + uuid + AA183261-1483-41D3-BFE4-42D23B6A1353 + + diff --git a/Preferences/Symbol List: Footer.tmPreferences b/Preferences/Symbol List: Footer.tmPreferences new file mode 100644 index 0000000..2a8f39d --- /dev/null +++ b/Preferences/Symbol List: Footer.tmPreferences @@ -0,0 +1,19 @@ + + + + + name + Symbol List: Footer + scope + meta.footer-line.tasks + settings + + showInSymbolList + 1 + symbolTransformation + s/:\s*// + + uuid + 2D8A85E4-442E-4853-A147-120015DE38C0 + + diff --git a/Preferences/Symbol List: SubHeaders.tmPreferences b/Preferences/Symbol List: SubHeaders.tmPreferences new file mode 100644 index 0000000..1f889bf --- /dev/null +++ b/Preferences/Symbol List: SubHeaders.tmPreferences @@ -0,0 +1,19 @@ + + + + + name + Symbol List: SubHeaders + scope + meta.subheader-line.tasks + settings + + showInSymbolList + 1 + symbolTransformation + s/:\s*$// + + uuid + A7D7304B-829F-4981-B85A-70B6948AF992 + + diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..6f2d037 --- /dev/null +++ b/Readme.md @@ -0,0 +1,84 @@ +# Tasks Bundle # + +Tasks bundle for Textmate. Based on Tasks bundle from [Henrik Nyh](http://henrik.nyh.se/2007/08/tasks-bundle) but improved in some aspects. + +## Features ## + +This bundle let's you manage tasks lists with Textmate. Tasks can be grouped in sections. Each task has two available states: pending, and done. + +For example: + + Project 1: + ✓ task 1 + ✓ task 2 + - task 3 + +All this features came with the original version from Henrik. + +I have added a second level for sections, and also a footer for each sections. That's because I get use to create a task list per day, and inside each day, a list per project. Also, I like to annotate some conclusions at the end of each day in each project. + +This would be a sample task list for me: + + Monday: + + @ Project 1 + + ✓ task 1 + ✓ task 2 + ✓ task 3 + + > spent 3h + + @ Project 2 + + - update the library version and deploy + + Tuesday: + + @ Project 1 + + - task 1 + - task 2 + + @ Project 2 + + - check for bugs + + +## Installation ## + +To install via Git: + + mkdir -p ~/Library/Application\ Support/TextMate/Bundles + cd ~/Library/Application\ Support/TextMate/Bundles + git clone git://github.com/ferblape/Tasks.tmbundle.git + osascript -e 'tell app "TextMate" to reload bundles' + +Source can be viewed or forked via GitHub: [http://github.com/ferblape/Tasks.tmbundle.git](http://github.com/ferblape/Tasks.tmbundle.git) + +## License ## + +(The MIT License) + +Copyright (c) 2010 Fernando Blat, http://fernando.blat.es. + +Based in the code from [Henrik Nyh](http://henrik.nyh.se/2007/08/tasks-bundle) + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/Syntaxes/Tasks.tmDelta b/Syntaxes/Tasks.tmDelta new file mode 100644 index 0000000..5671d35 --- /dev/null +++ b/Syntaxes/Tasks.tmDelta @@ -0,0 +1,147 @@ + + + + + changed + + patterns + + + include + #link + + + captures + + 1 + + name + meta.leading-whitespace.tasks + + 2 + + name + punctuation.definition.bullet.tasks + + 3 + + name + meta.task-proper.tasks + + + match + ^(\s*)(✓)(.*)$\n? + name + meta.task.completed.tasks + + + captures + + 1 + + name + meta.leading-whitespace.tasks + + 2 + + name + meta.footer.tasks + + + match + ^(\s*)(\>\s*[^\n]+)$ + name + meta.footer-line.tasks + + + captures + + 1 + + name + meta.leading-whitespace.tasks + + 2 + + name + meta.subheader.tasks + + 3 + + name + meta.toc-list.tasks + + 4 + + name + punctuation.definition.separator.tasks + + + match + ^(\s*)((\@\s*.+)(:?)$) + name + meta.subheader-line.tasks + + + captures + + 1 + + name + meta.leading-whitespace.tasks + + 2 + + name + punctuation.definition.bullet.tasks + + 3 + + name + meta.task-proper.tasks + + + match + ^(\s*)(-)(.*)$\n? + name + meta.task.pending.tasks + + + captures + + 1 + + name + meta.leading-whitespace.tasks + + 2 + + name + meta.header.tasks + + 3 + + name + meta.toc-list.tasks + + 4 + + name + punctuation.definition.separator.tasks + + + match + ^(\s*)(([^@>]+)(:)\s*$\n?) + name + meta.header-line.tasks + + + + deleted + + isDelta + + uuid + CDF5D65E-F8C5-4FD5-8BC3-D4BE8FE2C1EA + + diff --git a/info.plist b/info.plist new file mode 100644 index 0000000..c15e3c4 --- /dev/null +++ b/info.plist @@ -0,0 +1,32 @@ + + + + + changed + + ordering + + DD46B6D4-3616-4797-87D4-F089F68B28A7 + 5D4655C1-4F49-43F4-80D1-472127217ECA + AA183261-1483-41D3-BFE4-42D23B6A1353 + F924F556-9D59-4163-8CCB-FD1EFE5D3F5B + B0949D68-BD8E-4CA7-BA92-61A0498A345D + 59C72689-01D3-4817-989E-7E7870C23F55 + 7CEAC287-41F5-4ED7-908F-D29D3F0DBC1B + 40140EB8-3634-465A-A656-32D6C879C85B + 9216E069-0972-4C19-8475-4943B4A51D0B + A017686E-8A69-4886-97D4-34A99BCEEDB5 + A7D7304B-829F-4981-B85A-70B6948AF992 + 840B8DDD-86C9-4BC3-8A86-1AC4B7EC34BD + 2D8A85E4-442E-4853-A147-120015DE38C0 + CDF5D65E-F8C5-4FD5-8BC3-D4BE8FE2C1EA + + + deleted + + isDelta + + uuid + 32A18B7A-5704-4B47-945A-392F7C3BB6AF + +