Search jumps out of search field and messes up note

Operating system

macOS

Joplin version

3.2.11

Desktop version info

Joplin 3.2.11 (prod, darwin)

Client ID: 2ed5533de0ab436c9b7ac4294297e358
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: 2fba101

Backup: 1.4.2
Conflict Resolution: 1.2.3
Diff view: 0.1.1
Freehand Drawing: 2.14.0

Sync target

Joplin Cloud

Editor

Rich Text Editor

What issue do you have?

When I do a search in the header (next to new note and new to do, the only place I can find to do a search), as I begin the search and it finds the first hit, rather than staying in the search field while I enter the rest of the search, it jumps to that note. As I keep typing, it then messes up the note, adding my search entry into the note.

It is possible this only occurs when there is just one match to the search entered so far, but I don’t want to have to type a letter, look to make sure I am still in the search field, type the next letter, etc. I want to be able to type something, press return, and be taken to the note or list of matches, without messing up any of them.

Thank you for reporting this!

This seems to be a conflict between the diff view plugin and the Rich Text Editor. I've created an issue.

What might be happening: I suspect that the issue is related to the plugin's use of editor.execCommand on note change — in the Markdown editor, the plugin uses editor.execCommand to access the note to compare with (even if it's empty). I suspect that when editor.execCommand is used, the Rich Text editor captures focus.

For now I suggest either,

  1. Disabling the diff view plugin until the issue is fixed.
  2. Using cmd-p to search.

Thank you! Both seem to work. I will use solution 1 and use a diff view outside the app (pasting into it) if needed.

Chip