Commit graph

141 commits

Author SHA1 Message Date
Wilhelm Schuermann
229078ffed Scripts: Disable hooks in bash completion script
- Stop on-launch and on-exit hooks with output from interfering with
  bash completion.
2015-04-01 16:23:42 +02:00
Wilhelm Schuermann
3f394fa164 TW-1588: Fix broken export scripts 2015-03-31 07:26:10 +02:00
Wilhelm Schuermann
df209b9b8b TW-1587: Further improve example on-exit hook
- Initial patch was not quite right.  on-exit _does_ receive added and
  modified tasks on STDIN, but is not allowed to return JSON.
2015-03-31 07:25:23 +02:00
Jochen Sprickerhof
c27f5d23b6 Hooks: Remove read loop from example on-exit hook
There is no input to the on-exit script. Prevents error:
"Hook Error: Expected 0 JSON task(s), found 1"

Signed-off-by: Wilhelm Schuermann <wimschuermann@googlemail.com>
2015-03-30 21:38:25 +02:00
Wilhelm Schuermann
bc335e8075 Add-Ons: Fix export-html.pl for new export format 2015-03-30 09:41:45 +02:00
Tomas Babej
704eb1eab3 scripts: Enforce disabled confirmation in bash completion
https://bug.tasktools.org/browse/TW-1578
2015-03-18 14:14:59 -04:00
Tomas Babej
3b9d88a87b completion: Add bash completion for contexts 2015-02-26 20:51:39 -05:00
Paul Beckingham
8e730f2da3 Hooks
- Updated examples to not rely on bash being in /bin.
2015-02-07 10:25:50 -05:00
Paul Beckingham
1cfdfbae52 Hooks
- Removed the ability for hooks to add tasks, or modify tasks that are outside
  the context of the current event. This makes hooks a local mechanism that
  operates only on local changes. Modifications/additions coming in via sync
  command are not processed by hooks.
2015-01-31 17:47:58 -05:00
Paul Beckingham
b7ad091d00 Updated copyright to 2015 2015-01-01 00:00:41 -05:00
Renato Alves
d49a2614ba Bug - import/export now output JSON as individual objects
* For JSON as array, json.array=1 behaves as before
* Tests and add-on scripts used in import tests were updated
2014-10-20 20:21:11 +01:00
Paul Beckingham
94e243d8d0 Hooks
- Added 'read -t 1' as an example for the on-exit sample hook.
2014-10-09 19:05:24 -04:00
Wilhelm Schuermann
ffc456be88 Hooks
- Cleaned up on-add.the example hook; now works with huge input without falling over.
2014-10-02 14:50:52 -04:00
Paul Beckingham
3a0f633948 Fish
- Commented out (with explanations) features that can fill pages of output,
  which is probably not desirable (thanks to Jeremy John Reeder).
2014-09-19 15:15:13 -04:00
Paul Beckingham
1fc388886f Hooks
- Typos.
2014-09-09 23:19:39 -04:00
Paul Beckingham
51291f76fe Hooks
- Updated documentation and style of example hook scripts.
2014-09-09 23:09:24 -04:00
Paul Beckingham
ec0757b2c9 Hooks
- Added example of spelling correction via hook script.
2014-09-09 23:08:38 -04:00
Paul Beckingham
633d273ef3 Hooks
- Implemented replacement for shadow files, in the form of a hook
  script.
- Uses rc.shadow.command otherwise rc.default.command.
- Uses rc.shadow.file.
- Overrides settings that cause race conditions.
- Provides success and failure messages.
2014-09-08 01:38:09 -04:00
Paul Beckingham
7fdac6a09e Hooks
- Added an example hook script, on-exit.shadow-file, which simulates the now
  deprecated (soon to be removed) shadow file feature.
2014-09-08 00:51:21 -04:00
Paul Beckingham
4b70a26e60 Hooks
- Clarified the interface for on-exit, as there is no opportunity for scripts
  triggered by this event to modify data directly.
2014-09-07 22:42:41 -04:00
Paul Beckingham
f47054c485 Hooks
- Added README describing the hook system.
- Corrected hook interface details regarding exit codes.
2014-09-07 22:13:31 -04:00
Paul Beckingham
9e45f5e637 Hooks
- Fixed typo in example hook scripts.
2014-09-07 21:59:31 -04:00
Paul Beckingham
d33de636f1 Fish
- Updated with new config completion.
- Restored completion that was broken by removing tabs.
2014-09-06 15:15:59 -04:00
Paul Beckingham
02b2b9b212 Fish
- Updated task.fish (thanks to Roman Inflianskas).
2014-09-06 12:14:28 -04:00
Roman Inflianskas
f2c9be6c59 TW-1403
- TW-1403 fish shell: no option "modify" after task selection (thanks to Roman
          Infliansksas).

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-08-31 17:31:37 -04:00
Paul Beckingham
72210ec2ac L10N
- Updated Python to 2.7, to match that used in hte unit tests.
2014-08-31 08:48:13 -04:00
Markus Beppler
865bee5f11 TW-1383
- Segmentation fault running import-yaml.pl with included example

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-07-28 00:21:30 -04:00
lolilolicon
c92139389a taskdata.vim fixes; ftdetect backlog.data as JSON 2014-07-11 20:13:16 -04:00
lolilolicon
722cc9b300 Update taskedit.vim for multiline values
Commit 0c1fa8b enables multiline value for "Description:". Update
taskedit.vim syntax file for this:

  1) Now all keys are required to be indented exactly 2 spaces.
  2) We treat all keys equally, allowing all values to span multiple
