cqroot / joplin-outline

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

Writing in a big structured note does'nt work #62

Closed kai452 closed 1 year ago

kai452 commented 2 years ago

When writing somewhere in the note, after short time the document will automatically jump to the uppermost heading, I mean to the very beginning of the note and the written last letters will appear there.

Only if outline is switched of, all will work as normal, with the disadavantage, that one has now manuelly, e.g. by search-function, move to the desired position.

I guess, thats beause outline will instantly update the TOC when discovering a new heading. These updating has to be timed, or it should be possible to switch on/off the updating by settings or shortkey.

Many thanks in advance, Kai

kai452 commented 2 years ago

Problem is the permanent updating, so I helped myself with: index.ts: await joplin.workspace.onNoteChange(() => { // updateTocView(); }); await joplin.settings.onChange(() => { // updateTocView(); }); Now, it updates only, if the note is newly selected / invoked