Damien Elmes
da90705346
Re-expose legacy RMSE calculations
...
Closes #4143
2025-07-01 18:22:55 +07:00
Damien Elmes
9e1690774c
Update svelte/vite/esbuild for CWEs
2025-07-01 18:01:48 +07:00
Damien Elmes
ee5e8c9230
Update to latest node LTS; add update helper
2025-07-01 17:06:27 +07:00
llama
b6c70f7b75
Add search keyword to strip clozes beforehand ( #4145 )
...
* add strip_clozes fn
* add test
* replace without_combining with process_text
* update write_unqualified
* update write_regex
* add `sc:...` search option
* add test
* strip clozes before stripping combining characters
find_notes_sc time: [1.0398 s 1.0405 s 1.0412 s]
change: [-6.1276% -6.0323% -5.9401%] (p = 0.00 < 0.05)
Performance has improved.
* add bitflags crate
* add and use ProcessTextFlags
* update sqlwriter.rs to use bitflags
2025-07-01 16:35:21 +07:00
Lukas Sommer
944e453419
Comments for translators ( #4137 )
...
* Update deck-config.ftl
* Update ftl/core/deck-config.ftl
Co-authored-by: Luc Mcgrady <lucmcgrady@gmail.com>
---------
Co-authored-by: Luc Mcgrady <lucmcgrady@gmail.com>
2025-07-01 16:10:34 +07:00
llama
14eb297bbf
add "copy debug info" button to show_exception
's dialog ( #4146 )
2025-07-01 15:35:50 +07:00
Damien Elmes
a07370f565
Add a trademark symbol to the readme and about screens
2025-07-01 11:40:03 +07:00
Damien Elmes
bf36e10519
Hide CMRR
...
https://forums.ankiweb.net/t/anki-25-06-beta/62271/156
2025-07-01 11:20:28 +07:00
Damien Elmes
b22b3310d6
Revert "Feat/Cmrr target selector ( #4116 )"
...
This reverts commit ad0dbb563a
.
https://forums.ankiweb.net/t/anki-25-06-beta/62271/156
2025-07-01 11:20:20 +07:00
Matt Brubeck
7720c7de1a
Only run empty_filtered_deck
on filtered decks. ( #4139 )
...
Fixes #4138 .
2025-06-30 16:47:14 +07:00
Damien Elmes
0be87b887e
Add category type
...
Unsure if this helps; the app is not even showing in the screen time
list for me at the moment.
https://forums.ankiweb.net/t/correct-apple-screen-time-category-macos-ios/62962
2025-06-30 14:28:37 +07:00
Damien Elmes
bce3cabf9b
Friendlier error when glibc too old, and properly declare min macOS
2025-06-30 14:20:42 +07:00
Damien Elmes
ad34b76fa9
Do anki_release upload last
2025-06-29 22:30:20 +07:00
Damien Elmes
e0727b1bc8
Bump version
2025-06-29 22:17:01 +07:00
Damien Elmes
18cac8bbe5
Update translations
2025-06-29 22:17:01 +07:00
Damien Elmes
045e571edf
Support hidden local Claude config
2025-06-29 22:16:59 +07:00
Damien Elmes
469fd763c7
Fix taskbar pinning on Windows
...
Closes #4107
2025-06-29 20:53:43 +07:00
Damien Elmes
6eb1db0f5d
Switch to the windows crate
2025-06-29 16:49:20 +07:00
Damien Elmes
349a696f93
Fix transient console pop-ups on Windows
2025-06-29 16:46:45 +07:00
Damien Elmes
66f34da7ef
Fix lint, and ensure Rust checks get re-run on launcher change
2025-06-29 15:54:31 +07:00
Damien Elmes
3d7dc32777
Add a 'revert to previous version' action + more
...
- Show current version
- Ensure uv builds switch to python 3.13
2025-06-29 15:51:15 +07:00
llama
58dfb9cdd3
fix deck options page being scrollable while simulator modal is open ( #4133 )
2025-06-29 14:42:52 +07:00
GithubAnon0000
185fdebb63
Followup to #4122 (make text selectable) ( #4132 )
2025-06-29 14:42:19 +07:00
Luc Mcgrady
0739ea58f8
Add disclaimer to workload tooltip ( #4131 )
2025-06-29 14:41:35 +07:00
Damien Elmes
5c23ac5a86
Revert "Fix/unapplied scss ( #4103 )" ( #4136 )
...
This reverts commit ae6cf98f40
.
2025-06-29 14:40:56 +07:00
Abdo
f94d05bcbe
Switch to Ruff ( #4119 )
...
* Add check:ruff build action
* Add fix:ruff action
* Add Ruff config
Mostly generated by Cursor
* Handle rest of lints
* Fix formatting
* Replace black and isort with ruff-format
* Run ruff-format
* Fix lint errors
* Remove pylint disables
* Remove .pylintrc
* Update docs
* Fix check:format not just checking
* Fix isort rule being ignored
* Sort imports
* Ensure ./ninja format also handles import sorting
* Remove unused isort cfg
* Enable unsafe fixes in fix:ruff, and enable unused var warning
* Re-run on config change; enable unnecessary ARG ignores
* Use all pycodestyle errors, and add some more commented-out ones
Latter logged on https://github.com/ankitects/anki/issues/4135
2025-06-29 14:38:35 +07:00
Damien Elmes
b8963b463e
Fix Windows CI and minor display tweak
2025-06-29 13:54:17 +07:00
Damien Elmes
bdb3c714dc
Put Python install inside uv root as well
2025-06-29 13:42:15 +07:00
Damien Elmes
731e7d5b5c
Add uninstall support to launcher
2025-06-29 13:32:06 +07:00
Damien Elmes
f89ab00236
Update to Rust 1.88
...
We'll need to handle https://github.com/ankitects/anki/issues/4134 before
we get access to let chains.
2025-06-29 11:50:49 +07:00
Damien Elmes
b872852afe
Store uv cache inside AnkiProgramFiles, and allow disabling
2025-06-29 11:50:49 +07:00
Damien Elmes
aa8dfe1cf4
Fix icon/menu entries on macOS after update
...
We need to exec() Python from a GUI context so that the app name and
icon are inherited from our launcher bundle. And we need to munge
sys.argv[0] prior to main window instantiation so that we don't get
app menu entries like "Hide -c". We do that in the launcher instead
of __init__.py so that older versions display correctly too.
2025-06-29 11:50:49 +07:00
Damien Elmes
f5073b402a
Inject Upgrade/Downgrade menu item and audio support into older versions
2025-06-29 11:50:49 +07:00
GithubAnon0000
a587343f29
FIX: Margin between icon was selectable but shouldn't be ( #4122 )
2025-06-28 21:47:29 +03:00
GithubAnon0000
cfeb71724d
CHANGE right-click in the editor to show option to open folder in linux ( #4125 )
...
* CHANGE right-click in the editor to show option to open folder in linux
* FIX checks
* Use heuristics
* ./ninja format
* Use fallback from main instead of xdg-open
2025-06-28 21:33:17 +03:00
Damien Elmes
aae970bed9
Bump version
2025-06-27 21:08:56 +07:00
Damien Elmes
63dcfde005
Update translations
2025-06-27 21:08:56 +07:00
Jarrett Ye
fe5dfe9ec2
Fix/update card.decay in card_state_updater ( #4127 )
2025-06-27 16:50:29 +07:00
David Allison
5f73725a64
Remove newline: 'Restore to default confirmation' ( #4128 )
2025-06-27 16:50:06 +07:00
Luc Mcgrady
ad0dbb563a
Feat/Cmrr target selector ( #4116 )
...
* backend
* Add: Frontend
* us
* Added: Loss aversion
* change proto format
* Added: Loss aversion
* Added: Future retention targets
* update default fail cost multiplier
* Future Retention -> Post Abandon Memorized
* superfluous as const
* Fix: Wrong default
* Fix: Wrong import order
2025-06-27 16:44:19 +07:00
Luc Mcgrady
e505ca032b
Fix/Add check_output_timestamps to PythonEnvironment ( #4113 )
...
* Fix/explicitly set restat
* Revert "Fix/explicitly set restat"
This reverts commit ace2e5ef6a
.
* add check_output_timestamps to python.rs
2025-06-27 16:41:50 +07:00
Abdo
fdce765861
Make PYTHONPYCACHEPREFIX point to an absolute path ( #4111 )
2025-06-27 16:36:27 +07:00
Luc Mcgrady
ae6cf98f40
Fix/unapplied scss ( #4103 )
...
* deck options + change notetype
* graphs
* image occlusion
* congrats
* imports
* ./check
* style
* $lib
* delete unused index.ts files
2025-06-27 16:28:35 +07:00
Damien Elmes
bedab0a54b
Drop psutil from wheel requirements
...
We're not using it ourselves, and usage appears isolated to a couple of
add-ons (notably ankirestart)
2025-06-27 16:10:12 +07:00
Damien Elmes
de7de82f76
Refactor launcher + various tweaks
...
- Launcher can now be accessed via Tools>Upgrade/Downgrade
- Anki closes automatically on update
- When launcher not available, show update link like in the past
- It appears that access to the modern console host requires an app
to be built with the windows console subsystem, so we introduce an
extra anki-console.exe binary to relaunch ourselves with. Solves
https://forums.ankiweb.net/t/new-online-installer-launcher/62745/50
- Windows now requires you to close the terminal like on a Mac,
as I couldn't figure out how to have it automatically close. Suggestions
welcome!
- Reduce the amount of duplicate/near-duplicate code in the various
platform files, and improve readability
- Add a helper to install the current code into the launcher env
- Fix cargo test failing to build on ARM64 Windows
2025-06-27 16:10:12 +07:00
Damien Elmes
73edf23954
Drop Pauker and SuperMemo importers from legacy importer
...
The legacy importer has only been kept around to support some add-ons,
and these are so infrequently used that they're better off shifted
to add-ons (even they even still work)
2025-06-27 16:10:12 +07:00
Damien Elmes
9b287dc51a
Python dependency/wheel tweaks
...
- Use --locked to assert that the lockfile won't change, so we need
to explicitly 'uv lock' when making changes. Still trying to get to
the bottom of why the lockfile sometimes has editable entries, which
break things when switching between platforms.
- Exclude __pycache__ from wheels
- Move the typing stubs to our dev deps
(https://github.com/ankitects/anki/pull/4074#pullrequestreview-2948088436 )
2025-06-27 16:10:12 +07:00
Damien Elmes
7edd9221ac
Avoid Qt's automatic About labeling
...
It gets confused by our launcher process, and provides no way to
alter the default assigned text while keeping the About role on a Mac.
2025-06-27 16:10:12 +07:00
Luc Mcgrady
630bdd3189
Fix/Optimize button alignment ( #4117 )
...
* Fix/Button alignment
* add hr
2025-06-25 16:44:47 +03:00
Jarrett Ye
992fb054bd
Refactor FSRS data clearing into Card::clear_fsrs_data ( #4123 )
...
Extracted repeated logic for clearing FSRS-related fields into a new Card::clear_fsrs_data() method. Updated set_deck and FSRS disabling code paths to use this method for improved code reuse and maintainability.
2025-06-25 16:40:51 +03:00