cqroot / joplin-outline

A markdown outline (TOC) sidebar plugin for Joplin.
MIT License
215 stars 16 forks source link

Incremental searching is sometimes resetted #36

Closed ken1kob closed 3 years ago

ken1kob commented 3 years ago

This bug happens in the limited situation that the OUTLINE panel is below the notelist panel at the bottom as follows (it's my favorite layout, since OUTLINE cannot be placed at the right end). In the search box in the notelist panel, when you are searching some text and no candidate notes are found, the OUTLINE panel is hidden (it's OK) and the text in the searching box is vanished (it's a BUG). So, searching is often unusable and very frustrating.

jopline-outline-bug3

Although I'm not sure how to fix this problem, I think the cause is that hiding the OUTLINE panel affects the notelist and its search box.

ken1kob commented 3 years ago

There is a simple workaround. If hiding the OUTLINE panel can be disabled with a option (that is, empty toc can be displayed), change event of the layout of panels does not happen and the bug can be avoided.

In point of UI view, keeping the panel displayed may be natural, because I feel some confused when the OUTLINE panel occationally appears and disappears depending on the content of notes.

cqroot commented 3 years ago

image

Version 1.2.2 supports it.