Bike 2.0 (Preview 287)

  • Reverted (@done) strikethrough formatting
  • Rows could briefly go blank while type/return quickly
  • Document windows weren’t being released after closing
  • Filtered (hidden) rows now stay hidden when printing
  • Fixed pasting URLs at char 0 should now apply smart link
  • The filter field’s cancel button now highlights on mouse over
  • The find/filter current-match highlight (yellow) only shows when editor is not first responder

Extensions + CLI

  • New lifecycle hooks: window.onClose, document.onClose, outline.onClose.
  • New Session/CLI observe streams: observeOutlineEditor and observeEditors
  • Heads-up — breaking API changes: getCommands(), evaluateScript(), and observeOutline()
  • Added session automation docs to cover bike cli and DOM context session.d.ts. Trying to keep documentation bike -h and man bike and session.d.ts documentation minimal to avoid drift and duplication.

Download:

1 Like

More CLI and DOM session.d.ts churn…

Trying to both add features while keeping the two api consistent. The end result though is that it’s much easier for an extension to keep DOM UI in sync with outline and editor. I’ve updated the d3 example extension to show new behavior.

Previously it just showed a static layout of your outline. Now, with less code I think, it keeps that view in sync with your outline as you edit and it trims the layout to the focused region of your editor. All without needing to define custom protocol between extensions App Context and DOM context.

It (bike.session.observeOutlineEditor) does this relatively efficiently too. It is receiving change events as you edit your outline/editor and then maintains it’s own copy of your outline, updating incrementally as you make changes. So it’s not just sending a debounced snapshot of all state, it’s just applying deltas.

1 Like

Thank you – that looks very good.

( I’ll experiment with moving over to it )

1 Like

I believe I broke your CLI observe experiment, but should be easy fix to just use different command name.

1 Like

Well worth adjusting for the rich stream of fine-grained structural and textual edit history :slight_smile:

:folded_hands:

1 Like