mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
delete/undelete, code blocks
parent
e5087ee380
commit
384d697e03
@ -35,10 +35,10 @@ Following labels are used for advanced configuration:
|
||||
* `disableInclusion` - scripts with this label won't be included into parent script execution.
|
||||
* `sorted` - keeps child notes sorted by title alphabetically
|
||||
* `hidePromotedAttributes`
|
||||
* `hideChildrenOverview`
|
||||
* `readOnly` - editor is in read only mode. Works only for text notes. See some use cases [here](https://github.com/zadam/trilium/issues/371).
|
||||
* `cssClass` - value of this label is then added as CSS class to the node representing given note in the tree. This can be useful for advanced [[theming|themes]]. Can be used in `template` notes.
|
||||
* `iconClass` - value of this label is added as a CSS class to the icon on the tree which can help visually distinguish the notes in the tree. Example might be `bx bx-home` - icons are taken from [boxicons](https://boxicons.com/). Can be used in [[template]] notes.
|
||||
* `bookZoomLevel` - applies only to [[book note]] and sets the "zoom level" (how many notes fit on 1 row)
|
||||
|
||||
## Relations
|
||||
Relation is a kind of link between two notes.
|
||||
@ -49,10 +49,19 @@ More importantly relations are used for some more advanced things - like attachi
|
||||
|
||||
### Standard relations
|
||||
|
||||
* `runOnNoteView` - attached script will be run whenever the note has been loaded
|
||||
* `runOnNoteTitleChange` - attached script will be run whenever the note title has been changed
|
||||
* `runOnAttributeChange` - attached script will be run whenever the note's attribute has been changed
|
||||
[[Events]]:
|
||||
* `runOnNoteView` - executes when note is displayed on frontend
|
||||
* `runOnNoteCreation` - executes when note is created on backend
|
||||
* `runOnNoteTitleChange` - executes when note title is changed (includes note creation as well)
|
||||
* `runOnNoteChange` - executes when note is changed (includes note creation as well)
|
||||
* `runOnChildNoteCreation` - executes when new note is created under *this* note
|
||||
* `runOnAttributeCreation` - executes when new attribute is created under *this* note
|
||||
* `runOnAttributeChange` - executes when attribute is changed under *this* note
|
||||
|
||||
Other relations:
|
||||
* `template` - attached note's attributes will be inherited even without parent-child relationship. See [[template]] for details.
|
||||
* `renderNote` - notes of type "render HTML note" will be rendered using a code note (HTML or script) and it is necessary to point using this relation to which note should be rendered
|
||||
* `widget` - target of this relation will be executed and rendered as a widget in the sidebar
|
||||
|
||||
## Multiplicity
|
||||
|
||||
|
@ -11,4 +11,10 @@ This can be useful for few things:
|
||||
|
||||
## Extra languages
|
||||
|
||||
Trilium supports syntax highlighting for many languages, but by default displays only some of them (to reduce number of items). You can add extra languages in Options -> Code notes (available since Trilium 0.35).
|
||||
Trilium supports syntax highlighting for many languages, but by default displays only some of them (to reduce number of items). You can add extra languages in Options -> Code notes (available since Trilium 0.35).
|
||||
|
||||
## Code blocks
|
||||
|
||||
Alternative to the code note is a "code block" - feature of a text note which can add short snippets of code to the text editor. The disadvantage is that code blocks don't support syntax highlighting.
|
||||
|
||||
[[images/code-block.png]]
|
@ -10,7 +10,7 @@ Unofficial docker images for **ARMv7** and **ARMv8** provided by Howard (thanks!
|
||||
docker pull zadam/trilium:[VERSION]
|
||||
~~~~
|
||||
|
||||
Replace [VERSION] for actual latest version or use "series" tag - e.g. `0.34-latest`.
|
||||
Replace [VERSION] for actual latest version or use "series" tag - e.g. `0.39-latest`.
|
||||
|
||||
**It's not recommended to use "latest" tag since it may upgrade your Trilium instance to new minor version which may potentially break your sync setup or cause other issues.**
|
||||
|
||||
|
@ -15,6 +15,6 @@ You can also copy paste image from web - but beware that in such case only refer
|
||||
|
||||
## Compression
|
||||
|
||||
Since Trilium isn't really meant to be primary storage for image data, it attempts to compress and resize (with pretty aggressive settings) uploaded images before storing them to the database. You may then notice some quality degradation.
|
||||
Since Trilium isn't really meant to be primary storage for image data, it attempts to compress and resize (with pretty aggressive settings) uploaded images before storing them to the database. You may then notice some quality degradation. Basic quality settings is available in Options -> Other.
|
||||
|
||||
If you want to save images in their original resolution, it is recommended to save them as attachment to note (top-right "Note actions -> Upload file").
|
@ -1,5 +1,7 @@
|
||||
This is supposed to be a complete list of keyboard shortcuts. Note that some of these may work only in certain contexts (e.g. in tree pane or note editor).
|
||||
|
||||
Since Trilium 0.38, it is possible to configure keyboard shortcuts in Options -> Keyboard shortcuts.
|
||||
|
||||
## Note navigation
|
||||
|
||||
* `UP`, `DOWN` - go up/down in the list of notes, `CTRL-SHIFT-UP` and `CTRL-SHIFT-DOWN` work also from editor
|
||||
|
14
Note.md
14
Note.md
@ -18,4 +18,16 @@ Tree structure of notes can resemble file system - but compared to that notes in
|
||||
Remember there's no "folder" note type. Any note can be folder or "leaf" note.
|
||||
|
||||
### Root note
|
||||
There's one special note called "root note" which is root of the note tree. All other notes are placed below it in the structure.
|
||||
There's one special note called "root note" which is root of the note tree. All other notes are placed below it in the structure.
|
||||
|
||||
### Deleting / undeleting notes
|
||||
|
||||
When you delete a note in Trilium, it is actually only marked for deletion (soft-delete) - the actual content, title, attributes etc. are not deleted, only hidden.
|
||||
|
||||
Within (by default) 7 days, it is possible to undelete these soft-deleted notes - open Recent Changes dialog and you will see a list of all modified notes including the deleted ones. Notes available for undeletion have a link to do so. This is kind of "trash can" functionality known from e.g. Windows.
|
||||
|
||||
Clicking an undelete will recover the note, it's content and attributes - note should be just as before being deleted. This action will also undelete note's children which have been deleted in the same action.
|
||||
|
||||
To be able to undelete a note, it is necessary that deleted note's parent must be undeleted (otherwise there's no place where we can undelete it to). This might become a problem when you delete more notes in succession - the solution is then undelete in the reverse order of your deletion.
|
||||
|
||||
After the 7 days (configurable) the notes will be "erased" - their title, content, revisions and attributes will be erased and it will not be possible anymore to recover them (unless you restore [[backup]]).
|
@ -23,6 +23,7 @@
|
||||
* [[Docker server installation]]
|
||||
* [[Manual server installation]]
|
||||
* [[Mobile frontend]]
|
||||
* [[Upgrading Trilium]]
|
||||
* [[TLS configuration]]
|
||||
* [[Synchronization]]
|
||||
* [[Web clipper]]
|
||||
|
BIN
images/code-block.png
Normal file
BIN
images/code-block.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 105 KiB |
Loading…
x
Reference in New Issue
Block a user