I made a simple command palette #4227
Replies: 3 comments 4 replies
-
Wow, this is so cool! I can't wait to try it out. It would be neat if we could integrate this with the default jump to menu. Perhaps we could add a hash or some other character to the beginning of the jump to search to indicate that we are issuing a command? |
Beta Was this translation helpful? Give feedback.
-
That's pretty awesome ... command palette would be something I'd like to integrate in the near/mid future. This plugin might be a great starting point! |
Beta Was this translation helpful? Give feedback.
-
I added a new version of this script here: https://github.com/justyns/trilium-scripts/blob/master/command-palette/palette-testing-widget.js It's based on the jump-to-note widget so should be more consistent with styling/etc. I also added the ability to search for notes too. I don't like how the notes search looks right now, but I don't think I have an easy way to get the friendly/readable version of the note path? |
Beta Was this translation helpful? Give feedback.
-
One of the things I was missing from Trilium during my initial testing was an easier way to trigger things in the mobile web ui. The toolbar on the side just isn't big enough to have a button for everything.
I ended up making a simple command palette (similar to vscode) that can be opened with ctrl+shift+p / cmd+shift+p or swiping down on mobile.
You can find it in the comand-pallete directory here: https://github.com/justyns/trilium-scripts
It doesn't really do much on its own, but you can add any frontend script to the list of commands by adding the attribute label
cmdPalette="Name of command"
. I added a few shortcut notes like inserting the current timestamp since there didn't seem to be a way to do that on mobile yet.Also fair warning, I am not a javascript or frontend developer. I'll try to clean things up a bit, but thought I'd share the first version since it seems to work well enough for me so far.
Beta Was this translation helpful? Give feedback.
All reactions