Build your personal knowledge base with Trilium Notes
Find a file
Shon Ramamurthy d03d3603d2
Add optional support for note title tooltips under note tree widget (#1120)
* Add support for note title tooltips under note tree widget

This change adds an option to set the 'tooltip' configuration of the
Fancytree component. This allows tooltips containing the note title to
be displayed when a hover is performed over a note title in the tree
widget.

* Revert DB Upgrade

The db upgrade is reverted as this is not required for options.

* Simplify boolean option comparison

With this change, the existing 'is(key)' method is used to perform
tooltip enable option boolean comparison.

* Display tooltip only on center-pane overlap - Experimental

With this change, a straight-forward method to detect HTML element
overlap has been identified (source:
https://gist.github.com/jtsternberg/c272d7de5b967cec2d3d). It is now
possible to detect whether the center-pane element overlaps with the
Fancytree node title-bar. Using this approach we now have a rough
implementation which only displays a note-title tooltip when there is a
center-pane overlap.

At this stage, this change is experimental and the following needs to be
further addressed,
 - Register the 'mouseenter' event handler in an appropriate place. The
   current placement of this event handler is only for testing.
 - This change is now enabled by default. It needs to be seen whether it
   would still make sense to disable it via an option.

* Remove option to set tooltip

With this change, the tooltip options menu item has been removed as it
becomes relevant to have this feature enabled by default.

* Revert further changes related to the options menu

Further changes are rolled back which was earlier related to the tooltip
options setting. Some of these were missed in the previous commit.

* Remove debug logging

Remove debug logging and unnecessary line breaks.

* Move note-title tooltip handler under note_tree.js

With this change, we move the definition for the note-title tooltip
handler inside 'note_tree.js'. Registration is done inside
'side_pane_toggles.js' as we would need the handler to detect the
'center-pane' element first before detecting collisions.
2020-06-22 21:58:58 +02:00
.github Create FUNDING.yml 2020-03-16 08:25:20 +01:00
.idea fix deadlock after "cut to note", closes #1030 2020-05-19 22:58:08 +02:00
bin cleanup sqlite to make the distributed archives smaller 2020-06-08 10:42:40 +02:00
db add word count widget to the demo document (plus cleanup of external links) 2020-06-14 16:29:29 +02:00
docs added collapsible widgets to the docs 2020-04-21 23:14:55 +02:00
images use dev icon in dev environment 2019-07-21 09:14:56 +02:00
libraries fix click handler of links inside included note 2020-06-19 23:20:52 +02:00
src Add optional support for note title tooltips under note tree widget (#1120) 2020-06-22 21:58:58 +02:00
.dockerignore Add .git, bin, and docs to the .dockerignore 2018-11-30 05:46:49 +00:00
.gitignore fix setup of new document, closes #966 2020-04-14 21:57:42 +02:00
.gitpod.dockerfile fix gitpod (#658) 2019-10-14 11:55:12 +02:00
.gitpod.yml fix gitpod (#658) 2019-10-14 11:55:12 +02:00
config-sample.ini tab row widgetizing 2020-01-12 19:05:09 +01:00
docker-compose.yml add example docker-compose 2019-04-14 15:24:35 +02:00
Dockerfile transform setup.js to the webpacked version in the build 2020-05-08 20:50:53 +02:00
electron.js Merge remote-tracking branch 'origin/master' into m41 2020-02-25 09:42:27 +01:00
issue_template.md fix webpack buidl 2020-04-15 21:49:36 +02:00
jsdoc-conf.json jsdoc now doesn't include date into files to avoid unnecessary noise 2018-11-19 21:03:43 +01:00
LICENSE licensing under AGPL v3 2017-12-10 21:13:39 -05:00
package-lock.json fix sync 2020-06-13 22:34:15 +02:00
package.json release 0.43.0-beta 2020-06-15 23:26:12 +02:00
README.md fix help links and displayed shortcuts, closes #971 2020-04-18 11:14:09 +02:00
trilium.iml small refactorings 2019-10-20 13:09:00 +02:00
webpack-desktop.config.js fix webpack buidl 2020-04-15 21:49:36 +02:00
webpack-mobile.config.js fix webpack buidl 2020-04-15 21:49:36 +02:00
webpack-setup.config.js fix webpack buidl 2020-04-15 21:49:36 +02:00

Trilium Notes

Join the chat at https://gitter.im/trilium-notes/Lobby Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases. See screenshots for quick overview:

Features

Builds

Trilium is provided as either desktop application (Linux and Windows) or web application hosted on your server (Linux). Mac OS desktop build is available, but it is unsupported.

  • If you want to use Trilium on the desktop, download binary release for your platform from latest release, unzip the package and run trilium executable.
  • If you want to install Trilium on server, follow this page.
    • Currently only recent Chrome and Firefox are supported (tested) browsers.

Documentation

See wiki for complete list of documentation pages.

You can also read Patterns of personal knowledge base to get some inspiration on how you might use Trilium.

Contribute

Use a browser based dev environment

Open in Gitpod

Or clone locally and run

npm install
npm run start-server

Shoutouts

  • CKEditor 5 - best WYSIWYG editor on the market, very interactive and listening team
  • FancyTree - very feature rich tree library without real competition. Trilium Notes would not be the same without it.
  • CodeMirror - code editor with support for huge amount of languages
  • jsPlumb - visual connectivity library without competition. Used in relation maps and link maps