orgzly / orgzly-android

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

Orgzly search link #501

Open lindoman opened 5 years ago

lindoman commented 5 years ago

I find that my list of stored searches in Orgzly is getting too long, and is taking up too much precious screen space.

I thought... How about a hierarchy for stored searches?

But then I remembered... Org mode is good for nested lists (!) so why not simply be able to put an Orgzly search into a link in org mode, a bit like a custom agenda search in emacs? That way I can keep one or two saved searches I use most, then have the rest live in an actual notebook in whatever hierarchy I fancy?

nevenz commented 5 years ago

Does this require a scheme ([[orgzly:query]]), or could it work like internal links in Org mode where [[query]] would trigger the search. Latter might be an issue in the future with planned new syntax implementation (more verbose book:Work state:todo).

lindoman commented 5 years ago

I was thinking along the lines of the implementation of a custom tag search like I have set up in my emacs like this: [[tag:@piano][@piano]]

I guess that would manifest as:

[[orgzly:.it.done ad.10][Agenda]]

There might even be a possibility of parsing those types of search to make them work in emacs also, which would be fantastic.

doak commented 2 years ago

One additional benfit of such a concept is, that you are able to sync and even versionise your saved searches. It also tackles feature request #545 (hierachy of searches).

If the note containing such a link is tagged with a special label, this search could be listed in the navigation drawer.