Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    matrixbot
    @matrixbot

    the_observer Hey everyone,

    is there a way, to specify the language (e.g. html) of a code block via autormatting / markdown? AFAIK it would just be "```html", but that does not seem to work in trilium / ckeditor. I couldn't find anything about it in the trilium nor the ckeditor documentation. When writing quick notes, it is just very handy to specify everything via the keyboard instead of using the mouse.

    Fastidious
    @Fastidious
    How do I add attributes to a note?
    Ryan Stark
    @ryansyah
    I have recently re-implemented my trillium notes server container on CentOS8 with podman (was previously centos7 w/ podman and no issues), now the server is crashing ~2x/day:
    [podman@trill ~]$ podman ps --all
    CONTAINER ID  IMAGE                           COMMAND         CREATED      STATUS                     PORTS                   NAMES
    5eccac668002  docker.io/zadam/trilium:0.45.2  node ./src/www  2 weeks ago  Exited (135) 16 hours ago  0.0.0.0:8080->8080/tcp  trilium-notes
    Error code 135 is not helpful, and nothing in the container logs stands out either
    [podman@trill ~]$ podman logs 5eccac668002 Error: Router not found for request /evox/about at /usr/src/app/src/app.js:69:17 at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5) at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13) at /usr/src/app/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12) at next (/usr/src/app/node_modules/express/lib/router/index.js:275:10) at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:91:12) at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:317:13) at /usr/src/app/node_modules/express/lib/router/index.js:284:7 at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12) { status: 404 } GET /api/setup/status took 3ms Slow POST /api/login/sync took 13ms GET /api/sync/changed?lastEntityChangeId=209539 took 2ms POST /api/sync/finished took 0ms Slow query took 164ms: SELECT noteId AS id, hash FROM notes Slow query took 842ms: SELECT noteId AS id, hash FROM note_contents Slow query took 90ms: SELECT branchId AS id, hash FROM branches Slow query took 63ms: SELECT noteRevisionId AS id, hash FROM note_revisions Slow query took 115ms: SELECT noteRevisionId AS id, hash FROM note_revision_contents Slow query took 385ms: SELECT attributeId AS id, hash FROM attributes Content hash computation took 1795ms Slow GET /api/sync/check took 1813ms Slow HEAD /login took 37ms GET /login took 2ms GET /api/setup/status took 2ms Slow POST /api/login/sync took 11ms GET /api/sync/changed?lastEntityChangeId=209539 took 4ms POST /api/sync/finished took 1ms Slow query took 174ms: SELECT noteId AS id, hash FROM notes Slow query took 803ms: SELECT noteId AS id, hash FROM note_contents Slow query took 92ms: SELECT branchId AS id, hash FROM branches Slow query took 62ms: SELECT noteRevisionId AS id, hash FROM note_revisions Slow query took 129ms: SELECT noteRevisionId AS id, hash FROM note_revision_contents Slow query took 296ms: SELECT attributeId AS id, hash FROM attributes Content hash computation took 1754ms Slow GET /api/sync/check took 1834ms GET /api/setup/status took 8ms POST /api/login/sync took 7ms GET /api/sync/changed?lastEntityChangeId=209539 took 2ms POST /api/sync/finished took 0ms Slow query took 158ms: SELECT noteId AS id, hash FROM notes Slow query took 852ms: SELECT noteId AS id, hash FROM note_contents Slow query took 86ms: SELECT branchId AS id, hash FROM branches Slow query took 59ms: SELECT noteRevisionId AS id, hash FROM note_revisions Slow query took 127ms: SELECT noteRevisionId AS id, hash FROM note_revision_contents Slow query took 407ms: SELECT attributeId AS id, hash FROM attributes Content hash computation took 1945ms Slow GET /api/sync/check took 1994ms Slow GET /api/setup/status took 74ms Slow POST /api/login/sync took 40ms Slow query took 68ms: SELECT * FROM options WHERE name = ? Slow query took 932ms: SELECT * FROM options WHERE name = ?
    Fastidious
    @Fastidious
    @ryansyah this is a dead medium. I am afraid answers will not come from here, or if they do, they will arrive quite late.
    pradeepgovind
    @pradeepgovind
    Hi..Could you pls help me fix this sync issue?The error is :Sync server handshake failed, error: Request to POST http://local host:8080/api/setup/sync-seed failed, error: 400 Bad Request....i have Installed Node.js 10.x on Ubuntu 20.04..pls note the server is accessible via any browser when i tried http://localhost:8080... local machine app version is 0.27.3..
    Andrea
    @andreabolandrina
    Hi, how do you create the first note for a day from the web UI please?
    it gets created automatically if I send a note from the FF web clipper, using the template as a base... just not sure how to do it when you already in the app...
    Andrea
    @andreabolandrina
    I found the solution - there is a "Today" link on the top right. thanks anyway
    Christian Münch
    @cmuench
    Maybe a firewall issue?
    1 reply
    cbradford
    @cbradford:matrix.org
    [m]

    I figured it out. The instructions have:

    sudo docker run -t -i -p 127.0.0.1:8080:8080 -v ~/trilium-data:/root/trilium-data zadam/trilium

    To get it to work from any IP I needed to change to:

    sudo docker run -t -i -p 0.0.0.0:8080:8080 -v ~/trilium-data:/root/trilium-data zadam/trilium

    Which I guess is obvious to a Docker expert, which I am not

    Christian Münch
    @cmuench
    Docker is also modifying the iptables in the default settings.
    cbradford
    @cbradford:matrix.org
    [m]
    To the owner of the git repository: I wanted to help augment and add to the wiki documentation with additional information I learned while installing. But it looks like I can just edit the wiki and save without having to fork or commit or anything! Before I do anything I wanted to check with the repo owner to see how you want me to go about contributing to the wiki docs?
    Imran Iqbal
    @myii
    This seems like the best place to ask questions: https://github.com/zadam/trilium/discussions.
    @cbradford:matrix.org ^.
    8666
    @8666

    How to set different folder icons by depth? This theme here implements something similar like that.. but I want the rainbow to be "horizontal"
    https://github.com/Abourass/TriliumThemes/blob/master/examples/css/RainbowInTheDark.css

    So 1st level folders one color, the children another, grand-children another

    Don Liu
    @DonCN
    Hello everyone, there's a problem when I use "location" in task manager. First, I create a new Locations, then I create a TODO, and set its Location for the one I created. The problem is that in the Locations, the new TODO doesn't appear. Does anyone know why? Thanks a lot.
    vivianesis
    @vivianesis_twitter
    Can anyone explain me how can i run multiple instances of trilium on the same computer for Windows, pointing to different documents/data? Ive found some explanations on the wiki but theyre for linux/unix or mac, none for how to do it on windows
    I find hoisting more cumbersome then opening different instances at different moments/contexts, i want separate documents that have no reason to be linked together cluttering search... besides id also like to use different themes and settings for each (from zoom and font size to themes etc)
    even for syncing it would be better for me, since theres one usecase/area wich i want to sync from desktop to notebook, but others i never use on the go
    Payrim Dwein
    @PayrimSp_twitter
    hello
    i hope here be alive
    can we form a discord server/reddit sub please?
    i think this app has more potential (and far more features) than other ones (zettlr obsidian notion etc)
    i think we should expand the users and maybe with active community we could gain backers and devs to work on the project
    pete "the pigeon" shaw
    @peteshaw
    So this is an awesome App! have created an instance on docker for self hosting, which so far has been great. But I am a little worried about losing my data. There doesn't seem to be any way to export notes. And I can't enable sync because the docker image is 45.x but my desktop is 46. I am trying to update the docker image, but I am a little worried because it seems like the db is stored within the image, and I don
    don't want to lose all my data!
    Justin Godesky
    @jgod
    @peteshaw before you start using the docker image seriously make sure you understand docker volumes https://docs.docker.com/storage/volumes/
    Docker volumes are the normal way to persist an applications data on host machine, so that it lives beyond the ephemeral container. Play with it by creating and destroying the container.
    Whether you use bind mounts or volumes, or even docker copy command, make sure you are comfortable with getting data into and out of the containers .
    Justin Godesky
    @jgod
    And then you can just back up this data, held on your machine ,the way you normally do. (Automate with cron rsync, erc. whatever you want!)
    pete "the pigeon" shaw
    @peteshaw

    Thank you! I think that is where my knowledge is thin, the exact relationships between images, volumes, and containers.

    Also, I realized after I posted this that I can just right click on the root node and export the whole tree as a zip file. Then, I can import it into another instance. I never knew I could do that!

    chee
    @chee:snoot.club
    [m]
    does anyone have a nice solution for embedding videos in a note? i've come up with a thing using an embedded render note, but it's too much work to do every time i want to add a video
    same goes for audio
    is it possible to the value of attributes in a code note?
    chee
    @chee:snoot.club
    [m]
    thanks to zadam, i will soon be able to view embedded videos right there in a note: zadam/trilium@79bb249
    chee
    @chee:snoot.club
    [m]
    goodbye Gitter Integration (legacy)
    Glen Zachariah
    @glenzac
    I'm not familiar with JS and I'm trying to create a note that works similar to the Journal (Day notes). I created a note called 'Diary' and copied the JS front end code and renamed the button to create a new button. But even when I click this new button a note is created in the Journal in the Trilium Demo note, instead of the newly created 'Diary' note. Can someone please guide me on how to make the button create a new Day note in a user specified note?
    Kirill Pimenov
    @kirushik

    Hello!
    I'm trying to make my Today note view more useful by making my day templates rendered notes — so they would automatically update reflecting content changes (Todos, titles of today's clipped webpages etc).
    Unfortunately, if I set ~renderNote on my Day template (typed to Rendered note, of course) — the Day template gets rendered in-place, and its rendering then becomes the content of the today note; if I don't set it — then of course my today note doesn't render anything.

    Is there a trick I'm missing which would allow me to get automated Today notes in Trilium?

    The Implementation templates and scripts get replicated (and they are copied, not cloned — which I'm OK with) into my today note correctly — so the issue is only in setting up a ~renderNote relationship to the correct (newly created) Implementation sub-note
    Kirill Pimenov
    @kirushik

    OK, I've created a terrible hack I'm not too proud with, but it works.
    I've added a setRelation("renderNote" into a handler of my "Today" keyboard shortcut.

    Code snippet:

            await api.runOnServer(async (noteId) => {
                const todayNote = await api.getNote(noteId);
                const todayImplementation = await todayNote.getDescendantNotesWithLabel("implementation")[0];
                await todayNote.setRelation("renderNote", todayImplementation.noteId);
            }, [todayNote.noteId]);

    right before api.activateNote

    This way, the relation might not be there when the getTodayNote sets up the replica of the tree — but it is later set on each hotkey activation.
    So, provided I'm navigating to the "Today" note using a hotkey — this works.
    I still wish there would be a cleaner way of doing this
    Another tip for anyone who decides to follow my steps: keyboard hotkey handlers are only loaded once; so to activate your changes you'd need to either restart the whole app, or (better) use F5 to reload the view
    Yura Vaschenko
    @yuriusV
    Hello. What about using monaco-editor(VS code component for text editor) with type definitions for your API to scripted notes? This can make scripting easier(providing code suggestions for API). (btw i had implemented this feature few years ago for your project, but due to the fact that my graduate work began, I had to postpone the proposal .. and forgot about that)
    chee
    @chee:snoot.club
    [m]
    that would be great, wouldn't it?
    Yura Vaschenko
    @yuriusV
    Ok. I have already found my code, it seems that the current logic and repo structure is not very different from old version. I'll fetch the repo and apply my changes to it
    chee
    @chee:snoot.club
    [m]
    that's very exciting @yuriusV
    !!
    kraftnix
    @kraftnix:matrix.org
    [m]
    Hey all, I've been looking into trilium (from joplin) and it looks great! There are a few minor issues but it feels really powerful and I think I will be moving to it. One of the issues I have been having is many of the (dark) themes I looked at don't really work except the bundled theme. Do the third party themes break often? Last thing would be code highlighting, I saw some issues discussing it (stale looking upstream changes required), would there be any plan to be able to have code highlighting some other way? I tried making a code note (highlighting works) then including/rending it in a parent text note, but the text note still undoes/displays no highlighting. Any thoughts?
    v217
    @v217
    Hi,
    Thank you for this great software!
    I run Trilium on localhost as a personal wiki.
    Is there a proper way to shut down the server?
    Until now I just interrupted with Ctrl-C. Thanks!