Kinopio Bookmarklet

· Ben’s Blog


Select all cards with this string #

You can use this to select all cards with a specific string, including tags (because that's just part of the card name).

Drag this link into your bookmarks bar:

Select cards

Here's a demo...

search demo

I used https://caiorss.github.io/bookmarklet-maker/ to do some of the ancillary things like wrapping in an anonymous function, encoding it.

Here's the code prior to the processing:

1let searchTerm = window.prompt(
2  "Select all cards with this string",
3  "Search term"
4)
5let vueState = document.querySelector("#app").__vue__.$store.state
6vueState.multipleCardsSelectedIds = vueState.currentSpace.cards
7  .filter(c => c.name.includes(searchTerm))
8  .map(c => c.id)

Next up and ideas #

There a bunch of new bookmarklets I'd like to write: