Automated Note Title issue

What I’m trying to do

I am new to Obsidian and feeling overwhelmed with the available information. I am trying to replicate a behavior demonstrated by Nick Milo. Specifically, whenever I create a new note, the title of the note is automatically inserted as the TITLE within the note content. My goal is to replicate this behavior while hiding the title inside the note as demonstrated by the author of the video.

Additionally, I would like the title to act as a link to the note itself, but I am encountering the error:

"Links will not work with file names containing any of these characters: # ^ [ ] / "

Is the title in Nick Milo’s setup a link itself, or am I misunderstanding how this works?

Things I have tried

I have searched the help docs and forum using relevant terms but haven’t found a solution. I also attempted to troubleshoot by disabling all third-party plugins to determine if the behavior was automatic, but that did not resolve the issue. I am wondering if it’s a matter of using these following solution thoght I still don’t know properly about them:

  • Templater Plugin: I’m considering using the Templater plugin to create a template that automatically inserts the note’s title as an H1 and link at the same time. Example script:
# <% tp.file.title %>
  • CSS Snippet: If the title is inserted but I want to hide it, I have to use a CSS snippet:

css

h1 {
  display: none;
}
  • Core Plugin (Note Title & Headers): I’m exploring if any core plugins in Obsidian can handle this automatically.
  • Advanced URI Plugin: I’m also considering this plugin to dynamically manipulate the note content.

Which solution do you think is the best? Which are my mistakes?

Thank you for your time and patience!

Inline Titles

If you go to Settings > Appearance and scroll down a bit, under Interface you can unselect Show inline title. That removes the title from the note content.

Titles/Links

The title of the note is automatically the link to that note as well, or rather you link to it by putting the link between square brackets [[title]]

Without knowing the precise note contents, I’m not sure what the problem with the link from your screenshot is, but maybe you tried adding those two square brackets in the link? That wouldn’t work, so in your case the link should be [[Diritto all'autoprescizione]]. If your note title (or the file name) includes square brackets, that won’t work in Obsidian because it needs the square brackets for the links.

You can use your Templater file, and that should work, but if you use your snippet, I think that would hide ALL Level 1 Headers, so that I don’t think that’s wht oyu want.

Please correct me, if I’m misunderstanding, but I think you’d be doubling up. You don’t need to create a link to the file from within itself, so you can have the title if you want, but if you link to the note from other notes, all you need is the file name.

Let me know if you have any questions :slight_smile:

Wow, was it really that easy? I was going crazy! Thank you so much for taking the time to reply! :pray::tada: I really appreciate it—it means a lot to me as a newbie :blush:. Regarding the link problem with [[ ]], I’m basically trying to understand the best practices for taking notes and managing quotes. Since Obsidian is like a blank canvas and you can do whatever you want with it, I’ve been watching tutorials to get the best possible start. I am trying to understand how to create my second brain, thought I am not good at taking note right now.

Thank you again for your time and patience!

1 Like

The common “rule” I’ve seen a few times is not to worry too much about how to do things best or most efficient. Just take notes or do whatever with Obsidian, and then if you have concrete questions or need to do something, look it up or ask here.

Just start small and go from there :slight_smile:

2 Likes

Thank you! I would try to follow your suggestion!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.