saved search

azivner 2018-08-31 19:28:39 +02:00
parent 2d747eba4e
commit 35bd44f39e
6 changed files with 20 additions and 5 deletions

@ -1,4 +1,6 @@
Every [[attribute|attributes]] has a flag called `isInheritable`. If this is true, then this attribute (key-value) is also applied to all its children notes, children's children notes etc. Every [[attribute|attributes]] has a flag called `isInheritable`. If this is true, then this attribute (key-value) is also applied to all its children notes, children's children notes etc.
Example how this might be useful is `archived` label which hides its note from Jump to / Add link dialogs. Often times you want to archive some specific subtree, you can do this by making the `archived` label inheritable.
## Copying inheritance ## Copying inheritance

@ -15,9 +15,9 @@ Labels are used for several things:
* user can use them as labels with optional value - e.g. when catalogizing books, you might add labels like @year=1999, @genre=sci-fi, @author=Neal Stephenson * user can use them as labels with optional value - e.g. when catalogizing books, you might add labels like @year=1999, @genre=sci-fi, @author=Neal Stephenson
* attributes can be used to configure some advanced features / settings - see below * attributes can be used to configure some advanced features / settings - see below
* plugins / scripts can use these to mark notes with some special values / metadata (e.g. note with imported reddit comment will have label with comment ID) * plugins / scripts can use these to mark notes with some special values / metadata (e.g. [[Weight Tracker]] will have "weight" attribute on [[day notes]] based on whose it can create chart).
Labels can be used when [[searching|Search]]. Labels can be used for [[searching|Search]].
### Standard labels ### Standard labels

@ -6,4 +6,6 @@ To turn off note versioning for particular note (or subtree), add `disableVersio
Note revisions can be accessed through note detail menu. Note revisions can be accessed through note detail menu.
[[images/note-revisions.png]] [[images/note-revisions.png]]
Above you can see list of 3 note revisions for given note.

@ -26,4 +26,8 @@ See [[Family tree]].
[[images/task-manager.png]] [[images/task-manager.png]]
See [[Task manager]]. See [[Task manager]].
[[images/note-revisions.png]]
See [[Note revisions]].

@ -20,3 +20,10 @@ Following examples demonstrates syntax:
* ```@abc<=5``` - numerical comparison (also >, >=, <). * ```@abc<=5``` - numerical comparison (also >, >=, <).
* ```some search string @abc @def``` - combination of fulltext and label search - both of them need to match (OR not supported) * ```some search string @abc @def``` - combination of fulltext and label search - both of them need to match (OR not supported)
* ```@abc @def some search string``` - same combination * ```@abc @def some search string``` - same combination
## Saved search
Trilium provides a way to save common search as a note in the note tree. Search results will then appear as subnotes of this "saved search" note. You can see how this works in action:
[[gifs/saved-search.gif]]

BIN
gifs/save-search.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB