Commit graph

4944 commits

Author SHA1 Message Date
Thomas B
718fd2c44d Clarify docstring 2020-08-20 10:30:31 -04:00
Thomas B
3bcb7759d2 Add both Union and Sequence to typing import
Resolve conflict.
2020-08-19 16:19:15 -04:00
Thomas B
0450fde53a Update gui_hooks.py 2020-08-19 16:15:56 -04:00
Thomas B
a54135c5ac Fixing type hints
Matched all type hints, changed the original Sequence[] type hint for _answerButtonList() in reviewer.py on mypy's recommendation.
2020-08-19 16:15:49 -04:00
Thomas B
9cbf5e2251 Update as part of previous commit 2020-08-18 10:38:59 -04:00
Thomas B
8b95ab5441 Bugfix proposed filter post-testing
Mirrored filter more closely on _ReviewerWillAnswerCardFilter, including taking and returning the value to be modified.
2020-08-18 10:37:45 -04:00
Thomas B
830ab9cedb Add hook for initializing answer buttons 2020-08-14 13:52:20 -04:00
Damien Elmes
6a5254313c Merge pull request #731 from Arthur-Milchior/search_context_has_model
Search_model has context
2020-08-14 22:24:07 +10:00
Arthur Milchior
e3e929fed2 Search_model has context
I have an add-on which allow to open multiple windows. So would like to know which browser has done the search. This
would allow me to have browser with various setting. In particular, I've an add-on which allow to show a single line by
note, and I would like for some browser to have this feature on and for some other to have this feature off.
2020-08-13 19:46:14 +02:00
Damien Elmes
2c500a1538 Merge pull request #732 from Arthur-Milchior/typing
Typing
2020-08-13 20:19:30 +10:00
Damien Elmes
90ad63cfa3 Merge pull request #730 from ANH25/rtl-editing
fix Ctrl+right/left handling in RTL fields
2020-08-13 20:09:51 +10:00
Damien Elmes
3adec8959b Merge pull request #729 from evandroforks/upload_rslib_artifacts
Upload things so we can download it and compare to fix the bug
2020-08-13 20:09:17 +10:00
Damien Elmes
1dfe5b8165 remove RTL special case in cloze deletion
https://forums.ankiweb.net/t/erroneous-characters-added-to-rtl-cloze-deletions/2164
2020-08-13 19:11:48 +10:00
evandrocoan
e12f128302 Force create cache 2020-08-12 10:11:06 -03:00
Damien Elmes
54bb782809 handle <%foo%> inside {{#conditional}}
https://forums.ankiweb.net/t/the-latest-version-of-ios-cannot-display-the-template-normally/2142
2020-08-12 19:28:26 +10:00
Damien Elmes
c7b61822cf switch the card counts to a pie graph 2020-08-12 18:58:21 +10:00
Arthur Milchior
110f4c664f Any removed 2020-08-12 01:37:21 +02:00
Arthur Milchior
a74601a0f0 NF: childMapNode 2020-08-12 00:42:42 +02:00
ANH
8ee74a02b2 add modify to the Selection interface 2020-08-11 03:32:58 +03:00
ANH
a2227960c0 fix Ctrl+right/left handling in RTL fields 2020-08-11 03:09:03 +03:00
evandrocoan
708b6fc16e Upload things so we can download it and compare to fix the bug
can't find crate for `prost_derive` which `prost_build`
https://github.com/ankitects/anki/pull 729
2020-08-10 12:05:24 -03:00
Damien Elmes
bf1ac7e4a9 Merge pull request #728 from hgiesel/mungehtml
Move "remove null bytes" and "reverse url formatting" functionality to editor_will_munge_html hook
2020-08-10 16:33:56 +10:00
Damien Elmes
c8a6d81fde bust rspy cache 2020-08-10 16:16:03 +10:00
Damien Elmes
a59eec97bf shift card counts down and future due up 2020-08-10 15:51:45 +10:00
Damien Elmes
c252344aef increase h1 top margin; decrease bottom graph margin 2020-08-10 15:34:06 +10:00
Damien Elmes
9cbd603e52 match card counts margin with other graphs 2020-08-10 15:32:03 +10:00
Damien Elmes
137cdaeb2e add space after colour square 2020-08-10 15:02:46 +10:00
Damien Elmes
b6bd4462b1 fix lack of padding at bottom of top range area 2020-08-10 14:39:02 +10:00
Damien Elmes
4b7c642b19 hide backlog button when there's no backlog 2020-08-10 14:37:23 +10:00
Damien Elmes
5e08358d60 fix "32 of 31 days"
https://forums.ankiweb.net/t/feedback-on-the-new-graphs-in-anki-ankimobile/1671/41?u=dae
2020-08-10 13:56:16 +10:00
Damien Elmes
d0d2ba15e2 generate extra templates when recovering notetype 2020-08-10 13:42:37 +10:00
Damien Elmes
a4c8825aeb show ordinal if card template missing 2020-08-10 13:41:22 +10:00
Henrik Giesel
1cb579dc9e Reset cargo rspy 2020-08-09 17:18:05 +02:00
Henrik Giesel
5afa196026 Reset the cargo rslib 2020-08-09 17:05:29 +02:00
Henrik Giesel
7d4c8da04b Reset the cargo registry 2020-08-09 17:01:22 +02:00
Henrik Giesel
6b954cba00 Reset cargo index cache by bumping its number from 22 to 23 2020-08-09 16:38:27 +02:00
Henrik Giesel
31916102ed Add newlines 2020-08-09 11:16:19 +02:00
Henrik Giesel
6122b9ac53 Avoid extra assignment 2020-08-09 10:38:31 +02:00
Henrik Giesel
097538b061 Move reverse url quoting functionality to editor_will_munge_html hook 2020-08-09 10:37:38 +02:00
Henrik Giesel
612e38def3 Move remove null bytes functionality to editor_will_munge_html hook 2020-08-09 10:35:52 +02:00
Damien Elmes
d273f1b5b8 accept alternate strings file 2020-08-09 14:44:23 +10:00
Damien Elmes
ea2c5c6920 deauth -> log out 2020-08-09 14:44:03 +10:00
Damien Elmes
4629dd38fb bump version 2020-08-09 13:44:59 +10:00
Damien Elmes
c79bb313f8 Merge pull request #727 from hgiesel/mungehtml
Add editor_will_munge_html hook
2020-08-09 13:38:39 +10:00
Damien Elmes
41c95c07b4 make sure to reset after deleting empty cards
https://anki.tenderapp.com/discussions/private/5067-anki-was-unable-to-open-your-file
2020-08-09 12:42:58 +10:00
Damien Elmes
c366f07e65 find/replace completer should be case sensitive
https://forums.ankiweb.net/t/bug-report-search-and-replace/2037
2020-08-09 12:10:34 +10:00
Henrik Giesel
b3b77ea3b3 Replace functionality of mungeHTML with call to new gui_hook 2020-08-08 23:59:01 +02:00
Henrik Giesel
7d1d20cbf4 Add editor_will_munge_html hook 2020-08-08 23:27:58 +02:00
Damien Elmes
ffd1638400 fix assertion failure when recovering notetype
Notes need to have their notetype ID updated to reflect the
newly created notetype.

https://forums.ankiweb.net/t/anki-crashes-on-sync-study-export/1978
2020-08-08 12:26:00 +10:00
Damien Elmes
bdf6e2b87d handle negative review times in sync 2020-08-07 15:02:03 +10:00