Commits

Author Commit Message Labels Comments Date
edgimar
- split test_unicode_print_and_dump_to_file() into two unit-tests
Brian Gainor
Leave task's title as a unicode, not a str, then encode when printing.
Brian Gainor
Updated test_unicode_print_and_dump_to_file() to use tasklist_to_tasktree() rather than creating TasksTree object directly.
edgimar
- refactored tasklist_to_tasktree() to permit testing
edgimar
- fix issue with UTF-8 strings and added unit-test
edgimar
- update setup.py to require pyxdg - added idea of multi-list sync option to todo-list
edgimar
- add list of possible todo's
edgimar
- rename functions/methods: - tree.last() -> tree.last_task_node_at_level() - parse_text() -> parse_text_to_tree()
edgimar
- change direction of update when performing first-time sync, and make backup. - remove profile argument defaults from functions (set default with argparse)
edgimar
- updated documentation with info on profiles, usage-examples, etc. - fixed typo with --profile argument help-string
edgimar
- handle case when org-file contains no headlines
edgimar
- added a --profile commandline argument to allow for different google-accounts If a --profile argument is specified, then this is used for storing/loading the oauth credentials. This allows org-files to be synced with gtasks lists from different accounts.
edgimar
- one more documentation fix: mention ability to sync in addition to push/pull
edgimar
- more compact command-line option help in README
edgimar
- simplify and update documentation - use improved argparse argument help strings
edgimar
- add persistent-object database functions (simple, using a pickled dict)
edgimar
- working bidirectional synchronization
edgimar
- allow --pull to a specified file instead of stdout. When using the --pull flag, if --orgfile is specified, then the output is written directly to the specified file. Otherwise, it is printed to stdout.
edgimar
- updated main() to use argparse
edgimar
- ignore pyc files
edgimar
- create treemerge function which depends on diff3_text - add (simple) test for treemerge function
edgimar
- add diff3 wrapper to allow diffing text strings
edgimar
- rename TaskTree.get() -> TaskTree.get_task_with_id() - bugfix: "if not x" fails for x being a len=0 TaskTree object; replaced with "if x is None". - pull gtask-list -> tasktree functionality out of print_todolist() into its own function (get_gtask_list_as_tasktree)
edgimar
- access children of TaskTree objects as list indices - new TaskTree method: add_subtree() -- adds all the children of a subtree as children of the current tree's root node. - avoid "x or y" syntax in TaskTree.last(), which behaves incorrectly if len(TaskTree()) is defined, and happens to be 0. - concatenate_trees() function -- combine the children of two trees into one tree. - unit tests for concatenation and TaskTree.add_subtree()
edgimar
- handle initial text in an org-file which isn't part of a headline Initial text in a file that isn't a headline (e.g. preceded with a "* ") will be treated as the body (notes) text for an empty headline (i.e. a line containing only "* "). In other words, the text will be parsed as if there were an empty headline inserted before the non-headline lines. - added test for this initial non-headline condition
edgimar
- updated test to use trailing newline
edgimar
- ensure that sting representation of tree includes trailing linefeed character, which is typical for text-files.
edgimar
- add script w/ unit-tests - bugfix: indent_level must be assigned *after* add-to-tree code in for loop
edgimar
- split parse() into parse_path() for files, and parse_text() for strings
edgimar
- added dependency list to documentation
  1. Prev
  2. Next