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:
Here’s a 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",
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:
- Write a word count widget
- Wrap the descendant select and filtered connection code in a bookmarklet.
- Space statistics widget
- Select cards by regular expression
Wednesday, April 14, 2021