mirror of
https://github.com/zadam/trilium.git
synced 2025-01-30 10:57:51 +08:00
added link map plus various fixes
parent
237d8adf43
commit
85c796c86f
16 changed files with 67 additions and 22 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.idea/**
|
|
@ -5,7 +5,7 @@ Trilium supports simple backup scheme where it saves copy of the [[document]] on
|
|||
* once a month
|
||||
* before DB migration to newer version
|
||||
|
||||
So in total you'll have at most 4 backups from different points in time which should protect you from various problems. These backups are stored by default in `~/trilium-data/backup`.
|
||||
So in total you'll have at most 4 backups from different points in time which should protect you from various problems. These backups are stored by default in `backup` directory placed in the [[data directory]].
|
||||
|
||||
This is only very basic backup solution and you're encouraged to add some better backup solution - e.g. backing up the [[document]] to cloud / different computer etc.
|
||||
|
||||
|
|
25
Data directory.md
Normal file
25
Data directory.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
Data directory contains:
|
||||
|
||||
* `document.db` - [[document]]
|
||||
* `config.ini` - instance level settings like port on which the Trilium application runs
|
||||
* `backup` - contains automatically [[backup]] of documents
|
||||
* `log` - contains application log files
|
||||
|
||||
## Location
|
||||
Data directory is normally named `trilium-data` and it is stored in:
|
||||
|
||||
* `/home/[user]/.local/share` for Linux
|
||||
* `C:\Users\[user]\AppData\Roaming` for Windows Vista and up
|
||||
* `/Users/[user]/Library/Application Support` for Mac OS
|
||||
* user's home is a fallback if some of the paths above don't exist
|
||||
* user's home is also a default setup for [[docker|Docker server installation]]
|
||||
|
||||
If you want to backup your Trilium data, just backup this single file - it contains everything you need.
|
||||
|
||||
### Changing the location of data directory
|
||||
|
||||
If you want to use some other location for the data directory than the default one, you may change it via TRILIUM_DATA_DIR environment variable to some other location, e.g.:
|
||||
|
||||
```
|
||||
export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data
|
||||
```
|
15
Document.md
15
Document.md
|
@ -1,21 +1,8 @@
|
|||
Document is [SQLite](https://www.sqlite.org) database which contains all notes, tree structure, metadata and most of the configuration.
|
||||
|
||||
## Location
|
||||
It's stored in single file, by default in `trilium-data/document.db`, where `trilium-data` is stored in:
|
||||
|
||||
* `/home/[user]/.local/share` for Linux
|
||||
* `C:\Users\[user]\AppData\Roaming` for Windows Vista and up
|
||||
* `/Users/[user]/Library/Application Support` for Mac OS
|
||||
* user's home is a fallback if some of the paths above don't exist
|
||||
* user's home is also a default setup for [[docker|Docker server installation]]
|
||||
|
||||
If you want to backup your Trilium data, just backup this single file - it contains everything you need.
|
||||
|
||||
### Changing the location of the document
|
||||
|
||||
If you want to use some other location for the document than the default one, you may change it via TRILIUM_DATA_DIR environment variable to some other location, e.g.:
|
||||
|
||||
export TRILIUM_DATA_DIR=/home/myuser/data/my-trilium-data
|
||||
Document is stored in the [[data directory]].
|
||||
|
||||
## Demo document
|
||||
|
||||
|
|
|
@ -13,6 +13,17 @@ This is supposed to be a complete list of keyboard shortcuts. Note that some of
|
|||
|
||||
See demo of some of these features in [[note navigation|Note navigation]].
|
||||
|
||||
## Tabs
|
||||
|
||||
* `CTRL+click` - (or middle mouse click) on note link opens note in a new tab
|
||||
|
||||
Only in desktop (electron build):
|
||||
|
||||
* `CTRL+T` - opens empty tab
|
||||
* `CTRL+W` - closes active tab
|
||||
* `CTRL+Tab` - activates next tab
|
||||
* `CTRL+Shift+Tab` - activates previous tab
|
||||
|
||||
## Creating notes
|
||||
|
||||
* `CTRL+O` - creates new note after the current note
|
||||
|
@ -26,7 +37,7 @@ See demo of some of these features in [[note navigation|Note navigation]].
|
|||
* `CTRL+RIGHT` - move note down in the note tree
|
||||
* `SHIFT+UP`, `SHIFT+DOWN` - multi-select note above/below
|
||||
* `CTRL+A` - select all notes in the current level
|
||||
* `CTRL+click` - multi select note which you clicked on
|
||||
* `SHIFT+click` - multi select note which you clicked on
|
||||
* `CTRL+C` - copies current note (or current selection) into clipboard (used for [[cloning|Cloning notes]])
|
||||
* `CTRL+X` - cuts current (or current selection) note into clipboard (used for moving notes)
|
||||
* `CTRL+V` - pastes note(s) as sub-note into current note (which is either move or clone depending on whether it was copied or cut into clipboard)
|
17
Link map.md
Normal file
17
Link map.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
Link map is a visualization of links and relations incoming to and outgoing from a particular note.
|
||||
|
||||
This provides an insight into a structure ("web") of notes.
|
||||
|
||||
[[images/link-map.png]]
|
||||
|
||||
There's several types of links:
|
||||
|
||||
* hyperlinks - internal hyperlinks from one text note to another note
|
||||
* relations - relation [[attributes]]
|
||||
* image links - this link represents inclusion of an image in a text note
|
||||
* relation map links - this link represents inclusion of a note in a [[relation map]]
|
||||
|
||||
[[Relation map]] is a similar concept, with some differences:
|
||||
|
||||
* link map is automatically generated while relation map must be created manually
|
||||
* relation map is a type of note while a link map is just virtual visualization
|
|
@ -35,4 +35,8 @@ There are several steps here:
|
|||
* we create another note for Princess Diana and create "isPartnerOf" relation from Charles. Again notice how the relation has arrows both ways - this is because "isPartnerOf" definition specifies its inverse relation as again "isPartnerOf" so the opposite relation is created automatically.
|
||||
* as the last step we pan & zoom the map to fit better to window dimensions.
|
||||
|
||||
Relation definitions mentioned above come from "Person template" note which is assigned to any child of "My Family Tree" relation note. You can play with the whole thing in the [[demo document|Document#Demo document]].
|
||||
Relation definitions mentioned above come from "Person template" note which is assigned to any child of "My Family Tree" relation note. You can play with the whole thing in the [[demo document|Document#Demo document]].
|
||||
|
||||
## See also
|
||||
|
||||
* [[Link map]] is a similar concept to relation maps
|
|
@ -10,11 +10,11 @@ Server installation has both desktop and [[mobile frontend]].
|
|||
|
||||
## Configuration
|
||||
|
||||
For server installations, you might want to configure e.g. port or [[TLS|TLS configuration]]. This is done in the Trilium config file, by default it's in ~/trilium-data/config.ini (where ~ is your home directory).
|
||||
For server installations, you might want to configure e.g. port or [[TLS|TLS configuration]]. This is done in the Trilium config file, by default it's in `config.ini` in the [[data directory]]
|
||||
|
||||
### Config location
|
||||
|
||||
`config.ini`, [[document]] and some other important Trilium data files are by default persisted in `trilium-data` directory placed in your home directory.
|
||||
`config.ini`, [[document]] and some other important Trilium data files are by default persisted in the [[data directory]].
|
||||
|
||||
If this is not desired, you may change it via `TRILIUM_DATA_DIR` environment variable to some other location, e.g.:
|
||||
|
|
@ -7,7 +7,7 @@ First thing to do is to get a TLS certificate. You have two options:
|
|||
|
||||
## Modifying config.ini
|
||||
|
||||
Now that you have your certificate, we need to modify ~/trilium-data/config.ini so that Trilium will use it:
|
||||
Now that you have your certificate, we need to modify `config.ini` in the [[data directory]] so that Trilium will use it:
|
||||
|
||||
```
|
||||
[Network]
|
|
@ -30,7 +30,7 @@ All JavaScript errors should be also logged to backend logs, but it's possible s
|
|||
|
||||
### Backend logs
|
||||
|
||||
Trilium logs important events and errors into `trilium-data/logs` directory. These logs are very helpful in debugging problems so please attach the latest ones with your bug report. You don't have to worry, they don't contain any sensitive information about your notes.
|
||||
Trilium logs important events and errors into `logs` directory (inside [[data directory]]). These logs are very helpful in debugging problems so please attach the latest ones with your bug report. You don't have to worry, they don't contain any sensitive information about your notes.
|
||||
|
||||
### Anonymized database
|
||||
|
||||
|
@ -38,7 +38,7 @@ In some cases it's necessary to see the database structure to be able to debug t
|
|||
|
||||
For this Trilium supports anonymization of the database - you can trigger this in Settings -> Advanced tab.
|
||||
|
||||
This will create a copy of your document and remove all sensitive data (currently note titles, contents, revisions, history and some of the options) while leaving all structure and metadata (e.g. date of last change). After this is done, database is [VACUUMed](https://sqlite.org/lang_vacuum.html) to make sure there's no stale sensitive data in the document file. Resulting file is stored in `trilium-data/anonymized` directory. You can safely attach it with your bug report.
|
||||
This will create a copy of your document and remove all sensitive data (currently note titles, contents, revisions, history and some of the options) while leaving all structure and metadata (e.g. date of last change). After this is done, database is [VACUUMed](https://sqlite.org/lang_vacuum.html) to make sure there's no stale sensitive data in the document file. Resulting file is stored in `anonymized` directory (placed in the [[data directory]]). You can safely attach it with your bug report.
|
||||
|
||||
Note that [[attributes]] are not cleared because they can contain important metadata for debugging.
|
||||
|
||||
|
|
BIN
images/link-map.png
Normal file
BIN
images/link-map.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 98 KiB |
Loading…
Reference in a new issue