Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.78k stars 557 forks source link

Searching of URLs not reflected in sidebar #3134

Open michaelwexler opened 1 year ago

michaelwexler commented 1 year ago

Expected

When searching notes via the sidebar find in the web (app.simplenote), the sidebar filters to the notes with the phrase, and also highlights the first "hit" per note with a few words on either side. When searching for part of a url, I expected to see that url as well.

Observed

Instead, though the phrase is located in the URL, the sidebar shows only the first line of the document. Note that this url is in < and >; without these markdown formatters, the URL is displayed as expected.

Reproduced

  1. In a note with some text of any kind, add a link with a unique URL; I tested with this: https://www.premierdoodles.com/raising-bernedoodle-puppies
  2. With the url still on the screen, start to type "raising-" in the "Search all notes..." box in the sidebar.
  3. Watch as the URL is correctly "blue highlighted" (and even the lovable scroll bar notation, but the sidebar display just shows the first line of the doc.
  4. Remove the markdown < and >. Suddenly, the URL is just text, and Search works as expected.

This may be as expected: perhaps <> are used to hide the URL and instead display text in it's place, so the sidebar doesn't know what to show here... but without "click here" text, I'd expect to see the URL.

Where did you see the bug

Windows 10, app.simplenote.com, Chrome Version 109.0.5414.120 (Official Build) (64-bit)