Closed kai452 closed 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
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