Permalink
Commits on Sep 21, 2009
  1. Portability fixes

    * Removed last echo -e instances, no support in OSX
    Paul Mansfield committed Sep 21, 2009
Commits on Sep 17, 2009
  1. Small change for addm test case.

    * Seems echo -e isn't multiplatform compatible. Using >> for append
      instead.
    Paul Mansfield committed Sep 17, 2009
Commits on Sep 14, 2009
  1. @mikewest

    Bug Fix: tasks whose ID begins with '0' ought to be ignored.

    *   Fixed regex in `_list` to exclude lines that begin with whitespace,
        as the ' ' => '0' replacement hadn't yet been performed.
    
    *   Added test cases to `t1300-ls.sh` to check for this condition.
    mikewest committed Sep 14, 2009
Commits on Sep 8, 2009
  1. @ginatrapani

    Merge branch 'the1ts/addm'

    ginatrapani committed Sep 8, 2009
  2. @ginatrapani
Commits on Sep 6, 2009
  1. whitespace fix

    Paul Mansfield committed Sep 6, 2009
  2. Added new action addm

    This allows addition of multiple todo items by sending multiple lines.
    Paul Mansfield committed Sep 6, 2009
Commits on Sep 5, 2009
  1. Tighten the regex in Issue 6 bugfix.

    Checks for complete action names before escaping &'s
    Paul Mansfield committed Sep 5, 2009
  2. Bug Fix: Issue 6 append and replace unexpected behavior if there's an…

    … & in task (even in quotes)
    
    Using the cleaninput function, to escape &'s on certain actions.
    Currently the actions needing escaped &'s are append, prepend and replace.
    Other actions including add need unescaped &'s.
    Paul Mansfield committed Sep 5, 2009
Commits on Sep 4, 2009
  1. @ginatrapani
  2. Added a new variable $TODO_FULL_SH

    This gives access to the full path of the script. It may prove useful
    for addon developers to rerun todo.sh from within their addons, in order
    to populate variables for context, projects etc. As we have the config
    and actions directory available via variables, this is a missing piece.
    Paul Mansfield committed Sep 4, 2009
  3. Bug Fix, better fix for "add does not escape line breaks"

    Now removes windows and unix style line breaks. Each test has a windows
    and a unix style line break.
    Paul Mansfield committed Sep 4, 2009
Commits on Sep 3, 2009
  1. @ginatrapani
Commits on Sep 2, 2009
  1. Bug Fix: Issue 1

    Added a cleanitem function, this replaces newlines with a space.
    Currently this is used in the add, append, prepend and replace actions.
    Paul Mansfield committed Sep 2, 2009
Commits on Sep 1, 2009
  1. @ginatrapani
Commits on Aug 30, 2009
  1. added option to disable final filter

    The option marker was chosen as "-x" here.
    Alternatives might be "-X" or "-*".
    FND committed Aug 30, 2009
Commits on Aug 29, 2009
  1. Bug Fix: do: no safeguard to do twice

    Tests item is not marked done before attempting to mark item as "done".
    Paul Mansfield committed Aug 29, 2009
Commits on Aug 26, 2009
  1. @ginatrapani

    Merge branch 'mivok/master'

    ginatrapani committed Aug 26, 2009
  2. @ginatrapani
  3. @ginatrapani

    Merge branch 'the1ts/master'

    ginatrapani committed Aug 26, 2009
Commits on Aug 22, 2009
Commits on Jul 4, 2009
Commits on Jun 27, 2009
  1. Bug Fix: prepend not correct on prioritized tasks

    Check for priority, if one exists, remove, prepend and add back.
    If priority doesn't exist just runs the normal prepend functionality.
    Paul Mansfield committed Jun 27, 2009
Commits on Jun 24, 2009
  1. Issue fix: Multiple do items

    Can now do multiple items in one go.
    Either comma seperated list or a whitespace seperated list
    Paul Mansfield committed Jun 24, 2009
  2. Bug fix: for replace with priority

    Checks for priority, removes, does replace then reinserts priority
    Paul Mansfield committed Jun 24, 2009
  3. Bugfix: Replace with priority set

    Checks for a priority, if found removes priority does the replace
    then adds back the priority.
    
    Added a test for replace with priority set.
    Paul Mansfield committed Jun 24, 2009
  4. Added test for prepend and priority fix

    Paul Mansfield committed Jun 24, 2009
Commits on Jun 23, 2009
  1. @mivok
  2. @mivok
Commits on Jun 22, 2009
  1. Fixing prepend and priority issue.

    Check for priority, delete if found, prepend and add back priority.
    Uses awk and sed, works in linux.
    Paul Mansfield committed Jun 22, 2009
Commits on May 11, 2009
  1. @sit

    listcon/listproj: Work around bug in older GNU greps.

    Commit df4f915 introduced the use of "grep -w -o".  This
    combination was broken from the introduction of -o (in 2001) until
    subsequent release of GNU grep 2.5.3 in 2007---see changelog for
    2005-11-10.  In particular, OS X uses a pre-2.5.3 version
    of GNU grep.
    
    Work around by replacing with two greps: one to find maximal
    strings with @s in them (still relying on -o) and the second to
    extract contexts.
    
    Reported by Jon Smajda <jon@smajda.com>; fix developed
    in conjunction with Philippe Teuwen <phil@teuwen.org>.
    
    Signed-off-by: Emil Sit <sit@emilsit.net>
    sit committed May 11, 2009
  2. @sit

    tests: Add tests to validate listcon and listproj.

    Two basic tests to ensure that listcon and listproj
    function as expected.
    
    Signed-off-by: Emil Sit <sit@emilsit.net>
    sit committed May 11, 2009
Commits on Apr 26, 2009
  1. @ginatrapani
  2. @doegox @sit

    Bugfix: TODOTXT_DEFAULT_ACTION was not exported, now exports TODOTXT_*

    Simplify the export of TODOTXT variables by having bash construct
    the export list dynamically.
    
    Signed-off-by: Emil Sit <sit@emilsit.net>
    doegox committed with sit Apr 20, 2009
  3. @doegox @sit

    test-lib.sh: unset some more TODOTXT env vars for extra safety

    While preparing a setup where env vars overload config file,
    I had the bad experience that my actual todo.txt was messed up
    by the testsuite so it's safer to unset everything.
    
    Even so, some tests could have failed if some TODOTXT_ were set
    in the user environment, for example:
    export TODOTXT_PLAIN=1
    ./t1200-pri.sh
    
    Since test-lib.sh does not depend on bash currently, calculate
    the list of variables to be unset using set|sed.
    
    Signed-off-by: Emil Sit <sit@emilsit.net>
    doegox committed with sit Apr 20, 2009