Ben Tsai

Kinopio Bookmarklet

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:

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

Next up and ideas #

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

Wednesday, April 14, 2021