Skip to content
Discussion options

You must be logged in to vote

I have a different use case. I think it can help you solve your issue. I make a 2nd Journal, "Chat Journal", with a custom "Open Today's Chat Journal Note" button.

The button can be implemented with a single JS frontend code note. You just need to set its attribute to #run=frontendStartup (https://triliumnext.github.io/Docs/Wiki/scripts.html#button-use-case ).

Below is the code.

api.addButtonToToolbar({
    title: 'Chat Journal',
    icon: 'chat',
    // shortcut: 'ctrl+c',
    action: async function() {
        // getTodayNote is backend (server) responsibility
        const noteId = await api.runOnBackend(() => {
			const chatJournalRoot = 'ZdpxxxxxxC0r'; // TODO: you need to fill in th…

Replies: 0 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@ptmorris1
Comment options

@RadonX
Comment options

Answer selected by ptmorris1
@ptmorris1
Comment options

@ptmorris1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants