toolstack / Folio

A beautiful markdown note-taking app for GNOME (forked from Paper)
GNU General Public License v3.0
146 stars 14 forks source link

Editor slows down & Interesting editing #142

Open ghost opened 1 month ago

ghost commented 1 month ago

Right now, a note has only 210 lines of text, but there is a slow down in the editor, i.e., my inputs are showing up with a delay (and sometimes a long delay).

As for the "interesting editing" half of the title, I would like to give an example. In the following piece of text, when I want to write something after the last dot, I basically cannot. The editor neither lets me click there, nor lets me go there with my arrow keys.

**Premodifier** is a word that comes before the word which it modifies, e.g., *invited* in *an invited audience*.
toolstack commented 1 month ago

I can't reproduce a slowdown, but I can reproduce the second issue.

The second issue may be outside of my control, however a workaround is to go to the start of the next line and then go left once more, which takes you to after the period.

toolstack commented 1 month ago

Also hitting the end button takes you to after the period apparently.

ghost commented 1 month ago

I can't reproduce a slowdown, but I can reproduce the second issue.

Is it possible that it is because I have installed the application using Flatpak (which is the default way to do so anyways), and Flatpak is limiting how much of the memory it can use in the sandbox? I have no idea honestly. It does not happen in other editors (from Apostrophe to GNU Emacs) with the same file but in Folio.

The second issue may be outside of my control, however a workaround is to go to the start of the next line and then go left once more, which takes you to after the period.

Yes, that is what I do.

Also hitting the end button takes you to after the period apparently.

It does.

toolstack commented 1 month ago

I use the flatpak and can't reproduce the issue so it seems unlikely. As far as I know the sandbox doesn't restrict memory or cpu usage.

ghost commented 1 month ago

I actually realized something that might be related to this. Whenever I run Flatpak (e.g., flatpak update) it gives me the following output:

Looking for updates…

(flatpak update:5000): dconf-WARNING **: 11:26:47.715: unable to open file '/etc/dconf/db/local': Failed to open file “/etc/dconf/db/local”: open() failed: No such file or directory; expect degraded performance

Nothing to do.

And when I made that file with the touch command (which I did not think that it would solve the issue and it did not), the same Flatpak example gave me the following output:

Looking for updates…

(flatpak update:6000): dconf-WARNING **: 11:31:36.380: unable to open file '/etc/dconf/db/local': /etc/dconf/db/local: invalid gvdb header; expect degraded performance

Nothing to do.

I really do not know much GTK programming, do you know a way to fix this?


An update; I did dconf update after surfing about the issue online. Although it removed the warning message from the flatpak update output (which now looks like the following output), it still did not fix the lag of Folio. I still have no clue why.

Looking for updates…

Nothing to do.