Auto filename from title, and start new files with H1

Long-time Bear user from Japan.

I started using Lettera today. Would it be possible to automatically reflect the title (H1) in the file name, like Obsidian does?

Also, when creating a new file, I would like the first line to start as an H1, like in Bear.

That’s not how Obsidian works. It doesn’t take the first Heading 1 as title for the name of the file. Rather than that in Obsidians editor the very first line is reserved for the filename and nothing else.

I like the way it currently works - the ability to have a filename that is not dictated by the top heading is useful to me. If it were to revert back to the way Bear does it, I would want it to be an option, not the rule.

Lettera does it like Obsidian when you turn the setting for inline titles off.

Otherwise it will just reflect the filename at the top of the document with potentially different styling. Also the frontmatter info comes after the title in this setting.

1 Like

@yuto0305f Funnily enough, this is exactly what I’ve been working on yesterday :slight_smile:

A future update will name new files for you. When you create a file, it starts as “Untitled”, and once you’ve written a bit Lettera renames it:

  • If the first line is a heading, the file takes the heading’s name as soon as you move off that line.
  • If it isn’t, the on-device model (Apple Intelligence) suggests a title once the note reaches about 50 words. The title is in the language you write in, so Japanese notes get Japanese names.

This happens only once, and only for “Untitled” files Lettera created. After that the file name is yours, and later edits to the heading won’t change it. Files you’ve already named, or that come from other apps, are never touched.

@AleemShaun, that should cover your case too: the heading never dictates the file name. You can also turn the whole thing off with “Automatically rename untitled documents” in Settings → General.

5 Likes

Please no Apple “intelligence” :see_no_evil_monkey: Keep the Ai stuff optional please.

This feels like a pretty harmless usage of AI to me. It’s all on-device, and it’s only suggesting a filename, not altering the actual contents in any way. Also, isn’t it optional by virtue of the fact that your heading on the first line takes priority? I read this as the AI only steps in if you choose not to explicitly title your document this way. Even then, it sounds like you’re free to name your files however you like, and it won’t ever override that decision.

Apple Intelligence sucks so hard.

Funnily enough, this is exactly what I was going to ask for.

Perfect solution, if you ask me – thank you for reading my mind :wink:

:folded_hands:

(post deleted by author)