Bike 2.0 (Preview 291)

Previous release added badges. This release tries to give two polished uses of badges to guide future development. In the process I removed the “priority” example from last release. I moved to example extensions if you want to keep using it. Along the way I added extension API needed to make the polish possible.

The progress badge should task/done counts in each parent of a task. It’s not do different then before, but when you click it you’ll get a menu with a few filter options and a few action options.

I also added a “Due” badge and did a bunch of work on the calendar extension in the inspector to support it. I think it’s a pretty good example of how a badge can work together with other use to provide a full display/edit/filter solutions. In this case for due dates. And it is an ignorable feature, just a few commands to start things off, easy to ignore if you don’t need.

To use due:

  1. Select a row and invoke command “Due: Set”
  2. This shows a menu that allows you to set a due date
  3. Once you have set that due date it shows up as a blue dot under the date in the inspector calendar.
  4. To see all items due on a particular date click that date in the calendar.
  5. Like before that action puts text caret on that date row. But different then before, if there are due items associated with that date your outline is also filtered to show them.

Tricks:

  • You can drag and drop rows to calendar to set due date
  • Calendar now supports arrow keys to navigate between days
  • When the calendar has focus if you press Return, then focus will switch to outline editor.

Give both the progress and due UI’s a try. Let me know what can be improved. I think for 2.0 this is probably enough for badges, excluding any suggested improvements.

Edit Code hasn’t been cleaned, but you can see how both of these features work (and build your own similar), they are both implemented as core extensions.

3 Likes