mabeyj / trilium-collection-views

An extension for Trilium Notes that implements different ways of viewing collections of notes.
MIT License
76 stars 5 forks source link

Question: Add custom button? #48

Open adoreparler opened 1 year ago

adoreparler commented 1 year ago

I have a task list collection view and I am curious if I could create a button in one of the columns to manually move the note to under another note.

Example To-Do:

In the collections view, one of the columns might be Action and have buttons or some way to just click to move the task to Backlog/In Progress/Done and maybe even refresh the screen/note if needed.

Is this possible?

I am relatively new to Trillium so still figuring stuff out.

mabeyj commented 1 year ago

Hi, this is not possible with collection views. Views are currently read-only and cannot make changes to notes. I'll leave this open as a feature request. I think it would be feasible to implement some way of defining buttons that could call a custom function.

The closest thing that might be possible with Trilium would be to create a custom widget. The widget could have buttons that move the current note when clicked. https://github.com/zadam/trilium/wiki/Widget-Basics