Henrik Giesel
07e07aa6da
Catch hook errors in two ways:
...
- try/catch for catching synchronous errors
- Promise.allSettled will allow for rejected promises without fast-failing other promises
2021-07-19 01:23:41 +02:00
Damien Elmes
7884b5fd59
update translations
2021-07-17 18:30:19 +10:00
Damien Elmes
ef4289b4be
strip invalid Unicode chars in media check
2021-07-17 18:30:19 +10:00
Damien Elmes
4ed0260248
Merge pull request #1297 from hgiesel/browsershortcuts
...
Allow Using Ctrl+Shift+P from Browser when focusing Qt components
2021-07-17 15:18:36 +10:00
Henrik Giesel
f016df00cd
Remove unnecessary lambda
2021-07-17 04:17:28 +02:00
Damien Elmes
2f56b43859
expose _queueAction
...
https://github.com/ankitects/anki/pull/1292#issuecomment-881795577
2021-07-17 12:12:07 +10:00
Henrik Giesel
59f801abc7
Allow Using Ctrl+Shift+P from Browser when focusing Qt components
2021-07-17 03:39:27 +02:00
Damien Elmes
a1f0287d4a
css_browser_selector was logging to the console
2021-07-17 09:25:05 +10:00
Damien Elmes
e80d539f87
keep _updateQA exposed for now, as some add-ons use it
2021-07-17 09:11:05 +10:00
Damien Elmes
c93476512c
Merge pull request #1292 from hgiesel/reviewerplus
...
Move reviewer to ts/reviewer v2
2021-07-17 09:10:14 +10:00
Damien Elmes
83a88d0779
fix comment + copy/paste error
2021-07-17 09:02:14 +10:00
Damien Elmes
09f22e1065
Merge pull request #1296 from hikaru-y/revert-1276-follow-up-preload-images
...
Revert "Follow-up to #1271 (Preload answer images)"
2021-07-17 09:00:24 +10:00
Henrik Giesel
36ebcd8bd8
Allow any in reviewer/index.ts
2021-07-16 17:28:31 +02:00
Henrik Giesel
45fa549540
Add back opacity change
2021-07-16 17:26:04 +02:00
hikaru-y
dc11d7c297
Revert "Follow-up to #1271 (Preload answer images)"
2021-07-16 23:57:49 +09:00
Henrik Giesel
170bc5c25e
Revert to MathJax through script tag
2021-07-16 16:56:57 +02:00
Henrik Giesel
4888f5ee79
Add copyright header
2021-07-16 16:56:57 +02:00
Henrik Giesel
0695638ed8
Satisfy formatter
2021-07-16 16:56:57 +02:00
Henrik Giesel
0bb6f56c74
Satisfy eslint
2021-07-16 16:56:56 +02:00
Henrik Giesel
28e2f62793
Remove protobuf important from reiewer (no longer necessary (?))
2021-07-16 16:56:56 +02:00
Henrik Giesel
cb890b849b
Do not set opacity to 0 in reviewer
2021-07-16 16:56:56 +02:00
Henrik Giesel
70040d508e
Include MathJax over ts/reviewer
2021-07-16 16:56:56 +02:00
Henrik Giesel
dbbb590c2f
Simplify some reviewer code
2021-07-16 16:56:56 +02:00
Henrik Giesel
6ef8e17f60
Create reviewer/images.ts
2021-07-16 16:56:56 +02:00
Henrik Giesel
c62d2dc033
Export jquery via ts/reviewer
2021-07-16 16:56:56 +02:00
Henrik Giesel
8ee6eb71eb
Include css-browser-selector via ts/reviewer
2021-07-16 16:56:56 +02:00
Henrik Giesel
11f06161c9
Include protobuf in clayout and browser (p)reviewer
2021-07-16 16:56:56 +02:00
Henrik Giesel
2536063784
Export getTypedAnswer
2021-07-16 16:56:56 +02:00
Henrik Giesel
791d7f2f4b
Move reviewer to ts/reviewer
2021-07-16 16:56:55 +02:00
Damien Elmes
a2281b8db1
Merge pull request #1295 from cyphar/set_due_date-use-deck-ease
...
scheduler: use deck config's initial ease in set_due_date
2021-07-16 18:12:21 +10:00
Aleksa Sarai
5d7847515c
scheduler: use deck config's initial ease in set_due_date
...
Previously we would just use 250% ease for any new card that had no
pre-configured ease, but this will result in decks that have
non-standard ease values to have "set due date" cards in them that don't
match. In order to make this somewhat more efficient, we cache
deckid->ease lookups during this operation.
Ref: <https://forums.ankiweb.net/t/set-due-date-doesnt-obey-default-ease-factor/9184 >
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2021-07-16 12:33:15 +10:00
Damien Elmes
df6d3ed116
Merge pull request #1288 from evandroforks/clayout_next_card_shortcut
...
Created shortcut to switch between card types on clayout.py
2021-07-16 10:51:40 +10:00
Damien Elmes
eb4e18a45f
Merge pull request #1293 from RumovZ/find-and-replace
...
Find & Replace
2021-07-16 10:47:16 +10:00
Damien Elmes
1e2ebd1c29
move from Python's URI escaping to IRI escaping in Rust
...
Should make non-Latin text readable in the HTML editor, without the
breakages reverted in the previous change.
2021-07-16 10:38:00 +10:00
Damien Elmes
2d0540b741
Revert "stop (un)escaping media filenames"
...
This was flawed - while non-Latin text is now acceptable
in an IRI, we still need to be concerned with reserved characters
such as spaces, and Anki unfortunately has been storing the filenames
in unencoded form in the DB, meaning we must encode them at display
time. We won't be able to move away from this until existing notes
are rewritten, and it will probably require breaking compatibility with
older clients.
https://en.wikipedia.org/wiki/Internationalized_Resource_Identifier
This reverts commit b21af06d75 .
2021-07-16 10:37:59 +10:00
evandrocoan
19ef304873
Created shortcut to switch between card types on clayout.py
...
editor window (F3 and F4) because it should be simple to use them
single hand and together with Ctrl+1, 2 and 3 combos.
2021-07-15 20:51:08 -03:00
RumovZ
9ba35b9efb
Remove redundant QueryOp in rename_deck()
2021-07-15 08:56:47 +02:00
Damien Elmes
090a54c6e6
support numpad enter in type answer
...
https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/149
regression introduced in dc61a6f547
2021-07-15 14:46:39 +10:00
RumovZ
0804d054b7
Remove unused name prefix of sidebar templates
2021-07-13 16:41:50 +02:00
RumovZ
4f17400021
Add sidebar actions
...
- Find & Replace for notetype fields
- Rename with Parents for decks and tags
2021-07-13 16:34:02 +02:00
RumovZ
4b1218184d
Rework Find & Replace dialog:
...
- Add option to affect whole collection
- Allow to open without selection
- Add parameter for presetting field
2021-07-13 16:33:45 +02:00
RumovZ
a68b07d9ee
Fix find & replace for notes without 'field_name'
...
Distinguish between no 'field_name' passed and 'field_name' not on note.
2021-07-13 16:21:13 +02:00
Damien Elmes
aa7f602752
update translations
2021-07-13 16:12:29 +10:00
Damien Elmes
527ad0a3da
ascending/descending position
...
https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/131
2021-07-13 16:10:29 +10:00
Damien Elmes
1d4fb0ca50
add note about display order using current deck
2021-07-13 15:58:06 +10:00
Damien Elmes
314df22e1e
move bury options below display order
...
Causes the timer settings to appear at the bottom left, which is a bit neater.
2021-07-13 15:45:08 +10:00
Damien Elmes
492137d264
Merge pull request #1291 from RumovZ/addon-cols
...
Show key of unknown browser columns
2021-07-13 13:35:54 +10:00
Damien Elmes
c276cf6cd7
Merge pull request #1290 from RumovZ/bowser-mock-model
...
Add mock browser model to support legacy resetting
2021-07-13 13:35:13 +10:00
Damien Elmes
44690a7a64
update translations
2021-07-13 13:32:33 +10:00
RumovZ
211f39836d
Show key of unknown browser columns
2021-07-12 19:03:51 +02:00