Giter Club home page Giter Club logo

ofexport's People

Contributors

damicoac avatar infotexture avatar psidnell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ofexport's Issues

New user. Setup & Install OF2

Downloaded & unzipped.

Ran install & followed to best of my ability. (placed in my username dir. Initially there were errors but I seem to have resolved them. Now a terminal command completes w/o error but I can find any output.

Here's the command from "examples" on your site. (I want only to output flagged items and then I'm going to use GeekTool to get them to the Desktop):

ofexport -E -a done=any -I -t "flagged or (due='to tomorrow')" -o /tmp/ex8-due-or-flagged.taskpaper

I've run it with .taskpaper and then .txt as the last part of the command and then searched for anything created with those extensions and found nothing. Please let me know if there's more I should be looking for or anything I could do. As a note, I haven't set up the Hazel Rule since I think it needs the output to act on and it doesn't exist yet, but perhaps that's wrong.

Thanks

Add `.todo` as recognized TaskPaper extension

I use .todo as the extension for my TaskPaper files, so I tried to tell ofexport to write a file with this extension using the taskpaper-lite template, but this throws an error:

$ ofexport -T taskpaper-lite -o ~/Desktop/Test-taskpaper-lite.todo --open
    Traceback (most recent call last):
        File "~/.../ofexport/src/main/python/ofexport.py", line 258, in <module>
                raise Exception ('unknown format ' + fmt)
    Exception: unknown format todo

Only return available actions or Perspectives

Just installed ofexport.

Three questions:
Is there any way to output only tasks that are available (or alternatively, exclude completed tasks)?

Is there any way to output the tasks that would be included in a Perspective?

Is there a way to only include the task name and due date in the output? (no notes, no, defer date, etc)

ofexport can't list all my folders

I think maybe I have a corrupted db but I'm at a loss on ideas to fix it. I'm using OmniFocus 2 with a database that migrated with me through the various betas of OmniFocus 2.

Only some of my folders are seen but many are not. I get the following trace back in terminal when trying to run ofexport without any parameters:

Traceback (most recent call last):
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/ofexport.py", line 239, in <module>
    m.generate(out, root_project, root_context, project_mode, template_dir, type_config)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/plugin_text.py", line 24, in generate
    format_document (subject, visitor, project_mode)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/fmt_template.py", line 166, in format_document
    traverse_list (formatter, root.children, project_mode=project_mode)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 260, in traverse_list
    traverse (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 265, in traverse
    traverse_folder (visitor, item, ignore_marked=ignore_marked)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 319, in traverse_folder
    traverse_list (visitor, folder.children, ignore_marked=ignore_marked)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 260, in traverse_list
    traverse (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 270, in traverse
    traverse_project (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 307, in traverse_project
    traverse_list (visitor, project.children, ignore_marked=ignore_marked, project_mode=project_mode)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 260, in traverse_list
    traverse (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 272, in traverse
    traverse_task (visitor, item, ignore_marked=ignore_marked, project_mode=project_mode)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/treemodel.py", line 291, in traverse_task
    visitor.begin_task (task)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/fmt_template.py", line 97, in begin_task
    self.update_attribs(task, 'task')
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/fmt_template.py", line 147, in update_attribs
    attribs = self.template.attrib_map_builder.get_values (item)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/attrib_convert.py", line 91, in get_values
    value = conversion.value (x, self.type_fns)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/attrib_convert.py", line 49, in value
    value = type_fns[self.type] (value)
  File "/Users/manthei/Dropbox/scripts/ofexport/src/main/python/attrib_convert.py", line 63, in <lambda>
    self.type_fns['date'] = lambda x: x.strftime(self.date_format)
ValueError: year=800 is before 1900; the datetime strftime() methods require year >= 1900

Any thoughts on how I can understand what is broken and fix it? I'm trying to come up with a query that can find the tasks with the offending date prior to 1900 but no joy so far.

working with Omnifocus2 from Mac App store

Hi
I have upgraded Omnifocus to the version 2 from the Mac App store
ofexport still use my old database generated before I upgraded
I guess I need to edit of export.json but I don't know the path I need to add/correct
Thx for your help

Issue with context mode

I see context mode is not documented, but it shows up in the command line help so I tired using it and got the following error:

$ ofexport -o /Users/tmarkiewicz/Documents/OmniFocus/index.html --tfi --tci none --tse 'from tomorrow' --prune -F -C
--tfi = Task flagged includes flagged
Traceback (most recent call last):
File "/Users/tmarkiewicz/scripts/ofexport/ofexport.py", line 262, in
traverse_list (visitor, items)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 167, in traverse_list
traverse (visitor, item, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 173, in traverse
traverse_context (visitor, item, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 184, in traverse_context
traverse_list (visitor, context.children, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 167, in traverse_list
traverse (visitor, item, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 177, in traverse
traverse_task (visitor, item, ignore_marked = ignore_marked)
File "/Users/tmarkiewicz/scripts/ofexport/treemodel.py", line 190, in traverse_task
visitor.begin_any (task)
File "/Users/tmarkiewicz/scripts/ofexport/visitors.py", line 69, in begin_any
item.attribs[SELECTED] = item.parent.attribs[SELECTED]
KeyError: 'visitors.selected'

My use case is showing a flagged view of tasks that aren't in the future. It works great in the regular project mode though (thanks!!).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.