toolstack / Folio

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

Cannot delete the last empty line #166

Closed qumuq-til closed 2 months ago

qumuq-til commented 2 months ago

There is always a new line present in a note (seen when line numbering is on), even if there is no data in it. It's annoying and distracting. When the text ends and a user hasn't explicitly put a new line after the last character, the numbering should end at the line that has some data. The easiest way to see it to to create a new note and it will have two lines while it really should have just one.

machitgarha commented 2 months ago

Unfortunately, this is workaround to prevent a crash when restyling (markdown_view.vala:685). Also, some people might see this as a feature (I'm not sure, but some editors has this feature by default, like Pulsar (and previously Atom) and Zed).

toolstack commented 2 months ago

As mentioned this is intended behaviour, it might be able to be changed after #50 is implemented, but there is no timeline on that.

I'll close this for the time being as won't fix.