Skip to main content

Underscores ignored in Search?

Completed

Comments

3 comments

  • Fletcher Penney

    I consolidated some discussion of search here:

     

    https://multimarkdown.zendesk.com/hc/en-us/community/posts/360049899593-Discussion-of-search

     

     

    As for hyphens, I'll look at this.  Hyphens/underscores are supported as intra-word characters (so "foo_bar" works), but it appears the distinction here is that the hyphen isn't "intra-word" but "pre-word".  Because hyphens are treated differently than other punctuation, I have fixed this so that "_foo" is still indexed with the hyphen.

     

    However, this won't quite give you the results you are looking for since "_foo" is also indexed as "foo", just like "foo_bar" is also indexed as "foo" and "bar".  So when you search for "_Music", you will also get matches for "Music".  This is intentional, since searching for "bar" should match a file that contains "foo_bar".

    0
  • Rob O'Keefe

    Thanks for the explanation (and details on your search algo). As you surmise, not the answer I was looking for. Coming from nvAlt, this is a big change for my little file naming quirk. I know this is not a 1-1 replacement of nvAlt, but sill a frustration.

    I may end up dropping my prefixes, not only for this reason.

    I just never liked the look of Musicx in my file names, but _Music (since they all started with an underscore) served my purpose.

    Ironically I was just reading an article on different forms of Lock In and even among sets of programs that use .MD files, there are features and implementation differences.

    Progress. Sigh. 

    0
  • Rob O'Keefe

    Just to circle back on this, I used this and Obsidian as a reason to get rid of my file name prefixes. It was a bit of work (and not fully complete), but in the end I like it better. 

    You can close this item from my perspective.

    0

Please sign in to leave a comment.

Powered by Zendesk