joplin-outline icon indicating copy to clipboard operation
joplin-outline copied to clipboard

Writing in a big structured note does'nt work

Open kai452 opened this issue 2 years ago • 1 comments

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 avatar Jan 09 '22 20:01 kai452

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

kai452 avatar Aug 14 '22 10:08 kai452