Fsnotes: [REQ] Option to rename note to first heading in document

Created on 12 Jul 2018  ·  10Comments  ·  Source: glushchenko/fsnotes

I don't really want to have to name my notes manually, I would rather they take the name of the first heading in the document.

Possible?

request

Most helpful comment

I guess the logic could be:

  • when the return key is pressed, check if it was the end of the first line; if so:
  • if the note title is "Untitled Note", set it == the first line of the note

Issues with that:

  • subsequent changes to the first line would not update the note title
  • what about Markdown entered into the first line? You wouldn't want your note title to contain un-rendered markdown, I imagine.

A slicker implementation would be:

  • store a boolean in the note metadata (like the pin boolean) which states whether the note's title was auto-generated or not
  • if the note has an auto-generated title, update it every time a character is entered / modified in the first line of the note.

The big win with the latter IMO is that the act of typing anything in the first line of the note would dynamically appear in the note title also, giving strong visual feedback on the correlation between the two. I think it would be good UX.

All 10 comments

I guess the logic could be:

  • when the return key is pressed, check if it was the end of the first line; if so:
  • if the note title is "Untitled Note", set it == the first line of the note

Issues with that:

  • subsequent changes to the first line would not update the note title
  • what about Markdown entered into the first line? You wouldn't want your note title to contain un-rendered markdown, I imagine.

A slicker implementation would be:

  • store a boolean in the note metadata (like the pin boolean) which states whether the note's title was auto-generated or not
  • if the note has an auto-generated title, update it every time a character is entered / modified in the first line of the note.

The big win with the latter IMO is that the act of typing anything in the first line of the note would dynamically appear in the note title also, giving strong visual feedback on the correlation between the two. I think it would be good UX.

The way Boostnote does this is generally good. The first line is the title, unless there is a markdown h1/# title somewhere in the body, which then becomes the title. They all autoupdate. There's no separate title metadata, so need to worry about it getting out of sync.

Having to manually name a note is one of the few points of friction when using FSNotes 😔

Feature implemented in iOS and will be ported to macOS later.

Awesome

On Mon, 22 Oct 2018 at 19:38, glushchenko notifications@github.com wrote:

Feature implemented in iOS and will be ported to macOS later.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/glushchenko/fsnotes/issues/279#issuecomment-431929693,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABNG0ZsD1lYCH9FBQzibzs7V_gylrIhks5unhCxgaJpZM4VL78v
.

>

Dharmesh Malam

In the past I have used note apps in which the note name was automatically set to the first heading in the note, and I never found this to be helpful. If this feature is implemented, I hope there will be an option to disable it in preferences.

Feature implemented in iOS and will be ported to macOS later.

Any sign of this for macOS? Thank you

Oh wow, I never would have found that. Thanks!

So it's a per folder setting opt-in rather than a global default? If so, that is unfortunate for me (many folders!)

At this moment per folders only 🙂

Was this page helpful?
0 / 5 - 0 ratings