Commit Graph

161 Commits

Author SHA1 Message Date
Mani
da7d4dd2fc
Use a ninja variable for Protoc binary (#2345)
* Use a ninja variable for Protoc binary

* fix whitespace
2023-01-23 20:44:47 +10:00
Fabricio Duarte
73eec1d35a
Fix non-Latin text wrapping in deck options dropdown (#2334)
* Fix wrong import

* Fix text centering

* Update CONTRIBUTORS

* Add ellipsis prop to LabelButton; fix buttons

* Revert  6911fbfa6

* Create a prop to toggle ellipsis in LabelButton.svelte

Thanks to @hikaru-y: using "white-space: nowrap;" and "overflow: hidden;" together even when "text-overflow: ellipsis" is not needed can be problematic.

This fixes the text centering on deck options's SaveButton.

* Toggle ellipsis in NotetypeSelector.svelte's leftmost LabelButton

Without it, the button can expand indefinitely depending on the previous Note Type's name.

Co-Authored-By: Hikaru Y. <hkrysg@gmail.com>

Co-authored-by: Hikaru Y. <hkrysg@gmail.com>
2023-01-19 20:59:27 +10:00
TRIAEIOU
9901ae428a
Nested clozes and increased cloze meta data (#2141)
* Nested clozes and increased cloze meta data

* Update contributors

* This reverts commit 3423df73f89f04a606b1bff3542a68a49ca52e9f.

* Update CONTRIBUTORS

* Formating

* Formating

* Formating

* Formating

* Formating

* Formating

* Formating

* Formating

* Code refactor

* Formating

* Formating

* Formating

* Formating and dead code

* Correct test case

* Remove Hint and Close storage of token string

* Update

* Formating

* Formating

* Formating

* Use write! instead of .push_str(&format).

* Formating
2022-12-19 12:03:15 +10:00
Stefan Kangas
5551a37f03
Fix typos (#2210) 2022-11-24 20:18:57 +10:00
Zoom
3ec7e23d7c
Fix Windows dark mode detection: OpenKey can fail (#2068)
* Fix Windows dark mode detection: OpenKey can fail

#1497 introduced reading hardcoded Windows Registry key, which assumes key exists. This is not true on Windows 7. Later addition of `try-except` block missed that OpenKey might fail.

This fix allows launching current version of Anki on Windows 7 when installed with Pip with the modified Python 3.9 installation.

* Update CONTRIBUTORS

CI req: Add myself to the contributor list
2022-09-15 12:04:19 +10:00
Mateus Etto
d7d9f51b68
Add reviewer suspend and bury hooks (#1967)
* Add reviewer suspend and bury hooks

* Empty commit

* Change my name in CONTRIBUTORS
2022-07-18 12:59:56 +10:00
Mateus Etto
fbbd3e678c
Add hook: overview_will_render_bottom (#1946) 2022-07-05 08:28:47 +10:00
Sam Penny
1e8ea0cade
fixed hook description (browser_will_search) (#1937)
* fixed hook description

* added name to CONTRIBUTORS
2022-07-01 10:12:27 +10:00
Mateus Etto
af8ae69837
Fix Study Deck in Sway spawning tiled window instead of floating window (#1935)
* Fix Study Deck in sway spawning tiled window instead of floating window

* Update CONTRIBUTORS

* Fix format error
2022-06-27 17:27:56 +10:00
Bart Louwers
d6b8520d03
Update get_linux_dark_mode to use freedesktop.org standard (#1905)
* update get_linux_dark_mode to use freedesktop.org standard

* Update CONTRIBUTORS

* run formatter

* Update CONTRIBUTORS

* allow for multiple dark mode detection strategies on Linux

* string -> str

* update docstring

* Update CONTRIBUTORS
2022-06-07 09:30:42 +10:00
dobefore
b4cffe2339
rust impl stdError trait (#1890)
* impl stdError trait

* Update CONTRIBUTORS
2022-05-31 17:52:12 +10:00
wisherhxl
5e1b67bcbc
Fix ibus first keystroke goes two (#1886)
Calling `moveCaretToEnd()` when `richText` is empty will cause the first keystroke of
ibus-based input methods with candidates to goes double. For example, if you
type "a" it becomes "aa". This problem exists in many linux distributions.
When `richText` is empty, there is no need to place the caret, just return
as a workaround.
2022-05-26 10:47:55 +10:00
Luka Warren
0835129a00
Fix issue #1114 by scrolling the user to the top of the page (#1810)
* Scroll stats to top when exporting (#1114)

It's obviously a bit of a "hacky" solution, since it's slightly jarring for users to scroll down, click export, then find themselves all the way at the top again, but it's somewhat less confusing than wondering why your PDF is broken :-)

* Clarified comment in stats.py (#1114)

* Apply scrolling fix to new stats screen, not legacy stats (dae)

Also wait for JS callback before saving the PDF, as JS is executed
asynchronously.
2022-04-19 15:39:32 +10:00
Bruce Harris
d7a101827a
Extend maximum answer time... (#1698)
* Extend maximum answer time...

Previously the time allowed to answer a question was capped at 10 minutes.
While this makes sense for fact recall, it limits the utility of Anki when
used for solving problems that can take more time to work through. This
extends the maximum answer time to 2 hours, which seems to be a reasonable
upper limit for solving a math or algorithm question.

* Add warning when max answer time exceeds 10 minutes

* Move warning below input field
2022-03-15 10:06:45 +10:00
Brayan Oliveira
b403f20cae
Fix html_media_regexps (#1710)
* Fix html_media_regexps

* Update CONTRIBUTORS
2022-03-07 11:02:30 +10:00
PatricCunhaforWork
1219dd8f9e
Add silent option for uninstaller (#1690)
* Add /S option for unattended uninstall

* Add email to contributors
2022-03-02 13:55:57 +10:00
sachingooo
5eefb9bea7
Match deck name truncation behavior to prevent long deck names from obscuring stats (#1686)
* Truncate long deck names to match AnkiWeb behavior

Prevent long deck name from obscuring deck stats in main deck browser - match behavior at https://ankiweb.net/decks/ for handling long deck names (truncate name)

* Fix formatting

* Update CONTRIBUTORS

Add myself to contributors list
2022-02-24 10:15:26 +10:00
gnnoh
d29a0beb40
Fix ValueError when exported files have wrong mtime (#1666)
* Fix ValueError when exported files have wrong mtime

Set the `strict_timestamps` argument to `False`, so the media files which have a wrong mtime can be normally added to the zipfile.

* Update CONTRIBUTORS (ankitects#1666)

* Reformat exporting.py
2022-02-16 11:17:20 +10:00
roxgib
533735506c
Add callback and non-blocking option to StudyDeck (#1643)
* Callback for StudyDeck, use with onModelChange

* Add types to callback function

* Rationalise types

* Update CONTRIBUTORS

* Fix type hints

I'm still getting to grips with the type hints!

* Consistency with callback checks

* | not supported for type hints on 3.9
2022-02-07 22:05:59 +10:00
Araceli Yanez
1e59ad6200
Add forget card to review context "more" menu (#1642)
* Add forget card to review context more menu

* Add to contributors
2022-02-07 19:56:31 +10:00
Danish Prakash
2c357a6c94
qt/aqt/webview: handle opening href with target=_blank (#1623)
* qt/aqt/webview: handle opening href with target=_blank

* CONTRIBUTORS: add username as part of first PR
2022-01-24 12:23:01 +10:00
Spooghetti420
80bff9de0d
Update CONTRIBUTORS (#1611) 2022-01-21 21:24:42 +10:00
qxo
492f0a5e32
fix: try catch excepton in get_windows_dark_mode and global cache the check (#1587)
* fix: try catch excepton on get_windows_dark_mode and global cache that check

* add commitor email to CONTRIBUTORS

* remove is_windows_dark_mode cache

* avoid logging the missing key (dae)

The check happens frequently, so this will fill up the user's console if we print it each time.
2022-01-16 14:07:28 +10:00
Vova Selin
2df3698e8c
Minor changes to graphs (#1566)
* Add thousands comma separator for card counts graph

* Fix Answer Buttons graph's tooltip

Changes to the "times pressed" heading

* Shows the percent of that button out of all the presses

* Comma separates total on thousands

* Update CONTRIBUTERS

* Wider spacing for graph tables

* Switch to locale-based stats numbers

* Update CONTRIBUTORS 

Wrong email?

* Fix counts graph on narrow devices

Graph and table now align in a column when the device's screen is narrow. Columns widths are  bounded to not get too wide

* Rename toLocaleXXX functions

* toLocaleNumber -> localizedNumber
 *  toLocaleString -> localizedDate

Also cleans up sketchy "card counts" table formatting

* Localize more numbers

Uses locale-based rounding for more numbers now

* Localize graph axis ticks

* Fix future-due graph tooltip

* avoid div by zero (dae)

Ignoring NaN in localizedNumber() could potentially mask a mistake
in the future - better to explicitly handle the invalid case at the
source instead.
2021-12-29 15:04:15 +10:00
Hikaru Y
fcb21ceed5
Update CONTRIBUTORS (#1527) 2021-12-05 12:33:40 +10:00
zhangsn
7c74f7805b
add new hook: add_cards_did_change_deck (#1420)
* add new hook which will be executed after the user selects a new different deck when adding cards.

* Update qt/aqt/deckchooser.py
2021-10-12 17:55:21 +10:00
Gesa Stupperich
5d093e1142
Mac bazelrc build tip (#1418)
* Copy build tip from Linux to Mac instructions

* Update build tip

* Accept BSD 3 clause license
2021-10-12 16:58:42 +10:00
lolilolicon
19bde7b52d
Update CONTRIBUTORS 2021-09-24 13:46:01 +00:00
Ren Tatsumoto
2ef0ab981d update CONTRIBUTORS 2021-09-05 13:52:54 +03:00
alexgiorev
01498fbc97
Update CONTRIBUTORS 2021-07-20 12:36:18 +03:00
Thore
066a2e8e1d
Add hook to onDelete in AddonsDialog (#1232)
* add hook

* add me to CONTRIBUTORS

* adjust hook to comments

* Update CONTRIBUTORS
2021-06-15 10:01:29 +10:00
hikaru-y
9cea04131e Update CONTRIBUTORS 2021-06-11 23:36:15 +09:00
cherryblossom
92fe68abfe
fix documentation links 2021-06-03 16:51:03 +10:00
qubist-pixel-ux
4b472e06cb
Update CONTRIBUTORS 2021-05-28 16:27:22 +05:30
Matthias M
fcb6d2a228
Add myself to contributors 2021-05-23 01:52:29 +02:00
rgreenblatt
a889496442 Added to CONTRIBUTORS 2021-04-22 00:58:59 -04:00
Shaun Ren
1f3751d191 Fix extraneous whitespaces from strip_html_for_tts 2021-03-25 11:44:42 -04:00
Benjamin K
0452ed0241
Update CONTRIBUTORS 2021-03-07 11:05:41 +01:00
BlueGreenMagick
86cf652609
Update CONTRIBUTORS
Add email so it recognizes the change of email
2021-02-20 23:11:46 +09:00
Maksim Abramchuk
a493ff4bde Add myself to list of contributors 2021-01-26 21:38:42 +00:00
Kerrick Staley
1eac36c5d7 Add comment explaining why sfld column has type integer
The `notes.sfld` column in the `collection.anki2` database has type `integer`, even though it contains text. This is [something SQLite allows](https://dba.stackexchange.com/questions/106364/text-string-stored-in-sqlite-integer-column) and was done to allow integer values to sort numerically. Add a comment explaining this.
2021-01-25 18:39:59 +08:00
wallgrenen
48f753c267
Fix typo in username 2021-01-06 17:15:21 +01:00
wallgrenen
78601d29ba replace broken link 2021-01-06 17:03:39 +01:00
Meredith
bf350236d7
add self as contributor 2020-12-29 11:11:05 -05:00
Guillem Palau-Salvà
d4445ee7d8 Update CONTRIBUTORS
adding myseld to contributors
2020-12-28 21:51:04 +01:00
Ryan Aird
ac78698a1e Add rye761 to contributers list 2020-12-19 20:15:12 -06:00
RumovZ
88d66fc939
Remove space for contributors check... again? 2020-11-18 09:25:35 +01:00
ianki
c2901e4859 Add hooks for filtering media. 2020-11-09 02:12:23 -08:00
k12ish
cc5cb1eab6
Update CONTRIBUTORS 2020-11-08 18:49:12 +00:00
k12ish
da7063f16b Revert "Update CONTRIBUTORS"
This reverts commit 78168c72ec.
2020-11-08 18:38:02 +00:00
k12ish
78168c72ec Update CONTRIBUTORS 2020-11-08 18:34:30 +00:00
cecini
1a6476cf4e
Update CONTRIBUTORS 2020-10-29 23:55:59 +08:00
cecini
2606a8a489 align rslib get_subnode impl with anki pythonapi find_deck_in_tree, fix nestdeck due counts issue 2020-10-29 23:53:26 +08:00
RumovZ
5e949d19fe
Space for author check 2020-10-29 12:30:40 +01:00
RumovZ
a1b7768ee2 Add author to CONTRIBUTORS 2020-10-24 11:02:18 +02:00
Andreas Reis
21f072a666 Add command-line argument to skip addons
Shift doesn't work for me occasionally, for whatever reason. So just add an -s to skip it that way.

(Also, update my github nick)
2020-10-14 01:31:07 +02:00
Damien Elmes
aad6785bab
Merge branch 'master' into opus-audio 2020-10-12 12:32:43 +10:00
Piotr Kubowicz
ed11f8e9d6 Add .opus as an audio extension
Wikimedia Commons has pronunciation recordings with .opus extension.
Anki is able to play such files, but until now adding them required
changing the extension to .ogg or some other supported one.

Also sort the audio extensions list.
2020-10-10 16:28:40 +02:00
johan456789
b8bf4fcd2a
Update CONTRIBUTORS 2020-10-07 20:02:03 +08:00
David Allison
f4e9df8457 Fix "Sign Up" link location
String states "Sign Up", but currently points to the "Sign In" screen: https://ankiweb.net/account/login

aff28a38e5/rslib/ftl/sync.ftl (L38-L42)
2020-10-04 18:14:49 +01:00
Damien Elmes
49071ebf44
Merge branch 'master' into fix-ui-scale 2020-10-03 09:44:04 +10:00
Akshara Balachandra
b2870dcd7f fix: sizing issue with scale UI
Fixes ankitects/help-wanted#18. Height of webview should be the height
of the contents inside it. Previously, scale factors increased fixed
height of the container webview, thus creating empty space (e.g.
at 200% scaling, height of webview was double the height of the inner
HTML page). Now height of webview is always the height of the contained
element.
2020-10-02 18:07:28 -04:00
Colin Hughes
7f84b7678e added *.sh eol=lf to .gitattributes because several files have crlf endings.
I tried to commit those files with lf endings but git doesn't appear to want to commit those changes.
I guess I'd have to make a minor change to the each file and I'm relutant to do that.
2020-10-02 11:55:36 +01:00
abdo
151f854fa2 Support extended drag & drop 2020-09-14 17:07:31 +03:00
Jakub Kaczmarzyk
d808415a9e
Merge branch 'master' into add/dockerfile 2020-09-08 14:59:32 -04:00
Damien Elmes
d4edbd5b11 doc updates
thanks to Robert: https://github.com/ankitects/anki/pull/756

closes #756
2020-09-07 16:03:48 +10:00
Aleksa Sarai
16864e616f
rust: switch to stable compilers
The only dependency which required nightly compilers was pyo3, which
supports stable Rust (1.39.0 and later) since version 0.11.0. Supporting
stable Rust makes it easier to package Anki for distributions. No other
code changes were required.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2020-09-05 19:39:51 +10:00
Jakub Kaczmarzyk
de5feef0a4 fix jakub kaczmarzyk's email 2020-09-02 16:12:52 -04:00
Jakub Kaczmarzyk
6e5519ef80 add Jakub Kaczmarzyk + rm whitespace 2020-09-02 15:58:26 -04:00
Soren Bjornstad
18cae3e757 add myself to CONTRIBUTORS 2020-08-28 16:48:45 -05:00
phwoo
9aa8a12951
minor edit to fix author check
See https://github.com/ankitects/anki/pull/715#issuecomment-666143800
2020-07-30 16:56:24 +10:00
Damien Elmes
f52a25d80a
Merge branch 'master' into add-type-hints-for-qt-models 2020-07-30 16:05:55 +10:00
Fabian Wood
04d09ed2ed updated CONTRIBUTORS 2020-07-30 13:29:05 +10:00
Adam Plaice
d6fb4acd38 Re-add previously supported file extensions for media
(They had been removed in 2ae342592c).
2020-07-29 15:08:33 +02:00
ANH
671b1c76cb
Merge branch 'master' into master 2020-07-25 05:24:45 +03:00
Matt Krump
0c640d13ba Move name in Contributors so contrib.sh recognizes change of email 2020-07-23 22:35:49 -06:00
ANH
ea99c7afac add ANH25 to CONTRIBUTORS 2020-07-24 06:01:04 +03:00
Matt Krump
71581edd42 Add myself to CONTRIBUTORS 2020-07-23 16:55:01 -06:00
Alexander Presnyakov
e092dadc9a Allow to choose note type from list by pressing ctrl + row number 2020-07-12 22:15:58 +03:00
Andreas Reis
6509357bbe Add myself to CONTRIBUTORS 2020-07-05 13:21:42 +02:00
neitrinoweb
1488f89642 upd CONTRIBUTORS 2020-06-25 17:40:07 +03:00
kelciour
39af3d327f Add myself to CONTRIBUTORS 2020-06-20 02:04:34 +03:00
Quentin Nerden
4308ddf4ab
Add kenden to CONTRIBUTORS 2020-06-09 11:56:31 +02:00
Andrew Gaul
e366b86af2 Handle None from QApplication.desktop().screen()
This prevents a crash when Anki is open for multiple days.  Reference:
https://anki.tenderapp.com/discussions/ankidesktop/41879-qt-cannot-create-window-no-screens-available
2020-06-09 09:57:35 +09:00
Thomas B
6294d8d394 Update CONTRIBUTORS
Add name to CONTRIBUTORS
2020-06-07 19:31:17 -04:00
sandersantema
6a48add11f Add to contributors 2020-05-27 12:05:42 +02:00
Michał Bartoszkiewicz
08b49fc0df add myself to CONTRIBUTORS 2020-05-24 15:48:37 +02:00
Henrik Giesel
02a06f110a Add my name to contributors 2020-05-22 20:10:59 +02:00
Zeno Gantner
3336f13bbb
add my name to contributors 2020-04-16 10:23:07 +02:00
Rai
ff2c3f6f79
Add myself to CONTRIBUTORS 2020-04-16 01:20:10 +02:00
Simone Gaiarin
a998c6139f Add contributor 2020-04-15 07:42:28 +02:00
Hk-tang
f4874941c8 Added name to contributors 2020-03-23 13:08:50 -06:00
雷宇辰
eba14828a6
Update CONTRIBUTORS 2020-03-06 19:10:34 +08:00
evandrocoan
ba3a84f89a Merge remote-tracking branch 'danielelmes/master' into fix_windows_build
# Conflicts:
#	CONTRIBUTORS
2020-02-27 00:54:16 -03:00
Alan Du
22ec886e07 Add to contributors 2020-02-26 22:22:40 -05:00
evandrocoan
ebe35c0a15 Added myself into CONTRIBUTORS 2020-02-24 15:05:49 -03:00
BlueGreenMagick
852d339165
Update CONTRIBUTORS 2020-02-19 17:50:18 +09:00
ijgnd
2c3b9ebe43 Update CONTRIBUTORS 2020-02-04 04:16:51 +01:00
ijgnd
1211530baf Update CONTRIBUTORS 2020-02-03 02:13:14 +01:00
Yngve Høiseth
50a69fd55e Add missing contributor 2020-01-22 23:34:14 +01:00