From 523fa4fd39999373b1d2b59468b4d1866c50bd92 Mon Sep 17 00:00:00 2001 From: DL Date: Thu, 4 Jul 2024 15:10:47 +0000 Subject: [PATCH 1/2] Update Web-clipper.md --- Wiki/Web-clipper.md | 46 +++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) diff --git a/Wiki/Web-clipper.md b/Wiki/Web-clipper.md index 3b0e3e6..2d292ad 100644 --- a/Wiki/Web-clipper.md +++ b/Wiki/Web-clipper.md @@ -1,42 +1,48 @@ -# Web-clipper -![](images/Web-clipper%20chrome-trilium-web.png) +# Web-clipper + +![screenshot of webclipper in chrome](images/Web-clipper%20chrome-trilium-web.png) Trilium Web Clipper is a web browser extension which allows user to clip text, screenshots, whole pages and short notes and save them directly to Trilium Notes. -Project is hosted [here](https://github.com/zadam/trilium-web-clipper). Firefox and Chrome are supported browsers, but the chrome build should work on other chromium based browsers as well. +Project is hosted [here](https://github.com/zadam/trilium-web-clipper). + +Firefox and Chrome are supported browsers, but the chrome build should work on other chromium based browsers as well. + +## Functionality -Functionality ------------- -* select text and clip it with context menu (right click) -* click on an image or link and save it through context menu -* save whole page from the popup or context menu -* save screenshot (with crop tool) from either popup or context menu -* create short text note from popup +* select text and clip it with the right-click context menu +* click on an image or link and save it through context menu +* save whole page from the popup or context menu +* save screenshot (with crop tool) from either popup or context menu +* create short text note from popup -Trilium will save these clippings as a new child note under a "clipper inbox" note. Clipper inbox is: +Trilium will save these clippings as a new child note under a "clipper inbox" note. -* if there's a note with [label](Attributes.md) `clipperInbox`, then this note is used as parent for the clipped notes -* otherwise, [day note](Day-notes.md) is used as a parent +By default, that's the [day note](Day-notes.md) but you can override that by setting the [label](Attributes.md) `clipperInbox`, on any other note. If there's multiple clippings from the same page (and on the same day), then they will be added to the same note. Get it ------- + +------------- Extension is available from: -* [Project release page](https://github.com/zadam/trilium-web-clipper/releases) - .xpi for Firefox and .zip for Chromium based browsers. -* [Chrome Web Store](https://chrome.google.com/webstore/detail/trilium-web-clipper/dfhgmnfclbebfobmblelddiejjcijbjm?hl=en&authuser=0) +* [Project release page](https://github.com/zadam/trilium-web-clipper/releases) - .xpi for Firefox and .zip for Chromium based browsers. +* [Chrome Web Store](https://chrome.google.com/webstore/detail/trilium-web-clipper/dfhgmnfclbebfobmblelddiejjcijbjm?hl=en&authuser=0) + +## Configuration -Configuration ------------- The extension needs to connect to a running Trilium instance. By default, it scans a port range on the local computer to find a desktop Trilium instance. -It's also possible to configure [server](Server-installation.md) address for cases when the desktop application is not currently running. +It's also possible to configure the [server](Server-installation.md) address if you don't run the desktop application, or want it to work without the desktop application running. -Username --------- +## Username + +------------- -Older versions of Trilium (before 0.50) required username & password to authenticate, but this was reduced to just password. Web Clipper UI still contains the username field, just use arbitrary string. \ No newline at end of file +Older versions of Trilium (before 0.50) required username & password to authenticate, but this is no longer the case. You may enter anything in that field, it will not have any effect. From a4d98b1bac14ec96c4ed314a1b1665b6d04a1762 Mon Sep 17 00:00:00 2001 From: MeIchthys Date: Sat, 6 Jul 2024 16:07:53 -0400 Subject: [PATCH 2/2] Delete Wiki/Release notes v0.48.md --- Wiki/Release notes v0.48.md | 128 ------------------------------------ 1 file changed, 128 deletions(-) delete mode 100644 Wiki/Release notes v0.48.md diff --git a/Wiki/Release notes v0.48.md b/Wiki/Release notes v0.48.md deleted file mode 100644 index 8f9c541..0000000 --- a/Wiki/Release notes v0.48.md +++ /dev/null @@ -1,128 +0,0 @@ -# Release notes v0.48 -0.48 is a big release and contains many changes, some of them breaking: - -Major frontend redesign ------------------------ - -![](images/1_screenshot.png) - -* right panel is no more, most of these widgets have been moved to the new ribbon-style widget under note title - * right panel is still possible to activate for scripts -* Trilium has a new icon (there might be further color changes) - -Vertical split window ---------------------- - -![](images/split.png) - -Link map re-implemented ------------------------ - -Now supports also hierarchical view of the notes: - -![](images/note-map.png) - -Mermaid diagrams ----------------- - -Thanks to [@abitofevrything](https://github.com/abitofevrything) for this contribution! - -![](images/mermaid.png) - -Basic bookmark support ----------------------- - -![](images/bookmarks.png) - -Other changes -------------- - -* persistence/entity layer in backend was largely refactored - "repository" and unified with note cache which should bring performance improvements for many operations -* search and SQL query notes now don't create “saved” notes by default -* added underline heading style and make it a default -* updated CKEditor to 30.0.0 - -Migration ---------- - -### Backup restore - -Trilium v0.48 is currently in beta and may contain serious bugs. - -Before migration to 0.48 Trilium will make automatically backup into `~/trilium-data/backup/backup-before-migration.db`. In case of problems you can restore this backup with this guide: [https://github.com/TriliumNext/Notes/wiki/Backup#restoring-backup](https://github.com/TriliumNext/Notes/wiki/Backup#restoring-backup) - -### Direct upgrade only from 0.47.X - -Direct upgrade to 0.48 is possible only from 0.47.X. If you want to upgrade from an older version, you need to upgrade to 0.47.X first and only then to 0.48. This is caused by extensive backend refactoring which broke older migration scripts. - -### All backend script notes should avoid being async - -Backend operations were in older versions used async/await because of the SQLite driver. But Trilium recently migrated to the synchronous (and much faster) `better-sqlite3`. As a consequence backend script notes which are wrapped in a transaction should to be converted to the sync variant. - -e.g. old script looked like this: - -```text-plain -const todayDateStr = api.formatDateISO(new Date()); - -const todayNote = await api.runOnBackend(async todayDateStr => { - const dateNote = await api.getDayNote(todayDateStr); - - ({note: logNote} = await api.createNote(dateNote.noteId, 'log')); -}, [todayDateStr]); - -api.activateNote(todayNote.noteId); -``` - -all the `await` (and `async`) should disappear from the backend code, but should remain when calling backend from frontend (that's still async): - -```text-plain -const todayDateStr = api.formatDateISO(new Date()); - -const todayNote = await api.runOnBackend(todayDateStr => { - const dateNote = api.getDayNote(todayDateStr); - - ({note: logNote} = api.createNote(dateNote.noteId, 'log')); -}, [todayDateStr]); - -api.activateNote(todayNote.noteId); -``` - -### Migrate custom themes - -With the redesign you might need to adjust your custom themes - check the modified list of available CSS variables in the [default theme](https://github.com/TriliumNext/Notes/blob/master/src/public/stylesheets/theme-light.css). If your theme also uses CSS selectors then that will probably have to be rewritten as well. - -Themes are annotated with `#appTheme` label, previously this label could but did not have to contain value - with this release the value is required so define the label as e.g. `#appTheme=my-theme-name`. - -Additionally, CSS themes are now loaded differently than before - previously all themes were loaded at the startup and which one was active was decided by the active CSS class. Themes were then prefixed like this: - -```text-plain -body.theme-steel-blue { - --main-font-family: 'Raleway' !important; - --main-font-size: normal; - - --tree-font-family: inherit; - --tree-font-size: normal; - ... -} - -body.theme-steel-blue .note-detail-editable-text, body.theme-steel-blue .note-detail-readonly-text { - font-size: 120%; -} -``` - -This prefixing is not needed anymore (and also doesn't work anymore). Remove the prefixes like this: - -```text-plain -:root { - --main-font-family: 'Raleway'; - --main-font-size: normal; - - --tree-font-family: 'Raleway'; - --tree-font-size: normal; - ... -} - -body .note-detail-editable-text, body .note-detail-readonly-text { - font-size: 120%; -} -``` \ No newline at end of file