Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore notes that contain specific tag/s #59

Open
DryIce1 opened this issue Aug 18, 2022 · 5 comments
Open

ignore notes that contain specific tag/s #59

DryIce1 opened this issue Aug 18, 2022 · 5 comments

Comments

@DryIce1
Copy link

DryIce1 commented Aug 18, 2022

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, Add options to exclude files by regex rule #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. 👍

@dvcrn
Copy link
Owner

dvcrn commented Aug 18, 2022

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

@doitian
Copy link
Contributor

doitian commented Jul 1, 2023

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.

@dvcrn
Copy link
Owner

dvcrn commented Jul 6, 2023

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?

@doitian
Copy link
Contributor

doitian commented Jul 7, 2023

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.

@jerrygreen
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants