obsidian-filename-heading-sync icon indicating copy to clipboard operation
obsidian-filename-heading-sync copied to clipboard

ignore notes that contain specific tag/s

Open DryIce1 opened this issue 3 years ago • 5 comments
trafficstars

Hello,

thanks for this plugin, it is fantastic!

  • Problem: I don't know how to ignore files that contain tag #dailynotes.
  • Use case: some note types (such as my daily notes) never require an # H1 and the Filename Heading Sync inappropriately adds an # H1. These files usually have a tag that distinguishes them from other types of notes.
  • existing capability: The RegEx ignore rule only acts upon folders to ignore files, #12. But the limitation is that it doesn't search the text within a note and ignore tags.
  • Proposed solution:
    1. Add support to ignore specific tag/s.
    2. Ignore file when metadata contains field, such as filename-heading-sync: false, as seen in [the embedded note titles plugin](https://github.com/mgmeyers/obsidian-embedded-note-titles/issues/14#issuecomment-992911568]

The ignore specific tags is preferred, because it uses tag metadata which already exists within the note.

thanks for considering or directing me to an already existing solution. 👍

DryIce1 avatar Aug 18 '22 20:08 DryIce1

Yeah we should add something like this. Both filecontent ignores and metatags sound useful

dvcrn avatar Aug 18 '22 23:08 dvcrn

I found a workaround: puting the filename heading in the comment. Both the markdown comment and HTML comment works.

Example:

%%
# Filename
%%
# My Title

or

<!--
# Filename
-->
# My Title

Now the filename is synced with the heading in the comment, where the real title is not affected.

doitian avatar Jul 01 '23 23:07 doitian

Why not just ignore the file from this plugin if you don't want the heading to be synced? Like, why have it sync to a heading in comments?

dvcrn avatar Jul 06 '23 02:07 dvcrn

Some edge cases to ignore the plugin in files which has no particular path pattern. For example, I often extract a chapter from a main file but want to keep the non-h1 chapter title.

I don't need the title to be synced in the comment, it's just a trick to kind-of ignore the plugin in specific files.

doitian avatar Jul 07 '23 05:07 doitian

I would like to ignore not just a tag but an entire folder. Unfortunately, the extension doesn't have settings for that.

I don't like my daily notes having a title, or tags, or anything except my text. Would like to keep them as simple as possible.

jerrygreen avatar Feb 12 '24 22:02 jerrygreen