RumovZ
468c0286f9
Use dyn instead of generic for media_fn
...
Otherwise, would have to pass None with type annotation in the default
case.
2022-04-08 18:46:40 +02:00
RumovZ
08791e24fc
Add import_cards(), import_revlog()
2022-04-08 18:12:37 +02:00
RumovZ
ffdd8b741e
Add import_deck_configs()
2022-04-08 10:52:12 +02:00
RumovZ
7520afd9c5
decks_configs → deck_configs
2022-04-08 10:41:33 +02:00
RumovZ
5cf1705784
Add import_decks()
2022-04-08 10:34:49 +02:00
RumovZ
48bc6627b1
Note id, not guid of conflicting notes
2022-04-07 21:08:17 +02:00
RumovZ
94a6cdd6ed
Add notes immediately instaed of preparing
2022-04-07 20:49:42 +02:00
RumovZ
b9c19273fc
Move target_col into Context
2022-04-07 19:04:24 +02:00
RumovZ
9527322231
Add notetypes immediately instaed of preparing
2022-04-07 18:58:11 +02:00
RumovZ
5bfd47e415
Add trait to keep down cow boilerplate
2022-04-07 16:01:01 +02:00
RumovZ
cd4865dd18
Handle encoding in replace_media_refs()
2022-04-07 12:51:26 +02:00
RumovZ
7583a7e6b3
Prepare media based on checksums
...
- Ensure all existing media files are hashed.
- Hash incoming files during preparation to detect conflicts.
- Uniquify names of conflicting files with hash (not notetype id).
- Mark media files as used while importing notes.
- Finally copy used media.
2022-04-07 12:45:02 +02:00
RumovZ
a0085e7fd4
Add SafeMediaEntry for deserialized MediaEntries
2022-04-06 23:21:32 +02:00
RumovZ
efde7c7acc
Refactor import-export/package
...
- Move media and meta code into appropriate modules.
- Normalize/check for normalization when deserializing media entries.
2022-04-06 18:02:02 +02:00
RumovZ
80dc3ae99e
Fix due dates in days for apkg export
2022-04-06 12:31:29 +02:00
Damien Elmes
26d40c3a8e
Update translations
2022-04-06 11:51:49 +10:00
Damien Elmes
f2bffaa185
Tweaks to video driver handling
...
- Use a separate `gldriver6` file for configuring Qt6 so we don't
pick up old settings, or cause problems when switching back and forth.
- Default to OpenGL/auto instead of software, as that was what we
were using throughout the beta period.
- Try to detect driver failure on startup. Untested.
- Hide the selector in the preferences again, as if Anki is unable
to automatically switch drivers, the user could change the setting
and then not be able to get back into Anki.
2022-04-06 11:35:49 +10:00
Damien Elmes
b0a2884f19
Revert "Speed up editor by lazily loading CodeMirror ( #1766 )"
...
This reverts commit 0db921dd39
.
This caused a regression that needs looking into:
https://github.com/ankitects/anki/issues/1775
2022-04-06 11:08:32 +10:00
RumovZ
6836da07ec
Start on apkg importing on backend
2022-04-05 18:15:51 +02:00
Damien Elmes
c96ef8cd0a
Update translations
2022-04-05 11:23:07 +10:00
Damien Elmes
bb940cad82
Match editor background to widget background in day mode
2022-04-05 10:55:25 +10:00
Damien Elmes
1a55942ffa
Fix invisible tag input in Qt5 (thanks to Hikaru)
...
Closes #1768
2022-04-05 09:53:36 +10:00
RumovZ
84e0acf9b7
Template order ( #1769 )
...
* Improve new card sort order tooltip
* Use card type instead of template in deck config
* Card type ordinal → card type number
2022-04-04 09:50:36 +10:00
Damien Elmes
e4f46463f2
Expose video driver settings on Qt6, sans ANGLE
2022-04-03 19:57:58 +10:00
Henrik Giesel
0db921dd39
Speed up editor by lazily loading CodeMirror ( #1766 )
2022-04-03 19:00:20 +10:00
Damien Elmes
04f508d664
Add link to Wayland issues page
2022-04-03 16:50:00 +10:00
Damien Elmes
4673fb5fe4
Colpkg import now marks collection as modified
...
Addresses a corner case where a backup is imported into an
unchanged collection, resulting in the sync indicator showing a full
sync is required, which doesn't go away as syncing thinks no changes
are required.
An alternative way to solve this would be to reverse the order of checks
in the syncing code. It would have the advantage of retaining the
modification time of the backup, but any action like clicking on a deck
would cause it to be updated anyway, so I'm not sure that buys us much.
2022-04-03 16:07:39 +10:00
Damien Elmes
9ed12bb9d0
Call browser show hook prior to initiating search
...
https://github.com/ankipalace/advanced-browser/issues/141
2022-04-02 21:42:49 +10:00
Damien Elmes
d90608198f
Don't rely on frontend to cap time taken in v3
2022-04-02 20:06:23 +10:00
Henrik Giesel
7bfd7245e0
Fix HighlightColorButton setting last text color ( #1765 )
2022-04-02 14:58:32 +10:00
RumovZ
fce797cb47
search_notes_cards_into_table →
...
search_cards_of_notes_into_table
2022-03-31 18:23:18 +02:00
RumovZ
4aa5ee5fb4
Ignore ascii case when filtering system tags
2022-03-31 18:20:11 +02:00
Henrik Giesel
67c1f7368e
Set caret inside chemical expression in Mathjax ( #1763 )
2022-03-31 23:39:49 +10:00
RumovZ
fbc21da913
ExportData → ExchangeData
2022-03-31 12:53:36 +02:00
RumovZ
71670a065d
Use schedule_as_new() to reset cards
2022-03-31 10:39:52 +02:00
RumovZ
bd14ccf2a3
Merge remote-tracking branch 'upstream/HEAD' into apkg
2022-03-31 10:28:16 +02:00
RumovZ
97c9dd4c18
Use temporary tables for gathering
...
export_apkg() now accepts a search instead of a deck id. Decks are
gathered according to the matched notes' cards.
2022-03-31 10:24:09 +02:00
Damien Elmes
6718e67883
Update translations
2022-03-31 14:48:08 +10:00
Damien Elmes
6df63f8643
Tweak cloze deletion labels
2022-03-31 14:47:51 +10:00
RumovZ
dc36a08f3a
Also restore/keep position of new cards ( #1760 )
...
* Also restore/keep position of new cards
* Refactor Card::last_position()
2022-03-31 14:31:13 +10:00
Damien Elmes
9d64afc7bc
Handle gaps in media in colpkg imports
...
Our old Python code was also skipping numbers when it encountered a
directory, leading to a colpkg that couldn't be imported with our new
code.
2022-03-31 13:32:38 +10:00
Henrik Giesel
5b1fcccf33
Add extra button group for cloze commands ( #1756 )
...
* First attempt at adding a directory for icons under //ts
* Fix image import
* Fix import order
* Add cloze button group
* Fix issue with toolbar.toolbar dynamically slottable
* Change tooltip for repeating cloze deletion
* Fix repeat cloze button not working on macOS (dae)
2022-03-31 13:30:00 +10:00
Henrik Giesel
7f737b60c6
Fix infinite update loop in editor with invalid input HTML ( #1761 )
...
* Use async function in PlainTextInput
* Clean up PlainTextInput
* Refactor logic from {Rich,Plain}TextInput into own files
* Remove prohibited tags on content.subscribe which also parses the html
2022-03-31 11:17:13 +10:00
RumovZ
d1dd0586bd
Only store file folder once in MediaIter
2022-03-30 21:37:02 +02:00
RumovZ
a46026f283
Accept func to produce MediaIter in export_apkg()
2022-03-30 21:20:34 +02:00
RumovZ
112ad118ab
Reuse filename_is_safe/check_filename_safe()
2022-03-30 19:33:53 +02:00
RumovZ
3c17d37d26
Revert changes to rslib/src/tags/
2022-03-30 11:23:30 +02:00
Damien Elmes
f0dc6e103f
Fix "repeat cloze" shortcut regression
...
Closes #1748 again.
2022-03-30 14:52:16 +10:00
Damien Elmes
39c3a8e104
Add Daniel to about screen
...
As always, anyone who has contributed and is missing, please let me
know, or send through a PR.
2022-03-30 13:49:07 +10:00
RumovZ
aab518d4d9
Merge remote-tracking branch 'upstream/main' into apkg
2022-03-29 16:52:41 +02:00