(originally posted in the Discord #plugins-advanced channel )
A cool trick
Want to list a bunch of linked notes in a kanban board (courtesy of @mgmeyers )? If you’re like me, the thought of typing out a hundred linked pages will leave you out of breath and make your thumbs ache.
Well, good news for your lungs and thumbs: create giant linked lists of notes in seconds with the help of @blacksmithgu ’s Dataview and SilentVoid’s Templater !
Set up a Templater template using the “Paste clipboard into list of wikilinks” template found here: https://github.com/SilentVoid13/Templater/discussions/173
Use the following Dataview query to generate a list of notes. Edit the WHERE
line to search for whatever you want:
LIST
WHERE contains(file.name, "ᐤ△")
SORT file.name asc
Switch to preview. Select the list, then copy it to your clipboard.
Open the Kanban board as a markdown note:
Switch to your kanban board.
Click the board’s ⫶ menu.
Click “Open as Markdown” to get a markdown view of the kanban board.
Under whatever heading you’d like, insert the template you created in (1).
The result will be a list of the notes you generated via the Dataview query above, formatted perfectly for your kanban list.
12 Likes
An even simpler option—you don’t actually need Dataview or Templater.
Obsidian’s core search includes a Copy Search Results button:
Enter a query and tap that button, then use the appropriate link style and a -
list prefix:
Copy the results, then follow step 4 above. Finally, paste the copied search results.
If you need help building complex search queries, try the Vantage plugin .
The dataview+templater workflow described above may still be handy if you need to search for something more complex than core search parameters can do.
7 Likes
thanks for the hacks, they are helpful.
do you know why Kanban can’t work with embedded dataview queries, and if this limitation will ever be overcome?
am I asking too much?
The functionality just hasn’t been built out. It is non-trivial, but there is a feature request (or several) for it in the Kanban GitHub repo.
e.g.,
opened 08:04PM - 12 May 21 UTC
enhancement
planned
difficult
As discussed here: https://discord.com/channels/686053708261228577/8402862389287… 97736/841748907273093120
It would be pretty neat to live-import cards matching a certain search or dataview query.
A couple of use cases:
- A kanban for writing. Lists might be drafts, editing, scheduled, published. An "inbox" list might grab items from across the vault so that they can be easily dragged into other lists.
- A kanban for project management. Same as above—an inbox list would make sure you catch every new project note you create.
I recognize that this is probably non-trivial, though—namely because the plugin would need to recognize that a search-generated card needs to be converted to a "real" card once it's dragged from the search to another list.
1 Like