PlainTasks icon indicating copy to clipboard operation
PlainTasks copied to clipboard

Agenda Mode

Open lucasnad27 opened this issue 9 years ago • 2 comments

I'm moving over from orgmode in emacs and one of the KILLER features IMO is agenda mode. I think a few things would be needed to make this work well so I'll list them below:

- File management (keep a stored list of todo files)
- Filtered/sorting of existing views of existing *.todo items
- Additional options from the Command Palette (open orgmode, create/open/register *.todo files)

I'm happy to contribute. I don't have much experience with sublime plugins, so some guidance would be needed to make sure I'm making the right architectural decisions.

lucasnad27 avatar Nov 08 '16 18:11 lucasnad27

Feel free to ask any questions here or on Gitter. Though I never used/tried agenda in orgmode

Filtering by tag was something I wanted early, and there was even attempt to do it #56 but turned out FilterLines does just what it need and can be used in any file.

Then I faced situation when I need to look at tasks in multiple files at once, so Toway was born. I decided to make it outside of ST for several reasons:

  1. adding file by drag and drop — easy, I wouldn’t like to have keybinding or type in command palette (speaking of ST we could add action into context menu of file)
  2. monitoring is automatic, i.e. app looks for filesystem events and in case of change re-creates the list — it is the most important thing for me personally because again I do not want to remember to press keybinding after extensive edits in my file(s), it is more convenient when list is up-to-date by itself. Speaking of ST it is harder to achieve than 1. You can try to use watchdog or just avoid automatic monitoring. If you need example for using watchdog in ST here it is
  3. stand-alone read-only list prevent unwanted edits/mistakes (maybe it is just me, dunno)

Speaking of architecture, I recommend to avoid (extensive) use of normal classes, because it makes code too complicated, if you need base class or if you want to use class as advance function then it is okay; but if you thinking about metaclasses or mixins then just stop right there.

vovkkk avatar Nov 08 '16 22:11 vovkkk

Also, please try to keep cyclomatic complexity low (11 is desirable maximum); radon.

vovkkk avatar Nov 08 '16 22:11 vovkkk