Skip to content

js api -> ability to open card browser (the card search) from js api with ankiSearch("deck:foo myField:bar") #8109

Closed

Description

Describe alternatives you've considered

related to:

the current solution to make links from card to card is to:

  • render all cards as html files
  • place them in collection.media folder on mobile or pc
  • add Iframes <iframe src="_card${cid}.html" width="${0.9*window.innerWidth}" height="${0.9*window.innerHeight}" ></iframe>

but you cannot edit the related card this way

Is your feature request related to a problem? Please describe.

But for me the ability to issue the search request / open card browser would be sufficient

Describe the solution you'd like

in back of my card I would have sentence

<div onclick="ankiSearch("deck:\"My Deck\" kanji:kanji1")">kanji1</div>

and on press it would open card browser (without closing the card!!!, I can still return to it by pressing back button)

and fill it with search query

the search query parser would extract the:

  1. "deck:..." - if no deck is in query THEN use "All Decks"
  2. (maybe) is:suspended
  3. (maybe) tag:marked
  4. ...all other fields are considered as query to setQuery

Additional context

photo5280945011405468666

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions