Source

michel-orgmode / michel / michel.py

Author Commit Message Labels Comments Date
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
- create treemerge function which depends on diff3_text - add (simple) test for treemerge function
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
- 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 commandline flags to push to and pull from arbitrary task-lists
edgimar
- removed parse_old()
edgimar
- push task notes and status to google (in addition to title)
edgimar
- parse "DONE" in headlines, and map to a task's status
edgimar
- rewrote parse() function to parse simple org-mode files The new parser will only parse headlines and body-text (task-notes). It doesn't know anything about "DONE" status.
edgimar
- add "DONE" to beginning of a task if it has a status of 'completed'
edgimar
- add status instance variable to TaskTree nodes, and read in from google-task list.
edgimar
- print notes along with tasks when printing a task-tree as text. When printing a TasksTree object as an org-mode text representation, also include a task's notes (i.e. body) immediately following the task's headline (title), and prior to any sub-tasks.
edgimar
- Use asterisks to indicate task indentation (i.e. using org-mode format)
edgimar
- read task-notes into TaskTree objects when getting data from Google A task_notes instance-variable was added to the TaskTree class (which probably should be called TaskNode). When Google is polled for task data, and a Task-tree is built, each node's task_notes variable is populated. No other behavioral changes have been made.
edgimar
- use /usr/bin/env in shebang
Christophe-Marie Duquesne
Adding comments
Christophe-Marie Duquesne
!fix #1
Christophe-Marie Duquesne
Fixing encoding problems
Christophe-Marie Duquesne
writing on sys.stdout rather than using print (avoids utf8 errors for me)
Christophe-Marie Duquesne
Adding a comment concerning the oauth client_secret publishing
Christophe-Marie Duquesne
Revoked the previous key, pusblishing another one. This is supposed to be the way of doing it http://stackoverflow.com/questions/7274554/why-google-native-oauth2-flow-require-client-secret
Christophe-Marie Duquesne
first commit