orgzly / orgzly-android

Outliner for taking notes and managing to-do lists
https://www.orgzly.com
GNU General Public License v3.0
2.68k stars 304 forks source link

Enable permeating fulltext search #813

Open agzam opened 3 years ago

agzam commented 3 years ago

I recently migrated my workflow to Org-roam. And now, instead of a few "Notebooks" I have tons of files with notes in them. And almost immediately I noticed an issue with Orgzly App. When you search for a term, it only looks for it within Org headlines and ignores text that is not in a headline.

A trivial example. Let's say I start a new "Org-roam" note with description of a book. org-roam-capture would generate a .org file with a content like this:

#+title: Why zebras don't get ulcers
#+created: [2021-01-24 Sun]
#+last_modified: [2021-01-27 Wed 10:17]

category: [[roam:books]]

The Acclaimed Guide to Stress, Stress-Related Diseases, and Coping (Third Edition)
Robert M. Sapolsky

So now, after syncing, typing "zebras" in Orgzly's search box won't show anything. Unless I create a headline that contains the text:

#+title: Why zebras don't get ulcers
#+created: [2021-01-24 Sun]
#+last_modified: [2021-01-27 Wed 10:17]

category: [[roam:books]]

* Why zebras don't get ulcers

  The Acclaimed Guide to Stress, Stress-Related Diseases, and Coping (Third Edition)
  Robert M. Sapolsky

Would it be possible to add an option that would allow searching for text regardless of where it is - in a headline, comment, drawer, etc?.

ScottFreeCode commented 3 years ago

I'd be curious how org mode handles this, as it also has search features that generate a view of a list of headings. Obviously there's always standard Emacs text searching, but I wonder if there's a more org integrated way to do like an agenda search/filter that would treat the preamble as a top-level heading. (They are working on getting the preamble in org mode to be more like a top-level heading and not treated specially in as many ways, I've heard.)