lines, up until the next key.
2014-07-11 20:13:13 -04:00
lolilolicon
09ea21ef7b Update taskrc VIM syntax file for 2.4.0 2014-07-11 20:13:10 -04:00
Paul Beckingham
c57a1dbc6f TW-1373
- TW-1373 taskrc.vim VIM syntax file updated (thanks to lolilolicon).
2014-07-10 22:58:59 -04:00
Paul Beckingham
d6c6245ca9 L10N
- Bug in l10n utility where it only searched for used strings in src/??-??.h
  files instead of src/???-???.h
2014-07-05 11:21:10 -04:00
Scott Kostyshak
6eee9e0544 Bash Completion
- Improved bash completion when TASKRC is exported.
- Added a unit test.

Description of previous behavior:

  $ export TASKRC=/tmp/.taskrc
  $ task ad<TAB><TAB>

lead to the following output:

  $ task adTASKRC override: /tmp/.taskrc
  dTASKRC override: /tmp/.taskrc
  TASKRC override: /tmp/.taskrc

Signed-off-by: Paul Beckingham <paul@beckingham.net>
2014-07-04 16:35:15 -04:00
Paul Beckingham
db37b0d4ed Hooks
- Corrected comment in sample hook script.
2014-05-17 11:41:32 -04:00
Paul Beckingham
11058396c8 Hooks
- Cleaned up せxample hooks, with clearer inline documentation.
2014-05-17 11:16:32 -04:00
Paul Beckingham
3f2df5a3b6 Hooks
- Added example hook scripts.
2014-05-14 20:10:37 -04:00
Paul Beckingham
13c0efb178 Add-on
- Updated the import-todo.sh with the latest examples from todotxt.org, and
  tested that the import is still good.
2014-04-20 08:16:24 -04:00
Paul Beckingham
24d7411aa8 I18N
- Updated all L10N language/country references to use ISO 639-3 (language)
  and ISO 3166-1 alpha 3 (country) codes.
- Note that holiday files are not updated.
2014-04-19 09:26:22 -04:00
Paul Beckingham
523dce8f32 Code Cleanup
- Standardized headers.
2014-02-01 14:33:37 -05:00
Renato Alves
c854196af0 Feature #1255
- l10n now accepts an additional --single argument to restrict
  localization comparison to reference vs specified
- 3 letter localization now also supported (ISO 639-2)
- reference (en-US.h) is now always the first column
2014-01-28 12:48:18 -05:00
Paul Beckingham
8b736934d7 Code Cleanup
- Removed deprecated 'push', 'pull' and 'merge' commands.
2014-01-18 19:12:48 -05:00
Paul Beckingham
98f740e9d1 Merge branch '2.3.0' into 2.4.0
Conflicts:
	AUTHORS
	CMakeLists.txt
	NEWS
	src/A3.cpp
	src/CMakeLists.txt
	src/Config.cpp
	src/Duration.cpp
	src/Duration.h
	src/Nibbler.cpp
	src/Nibbler.h
	src/RX.cpp
	src/RX.h
	src/columns/ColDate.cpp
	src/columns/ColScheduled.cpp
	src/commands/Command.cpp
	src/legacy.cpp
	src/utf8.cpp
	src/utf8.h
	test/CMakeLists.txt
	test/bug.mergedeps.t.postponed
	test/duration.t.cpp
	test/merge.duplicates.t
	test/merge.simple_duplication.t
	test/merge.t
	test/nibbler.t.cpp
	test/roundtrip.t
	test/rx.t.cpp
	test/utf8.t.cpp
2014-01-07 19:10:03 -05:00
Paul Beckingham
8ed92ca498 Copyright
- Bumped copyright to 2014, ready for release.
2014-01-01 13:32:22 -05:00
Paul Beckingham
d0776c83b5 Bug #1387
- #1387 ZSH Auto-Completion dates are not current (thanks to Benjamin Weber).
2013-09-29 11:54:52 -04:00
Ben Armstrong
ac811c6930 Initial support for context and focus (see Issue #218). 2013-08-21 17:34:19 -04:00
Paul Beckingham
f0048395fb L10N Utility
- Combined three l10n utiity scripts into one, which can now do the following:
  - Automatically locate all the localized string files.
  - Look for missing strings in the localized string files.
  - Point out strings that are not used in the code.
  - Count strings.
  - Warn when strings are unchanged across languages.
  - Exit with a status code, so it can be used in unit tests.
- Thanks to Wim Schuermann and Fidel Mato for providing code and ideas.
2013-04-16 00:11:07 -04:00
Paul Beckingham
8af0a7f3ba Merge branch 'master' into 2.3.0
Conflicts:
	AUTHORS
	CMakeLists.txt
	INSTALL
	NEWS
	cmake.h.in
	doc/man/task-faq.5.in
	package-config/osx/README
	scripts/utils/verify_l10n
	src/API.h
	src/Config.cpp
	src/Context.cpp
	src/DOM.cpp
	src/Hooks.cpp
	src/TransportShell.h
	src/commands/CmdDiagnostics.cpp
	src/commands/CmdShell.cpp
	src/commands/CmdVersion.cpp
	src/en-US.h
	src/shell/Readline.h
	src/wcwidth6.cpp
	test/CMakeLists.txt
	test/color.uda.t
	test/duration.t.cpp
	test/hook.on-launch.t
	test/template.t
	test/uuid.t
2013-04-07 17:56:59 -04:00
Paul Beckingham
e746a95969 L10N
- A new 'verify_l10n' utility ensures the localizations are in sync (thanks to
  Wim Schuermann).
2013-04-07 15:05:21 -04:00
Federico Hernandez
d99e0db108 cmake
- removed the obsolete extensions directory from the
  install target
2013-04-02 22:18:17 +02:00
Federico Hernandez
7db5377d3b Removed the incomplete support for the Lua extensions. 2013-04-02 21:52:13 +02:00