mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
fixed hook description (browser_will_search) (#1937)
* fixed hook description * added name to CONTRIBUTORS
This commit is contained in:
parent
af8ae69837
commit
1e8ea0cade
2 changed files with 6 additions and 2 deletions
|
@ -104,6 +104,7 @@ Luka Warren <github.com/lukawarren>
|
||||||
wisherhxl <wisherhxl@gmail.com>
|
wisherhxl <wisherhxl@gmail.com>
|
||||||
dobefore <1432338032@qq.com>
|
dobefore <1432338032@qq.com>
|
||||||
Bart Louwers <bart.git@emeel.net>
|
Bart Louwers <bart.git@emeel.net>
|
||||||
|
Sam Penny <github.com/sam1penny>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
|
|
|
@ -430,11 +430,14 @@ hooks = [
|
||||||
You can modify context.search to change the text that is sent to the
|
You can modify context.search to change the text that is sent to the
|
||||||
searching backend.
|
searching backend.
|
||||||
|
|
||||||
If you set context.card_ids to a list of ids, the regular search will
|
If you set context.ids to a list of ids, the regular search will
|
||||||
not be performed, and the provided ids will be used instead.
|
not be performed, and the provided ids will be used instead.
|
||||||
|
|
||||||
Your add-on should check if context.card_ids is not None, and return
|
Your add-on should check if context.ids is not None, and return
|
||||||
without making changes if it has been set.
|
without making changes if it has been set.
|
||||||
|
|
||||||
|
In versions of Anki lower than 2.1.45 the field to check is
|
||||||
|
context.card_ids rather than context.ids
|
||||||
""",
|
""",
|
||||||
),
|
),
|
||||||
Hook(
|
Hook(
|
||||||
|
|
Loading…
Reference in a new issue