a.r
d9969a9f4f
lazy_static → once_cell → stabilized versions ( #3447 )
...
* Anki: Replace lazy_static with once_cell
Unify to once_cell, lazy_static's replacement. The latter in unmaintained.
* Anki: Replace once_cell with stabilized LazyCell / LazyLock as far as possible
Since 1.80: https://github.com/rust-lang/rust/issues/109736 and https://github.com/rust-lang/rust/pull/98165
Non-Thread-Safe Lazy → std::cell::LazyCell https://doc.rust-lang.org/nightly/std/cell/struct.LazyCell.html
Thread-safe SyncLazy → std::sync::LazyLock https://doc.rust-lang.org/nightly/std/sync/struct.LazyLock.html
The compiler accepted LazyCell only in minilints.
The final use in rslib/src/log.rs couldn't be replaced since get_or_try_init has not yet been standardized: https://github.com/rust-lang/rust/issues/109737
* Declare correct MSRV (dae)
Some of our deps require newer Rust versions, so this was misleading.
Updating the MSRV also allows us to use .inspect() on Option now
2024-09-30 23:35:06 +10:00
Damien Elmes
201f13946d
Update translations
2024-09-27 19:38:16 +10:00
Damien Elmes
7fb261c90b
Backup warning needs a new string
...
We need a new key, as we've introduced a variable. Missed this in
the PR review.
2024-09-27 19:36:58 +10:00
Jarrett Ye
79592730ee
Feat/forgetting curve in card info ( #3437 )
...
* add elapsed time into revlog-table
* add stability into revlog-table
* add Graph of forgetting curve
* fix eslint
* add radio buttons of timeRange
* add revlog filter && return [] for new card
* format
* translatable string & disable if using SM-2
* elapsedTime should skip manual or filtered review
* add HoverColumns
* fix eslint
* add stability to tooltip & use timeSpan
* reuse translatable strings
* distinguish daysSinceFirstLearn and elapsedDaysSinceLastReview
* Date x-axis & toLocaleString
* Temporarily hide elapsed/stability columns (dae)
https://github.com/ankitects/anki/pull/3437#issuecomment-2378851900
2024-09-27 19:32:40 +10:00
Taylor Obyen
df127b1af7
Add revert to backup option to file menu ( #3434 )
...
* Add revert to backup context item
* Fix contributors a new way
* Change relative time to filename
* Update ftl/qt/qt-accel.ftl (dae)
2024-09-25 20:21:59 +10:00
Damien Elmes
a437003d1d
Update translations
2024-09-22 19:01:20 +10:00
Jarrett Ye
3912db30bb
Feat/true retention stats ( #3425 )
...
* Feat/true retention stats
* ./ninja fix:minilints
* use translatable strings & update style
* remove card couts & add more translatable strings
* Update statistics.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* add Estimated total knowledge (cards)
---------
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
2024-09-22 19:00:27 +10:00
Expertium
d29ef07637
Recall rate -> retention rate ( #3433 )
...
Let's keep the terminology consistent
2024-09-22 18:24:52 +10:00
Damien Elmes
722b9b53f4
Update translations
2024-09-20 22:04:52 +10:00
user1823
02d2566998
Add an option to show image from editor in folder ( #3412 )
...
* Add "Show in folder" option to images in editor
Credits: @abdnh's Reveal in File Manager add-on (https://github.com/abdnh/anki-misc/tree/master/reveal_in_file_manager )
* Refactor
2024-09-20 21:38:44 +10:00
sorata
cb3a7579de
Update tooltip text ( #3418 )
...
* Update deck-config.ftl
* Update deck-config.ftl
* remove the warning
2024-09-20 21:13:35 +10:00
Damien Elmes
edfbbc7a62
Update translations
2024-09-11 02:54:00 +07:00
Damien Elmes
ba18a2c6d9
Update translations
2024-09-04 12:22:53 +07:00
Jarrett Ye
b7cb0c0d00
graduate card when user presses again or hard and has 0 learning steps ( #3367 )
...
* graduate card when user press hard and has 0 learning steps
* fix error: useless conversion to the same type
* do the same thing to again
* fix expected `Option<u32>`, found integer
* ./ninja format
* Update to FSRS-rs v1.2.0
* if else -> match
* Weight length check has been moved into FSRS (dae)
* Don't mention the number of FSRS parameters (dae)
It has changed, and may change again.
2024-08-29 22:20:11 +07:00
Arthur Milchior
ce2f4136ea
Empty cards become undoable ( #3386 )
...
* Empty cards is undoable
If there was a reason for this operation not to be undoable, I can't easily guess it. My main hyposhesis was that the number of deleted card may be too big. But I realized that deleting a deck is undoable and may delete as many note.
As you may know, I realized that only the undoable operations triggered notification in AnkiDroid that we may have to update the UI. And while I just wanted to trigger more notifications, some reviewers thought it would be nicer if the operation were returning a OpChanges. So here it's done. If you would please consider merging it.
I decided to introduce a new string because the closest strings I could find currently are "Empty cards..." and the trailing commas don't seem nice in "undo". And the title, which we may not be able to reuse in all language
* Don't count cards that have already been removed (dae)
2024-08-29 20:06:41 +07:00
Damien Elmes
e92aaa4478
'card type, then order gathered'
...
https://forums.ankiweb.net/t/rename-card-type-to-card-type-then-order-gathered/48046
2024-08-19 13:24:52 +07:00
bpnguyen107
c99b50c82f
Right click context menu on images not useful ( #3362 )
...
* right click and copy on image works
* renamed helper fn
* separated functionality of copy and copy image
* Update CONTRIBUTORS
* snake case
* Update CONTRIBUTORS
2024-08-17 13:18:07 +07:00
Abdo
520564da11
Integrate AnkiHub Sign-in ( #3232 )
...
* Add AnkiHub section to preferences screen
* Add short intro for AnkiWeb and AnkiHub to syncing section
* Add AnkiHub login screen
* Implement login methods in backend
* Set minimum dialog width
* Add missing colon
* Respect the ANKIHUB_APP_URL env var
This is used by the add-on.
* Simplify login error reporting
* Fix from_prefs_screen not passed to subcall
* Add missing ankihub_pb2 import
* Install AnkiHub add-on after sign-in
* Avoid .exec()
* Update ftl/core/sync.ftl
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
* Split translation string
* Support login by username/email
* Fix entered username/email not being passed back to on_done
* Remove unused import
* Move to 'Third-party services' section
* Tweak login dialog's heading
* Remove 'third-party' from intro text
* Tweak copy
* Prefix profile keys
* Tweak strings
* Remove description from login dialog
* Remove signup links
* Clear credentials in ankihub_logout()
* Call .adjustSize()
* Title Case
* Add padding to third-party services, and fix tab order from other PR
2024-08-17 10:58:23 +07:00
bpnguyen107
acf3134e04
Rename “Change Deck” to "Select Deck" ( #3266 ) ( #3356 )
...
* added Select Deck string
* updated CONTRIBUTORS
* update email
2024-08-15 17:30:05 +07:00
Voczi
1065941767
Add option for toggling update checks ( #3346 )
2024-08-10 17:46:49 +07:00
Damien Elmes
06d5256f4e
Update translations
2024-08-10 16:56:30 +07:00
Damien Elmes
b27b42e6e5
Revert "Updated tooltips ( #3326 )"
...
This reverts commit c7762d4ec4
.
https://github.com/ankitects/anki/pull/3331#issuecomment-2276317668
2024-08-10 16:56:30 +07:00
Damien Elmes
3b0abe7571
Revert "update review limit's name ( #3331 )"
...
This reverts commit e0de13e240
.
https://github.com/ankitects/anki/pull/3331#issuecomment-2276317668
2024-08-10 16:56:30 +07:00
sorata
af8fdd8b87
reviews —> review cards ( #3347 )
2024-08-10 16:53:25 +07:00
Damien Elmes
872ecf481a
Update translations
2024-08-08 18:37:33 +07:00
Damien Elmes
afb0790703
Revert "Rename review limit ( #3320 )"
...
This reverts commit f0933cf06c
.
https://forums.ankiweb.net/t/rename-review-limit/47097/50
2024-08-08 18:37:08 +07:00
sorata
e0de13e240
update review limit's name ( #3331 )
...
* update review limit's name
* updated tooltip for clarity
this reads more well now, given that new limit isn't max limit
* re-add maximum
* typo
2024-08-05 20:13:53 +07:00
Expertium
2c30081e3e
SM2 -> SM-2.ftl ( #3327 )
...
Relevant: https://github.com/ankitects/anki-manual/pull/218
2024-07-26 21:24:29 +07:00
sorata
c7762d4ec4
Updated tooltips ( #3326 )
...
* Update deck-config.ftl
* Update deck-config.ftl
* Update deck-config.ftl
* Update deck-config.ftl
* Update ftl/core/deck-config.ftl
2024-07-26 19:30:35 +07:00
Damien Elmes
656309f385
Update translations
2024-07-26 18:21:01 +07:00
Expertium
f0c211389f
Ignore reviews before -> Ignore cards reviewed before.ftl ( #3314 )
...
* Ignore review before -> Ignore cards reviewed before.ftl
* Revert the change.ftl
* Update CONTRIBUTORS
2024-07-26 18:19:51 +07:00
sorata
f0933cf06c
Rename review limit ( #3320 )
...
* maximum reviews/day —> maximum cards/day
* New cards ignore maximum limit
2024-07-26 18:05:33 +07:00
sorata
087f957a36
Update Tooltip ( #3288 )
...
* Update Tooltip
updated the tooltips as described here: https://forums.ankiweb.net/t/update-tooltips/46849
* Update CONTRIBUTORS
* Update deck-config.ftl
* fixed punctuation, stylistic incoherence, etc.
* Update deck-config.ftl
https://github.com/open-spaced-repetition/fsrs4anki/pull/667
* Changed string requires new key (dae)
* Minor tweaks to tense for clarity (dae)
https://github.com/ankitects/anki/pull/3288#issuecomment-2223384500
2024-07-21 16:44:37 +07:00
Damien Elmes
486cc8a2ab
Update translations
2024-07-06 19:08:03 +07:00
Damien Elmes
d678e39350
Update translations
2024-06-28 22:02:33 +08:00
Jarrett Ye
6d13221ae5
Remove threshold of compute minimum recommended retention ( #3246 )
...
* remove threshold of compute minimum recommended retention
* update tool tip of compute-optimal-retention
* cargo clippy --fix
* Update FsrsOptionsOuter.svelte
* Remove 'from 0 cards' reference (dae)
2024-06-28 18:26:39 +07:00
Damien Elmes
fe86401f88
"Subjective difficulty"
...
https://forums.ankiweb.net/t/anki-24-06-3-rc/46403/5
2024-06-28 18:52:55 +08:00
Damien Elmes
7bb6b186be
Update translations
2024-06-24 14:49:19 +07:00
Damien Elmes
87eb8e6cd9
Update translations
2024-06-09 09:28:34 +07:00
Damien Elmes
b6166bdb3c
Update translations
2024-06-08 05:17:37 +07:00
Damien Elmes
9b4dd54312
Update translations
2024-06-06 17:24:23 +07:00
Abdo
e0a3768bf3
Mention missing field's name in CardTypeError ( #3225 )
2024-06-06 11:20:19 +01:00
Damien Elmes
bd88d15303
Update translations
2024-06-01 15:56:19 +07:00
Abdo
06f7aa393d
Add a preference to toggle LaTeX generation ( #3218 )
...
* Add a preference to toggle LaTeX generation
* Fix test
* Remove LaTeX security restrictions
* Show existing LaTeX images regardless of preference
* Lift config check out of loop (dae)
* Shift option to review settings; display warning when disabled (dae)
2024-06-01 09:26:28 +01:00
Abdo
d981a6e3c6
Reword sync conflict explanation ( #3221 )
...
* Reword sync conflict explanation
* Preserve old string for now (dae)
2024-06-01 09:05:19 +01:00
Damien Elmes
5d0b0733c2
Add missing full stop
2024-05-22 15:38:07 +07:00
Damien Elmes
f639c3660a
Revert "Revert "Revert "Preserve HTML formatting inside clozes ( #3038 )"""
...
This reverts commit 9c733848b8
.
2024-05-17 11:51:09 +07:00
RumovZ
9418bd9c7d
Improve and unify web dialog styling ( #3167 )
...
* Rework ChangeNotetypePage with existing components
* Use disabled Select instead of LabelButton
* Don't use button for unclickable arrow
* Rework ImportLogPage with existing components
* Improve deck options styling
* Align spacing in ChangeNotetypePage further
* Use StickyContainer on ImportPage
* Format
2024-05-01 17:49:57 +10:00
Jarrett Ye
2c9accf595
update optimal retention and parameters tooltip ( #3148 )
...
* update optimal retention and parameters tooltip
* Revert "update optimal retention and parameters tooltip"
This reverts commit 32fdc5c1c3
.
* update optimal retention and parameters tooltip
* check num of revlogs at first
* use new translation string
* Update deck-config.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* Update deck-config.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* Update deck-config.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* Update ftl/core/deck-config.ftl
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
* fix position of translation string
* Update deck-config.ftl
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
* Update deck-config.ftl
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
* Update deck-config.ftl
---------
Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
2024-04-24 02:38:52 +01:00
Harvey R
839fd7bc8b
Add minimalist mode tooltip ( #3155 )
...
* Add preferences-minimalist-mode-tooltip
* Update preferences.ui
* Update preferences.ui
* Add preferences_minimalist_mode_tooltip
* Update preferences.ui
* Update preferences.ui
2024-04-23 00:32:55 +10:00