Hello there, I am new to Obsidian. Trying to figure out how to best search my notes and find stuff.
My ideal search is to be able to;
Default the search to line:
AND between search term. I.e. The line must contain every search term (not just some of them)(I think this is my blocker)
Is such a thing possible? I was using VScode for my notes until I found obsidian…I have a few years of notes that I have just been comma seperating search terms next to a header. For example.
HOWTO: Search objects in SQL Server [SSMS, SQLServer, OtherSearchTerms, etc]
So 99.9% of the time I only want to search that line… by searching, HOWTO: SQL Server…or some such thing…
That would limit the regex search to a line starting with “howto”. You might not need the “line:”, so try with and without it. I’m a little unsure whether the .* will include line endings.
I can confirm I don’t need the line: using this above.
I’ll play with it some more and report back, but I think the problem becomes out of order search terms. I must admit I have been resisting regex knowledge for many many years. One of those things that pushes other stuff out of ones brain
The other approach is to just redo the way I’ve done my notes…because the above is a lot of typing when the whole point is to find things fast and easy…I’m kinda attached to the line thing…:)…
If I’m not mistaken, search terms are separated by spaces — so your example just searches normally for those 3 words. I think you need to group them: line:(apple orange pear). That’s why I included the opening parenthesis in my bookmark example.