Skip to content

1.0.2

Latest

Choose a tag to compare

@mikagosz mikagosz released this 16 Aug 10:04

1.0.2 — the note goes back to the mode you left it in

Fixed

  • Searching from edit mode switches the note to reading view and switches it back
    when the bar closes. Three cases went wrong there and all of them were silent:
    closing the tab while the bar was open left nothing to switch back, a failure
    said nothing at all, and if you changed the mode by hand during the search the
    plugin overrode your choice on the way out. Your choice wins now, and a real
    failure says so.
  • Reading the plugin's own data at start-up can no longer leave an unhandled
    error in the console.

Also

  • Eight more tests, covering how a match found in the flattened note is placed
    back onto the text nodes — including a match that crosses an element boundary,
    which is the case this plugin exists for. An offset out by one there highlights
    the wrong letters and nothing on screen would say so.
  • README: install from the community catalogue.
  • A leftover method that described a path no longer taken has been removed.