Abdo
bffac38cf9
Fix maybe_coalesce_note_undo_entry() ( #2992 )
...
* Fix maybe_coalesce_note_undo_entry()
* Use .count()
* Only check .first()
* Explicitly match on [note change, collection modification] (dae)
2024-02-11 16:04:10 +10:00
Abdo
ab7c12bf48
Fix code completion in Qt forms ( #2993 )
2024-02-08 15:24:12 +10:00
Abdo
d11a655e9b
Maintain original IO cloze order in editing mode ( #2987 )
...
* Maintain original IO cloze order in editing mode
* Fix ordinal propery name
2024-02-07 13:42:47 +10:00
Abdo
c828c8d1e6
Do not reset original_due when card stays in filtered deck ( #2988 )
2024-02-07 13:27:54 +10:00
Lucas Scharenbroch
34e3df14d4
Fix corner rounding of alignment buttons in editor ( #2989 )
...
* Fix corner rounding of alignment buttons in editor
* Fix formatting
* Fix cascading button-rounding issues
2024-02-07 13:11:14 +10:00
Abdo
6ca5a8db77
Change default font in code editors ( #2985 )
...
* Change default font in code editors
* Fall back to system font
2024-02-02 17:03:29 +10:00
Kai Knoblich
739d154ae1
Honor NINJA_STATUS if already set ( #2984 )
...
* Honor NINJA_STATUS if already set
Allow build environments at downstream to use their own configured
NINJA_STATUS if set.
* Update CONTRIBUTORS
2024-02-01 14:56:14 +10:00
Kai Knoblich
bd703a8b6d
Add support for offline builds ( #2963 )
...
* CONTRIBUTORS: Add myself to the contributors list
* Add support for offline builds
Downloading files during build time is a non-starter for FreeBSD ports
(and presumably for other *BSD ports and some Linux distros as well).
In order to still be able to build Anki successfully, two new
environment variables have been added that can be set accordingly:
* NO_VENV: If set, the Python system environment is used instead of
a venv. This is necessary if there are no usable Python wheels for a
platform, e.g. PyQt6.
* OFFLINE_BUILD: If set, the git repository synchronization (translation
files, build hash, etc.) is skipped.
To successfully build Anki offline, following conditions must be met:
1. All required dependencies (node, Python, rust, yarn, etc.) must be
present in the build environment.
2. The offline repositories for the translation files must be
copied/linked to ftl/qt-repo and ftl/core-repo.
3. The Python pseudo venv needs to be setup:
$ mkdir out/pyenv/bin
$ ln -s /path/to/python out/pyenv/bin/python
$ ln -s /path/to/protoc-gen-mypy out/pyenv/bin/protoc-gen-mypy
4. Create the offline cache for yarn and use its own environment
variable YARN_CACHE_FOLDER to it:
YARN_CACHE_FOLDER=/path/to/the/yarn/cache
$ /path/to/yarn install --ignore-scripts
5. Build Anki:
$ /path/to/cargo build --package runner --release --verbose --verbose
$ OFFLINE_BUILD=1 \
NO_VENV=1 \
${WRKSRC}/out/rust/release/runner build wheels
2024-01-31 09:13:46 +10:00
Jarrett Ye
f76763b10e
update FSRS to v0.2.0 ( #2977 )
...
* update FSRS to v0.2.0
* update comments
* ./ninja fix:minilints
* 1000 -> 400 in translation (dae)
2024-01-30 16:27:12 +10:00
Mani
09d87f171e
add select all tool ( #2981 )
...
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
2024-01-30 15:43:15 +10:00
Damien Elmes
7ad985f0cf
Fix Ukranian language name
...
https://github.com/ankitects/anki/pull/2979
2024-01-30 15:11:24 +10:00
RumovZ
b8aa550353
Increase parent limits in custom study when 'limits start from top' is enabled ( #2971 )
...
Closes #2965 .
2024-01-29 13:15:44 +10:00
RumovZ
4274fbf04c
Fix notetype conflict resolution ( #2967 )
...
* Fix undoing notetype conflict resolution
* Fix field/template mapping after notetype conflict resolution
2024-01-29 13:00:57 +10:00
Pedro Lameiras
30611e8c88
Make image occlusion's option buttons tabbable ( #2966 )
...
* Make image occlusion's option buttons tabbable
* Added myself to contributors
* Removed two-way binding
2024-01-29 12:49:28 +10:00
Damien Elmes
ffb51986a6
Tweak 'optimize all' hint
...
https://forums.ankiweb.net/t/move-optimize-all-presets-next-to-optimize/39684/6
2024-01-29 09:35:02 +10:00
Damien Elmes
a1fd74e187
Update translations
2024-01-25 13:08:23 +10:00
Damien Elmes
41db648a36
Clarify a translation string
2024-01-25 13:08:11 +10:00
Abdo
0f72287b7d
Fix Image field not hidden until user selects an image ( #2960 )
2024-01-23 14:24:12 +10:00
Abdo
f4ab4ec7aa
Fix flicker when hovering over deck list ( #2958 )
...
* Remove backdrop-filter from deck browser
* Remove transition
2024-01-23 14:20:32 +10:00
Harvey R
788f16e8f2
Americanize "synchronisation" ( #2935 )
...
* Americanize "synchronisation"
* Update CONTRIBUTORS
* Add name to CONTRIBUTORS
* Americanize "synchronisation"
* Revert change
* Revert change to key name
2024-01-23 14:06:52 +10:00
Damien Elmes
94fd8b817d
Update shlex for security issue
2024-01-23 14:05:19 +10:00
Abdo
09b5ed719e
Add by creation date review sort order ( #2957 )
...
* Add by creation date review sort order
* Order by template after nid in ReverseAdded of filtered decks too
2024-01-21 20:29:19 +10:00
user1823
78b76152c4
More precise percent of days studied ( #2889 )
...
* More precise percent of days studied
* Use localizedNumber & Format
* Update reviews.ts
* Update reviews.ts
* Update reviews.ts
2024-01-21 20:25:50 +10:00
Viktor Ricci
d19a535309
Don't urllib.unquote when using requests ( #2943 )
2024-01-19 16:09:13 +10:00
Abdo
8b7fbc0b80
Fix MathJax editor not opening when navigating into blocks ( #2953 )
2024-01-19 16:06:27 +10:00
Abdo
c183b758bd
Default to 'Bury Card' action consistently ( #2950 )
2024-01-19 15:49:16 +10:00
Abdo
0e7e9b8903
Fix title of Auto Advance section ( #2949 )
2024-01-19 15:48:30 +10:00
qxo
91ce971799
fix: fix windows build issue ( #2947 )
2024-01-19 15:48:06 +10:00
mjuhanne
9a72411516
Fix crash in Reviewer ( #2945 )
2024-01-19 15:36:11 +10:00
Damien Elmes
74c1141187
Ignore congrats fetch errors
...
The congrats page fetches data once a minute, and onRefreshTimer()
reloads the page once every 10 minutes. If a data fetch is in flight
when the page reload happens, it can cause a 'failed to fetch' error
to occur.
Closes #2895
2024-01-19 15:28:54 +10:00
Damien Elmes
c6af3f0020
Update Python
...
Closes #2923
2024-01-19 15:11:17 +10:00
Damien Elmes
007cfb2c9c
Update translations
2024-01-18 11:00:01 +10:00
Damien Elmes
aaffcf2472
Update Rust deps
2024-01-18 11:00:01 +10:00
Aristotelis
fd37dd935c
Make tags and tag suggestions able to be styled by add-ons ( #2941 )
...
* Expose tag name to add-ons via data attribute
* Expose autocomplete items to add-ons as data attributes
* Use common data-addon* prefix for attributes
2024-01-18 10:09:06 +10:00
Damien Elmes
d744e1ede7
Apply workaround for wasyncore error
2024-01-16 16:01:40 +10:00
Damien Elmes
37caa2d9fd
Update translations
2024-01-12 15:18:29 +10:00
Damien Elmes
edc30b866d
Update for jinja2 security warning
2024-01-12 15:17:26 +10:00
Damien Elmes
fd5100ae88
Fix error after notetype merge + downgrade
2024-01-12 15:16:27 +10:00
Damien Elmes
e2e4cfaabd
Shift the default network timeout back to 60 seconds
...
There have been a number of reports from people that were having trouble
with 30 seconds
2024-01-11 14:31:30 +10:00
Damien Elmes
b2345e9fe4
Include details on what's missing when a NotFound error is triggered
...
Makes debugging issues like #2939 easier
2024-01-11 14:20:10 +10:00
Damien Elmes
5b6a81cbf2
Fix importing of Mnemosyne due dates ( #2936 )
2024-01-11 14:11:17 +10:00
RumovZ
4920c13526
Fix note id mix-up when resolving notetype conflicts ( #2940 )
...
Closes #2939 .
2024-01-11 13:50:03 +10:00
Damien Elmes
eb45f8a76c
Fix update suppression
...
The check got lost in the recent refactor.
https://forums.ankiweb.net/t/bug-report-anki-23-10-1-linux-flatpak-ignore-this-update-does-not-work/39408
2024-01-09 14:12:26 +10:00
Damien Elmes
6709e022fc
Use card.reps - 1 when calculating fuzz ( #2933 )
...
https://github.com/open-spaced-repetition/fsrs4anki-helper/issues/343#issuecomment-1879584562
https://forums.ankiweb.net/t/reschedule-is-inconsistent-with-normal-schedule-in-fuzz/39363
2024-01-09 12:26:46 +10:00
Abdo
082c6bd7bd
Fix undo handling of group and some other IO tools ( #2931 )
...
* Fix undo handling of group and some other IO tools
* Emit change signal inside onObjectModified
* Fix group lost after moving group then undoing
* Skip undo entry if canvas has not changed
The onObjectModified() call I added in a previous commit to deleteDuplicateTools results in a duplicate undo entry for the delete tool. Checking for duplicate entries seems simpler than having to think about where onObjectModified() should be called exactly
* Fix extra undo entry added after ungroup
2024-01-09 11:19:46 +10:00
Abdo
441687866f
Flip indent/outdent buttons for RTL ( #2930 )
2024-01-09 11:09:53 +10:00
Damien Elmes
ee05094e57
Check review count up front
...
https://forums.ankiweb.net/t/inconsistent-number-of-reviews-when-clicking-optimize/39275/7
2024-01-08 14:05:09 +10:00
Damien Elmes
6eda192390
Clear out old FSRS progress as new operation starts
...
https://forums.ankiweb.net/t/inconsistent-number-of-reviews-when-clicking-optimize/39275/6
2024-01-08 13:23:25 +10:00
Damien Elmes
f1009d8d44
Update to Rust 1.75
2024-01-05 14:28:23 +10:00
Abdo
c18ad5ed85
Ignore some extra chars in no-combining search ( #2929 )
...
* Ignore some extra chars in no-combining search
* Construct new string
* Update rslib/src/text.rs (dae)
2024-01-05 14:22:52 +10:00