Closed kaushalmodi closed 6 years ago
Searching for "title:sed" works for me with that note.
You can try some things:
#+TITLE
. (The parsing is not exactly the same as for Org.)M-x notdeft-query-edit
(bound to TAB
) to enter your query, rather than just typing "title:sed" as the filter string.M-x notdeft-reindex
(bound to C-c R
) to rebuild the index.If that still does not work, and notdeft-xapian-program
is correctly set, it may be worth trying to run the program directly, and seeing what it says. For example,
/path/to/notdeft-xapian search -q title:sed ~/.deft
xapian-delve
may be used to inspect the contents of the search index.Yes, any #+TITLE
keyword is parsed in a case sensitive manner, currently. I'm not sure if lowercase in-buffer setting keywords are exactly documented syntax for Org—haven't seen it stated explicitly in the docs. Still, pcomplete
at least offers lowercase versions also. I agree that the keyword parsing could be made insensitive.
Searching for "title:sed" works for me with that note.
Thanks. I was able to make it work, but only using the TAB
binding. There, I faced some UX issues, details below.
Make sure that there are no empty lines before the #+TITLE. (The parsing is not exactly the same as for Org.)
That wasn't the case.
Be sure to use M-x notdeft-query-edit (bound to TAB) to enter your query, rather than just typing "title:sed" as the filter string.
That worked! But would it be possible to make typing just "title:sed" work too?
You do have this in your documentation Press Tab in a NotDeft buffer to enter a search query. So sorry for missing that. May be that should be made in bold for folks like me? :)
Thank you for taking time to list the alternative ways to debug this; it's very much appreciated.
Yes, any #+TITLE keyword is parsed in a case sensitive manner, currently. I'm not sure if lowercase in-buffer setting keywords are exactly documented syntax for Org—haven't seen it stated explicitly in the docs.
Org actually parses all #+
keywords in case-insensitive fashion. There even was a commit few months back that showed the preference to use lower-case keywords. (I liked that very much and even have a little helper function to lower-case all keywords in the current Org document 😄 ).
I agree that the keyword parsing could be made insensitive.
Thank you! I'll be looking forward to that.
I'll open separate issues for the case-insensitive keyword parsing and the other UX issue that I briefly mentioned above.
Thank you.
Hello,
By random chance, I discovered your project, and it looks great!
I got it running in the capacity of "deft". But I am having trouble using the title: search.
For example, I have this Org file (it shows up fine in the *NotDeft* buffer). Its contents are:
But searching for "title:sed" does not return this note.
What am I doing wrong?
Also, I have many notes with lowercase
#+title:
instead of#+TITLE:
. Is the search for title case-sensitive? If so, can you please make the Org keyword searches for title, tags, etc. case-insensitive?Thanks.