Commit Graph

113 Commits

Author SHA1 Message Date
Damien Elmes
3a4f94ab86 add UI scale preference 2019-12-19 09:58:16 +10:00
Damien Elmes
901c285a12 use single .gitignore file 2019-12-18 21:06:24 +10:00
Damien Elmes
3f80c62942 tweak v2 label 2019-12-09 13:00:09 +10:00
Damien Elmes
3b5f8fec4c default to v2 scheduler on new installs, remove warning 2019-12-06 18:37:39 +10:00
Damien Elmes
0dfb025cac fix menu label inconsistency
https://anki.tenderapp.com/discussions/ankidesktop/37330-suggestion-ui
2019-12-06 14:17:02 +10:00
Arthur Milchior
955db2d133 Stating that some UI strings are not translatable
Mostly because those strings are not actually supposed to be seen by
the user.
The point here being that it does not show in crowdin
2019-10-24 02:36:32 +02:00
Arthur Milchior
b5b7f7ec50 Tells QT not to translate shortcuts.
There is currently a problem with crowdin. It asks to translate
shortcut. I assume that actually, shortcuts are intended to remain the
same independtly of the language, and thus that they should not appear
here.

I kind of assume that crowdin gets the strings to which _ or ngettext
are applied. So I wanted to ensure that none of those methods are
applied to shortcut.

The python file containing those shortcut are generated from .ui
files, used by QTCreator. I thus changed those files to indicates that
shortcuts should not be translated.

I assumed that shortcuts are strings containing either only "F(digit)",
a single letter, "Alt+" or "Ctrl+". I may have missed other shortcuts if they
exists.
2019-10-24 02:14:03 +02:00
Damien Elmes
e5194ad208 remove open backup folder link
https://anki.tenderapp.com/discussions/ankidesktop/35084-crash-while-trying-to-revert-to-a-backup
2019-07-22 10:49:22 +10:00
Damien Elmes
3ba559907b add Anki icon to a few windows
thanks to John for the original work on this
https://github.com/dae/anki/pull/308
2019-05-17 15:28:15 +10:00
Damien Elmes
44952ff727 revert undo shortcut change in browser
when ctrl+z pressed in focused field and no undo history left, qt
triggers the menu item instead, causing data loss

I tried capturing the shortcut in JS and manually executing the undo,
and that seems to work on macOS, but not on Windows.

fixes
https://anki.tenderapp.com/discussions/ankidesktop/33064-how-to-undo-reverted-to-state-deleting-my-cards
2019-03-11 13:43:25 +10:00
Damien Elmes
b168ce6eed add option to strip html in export 2019-03-05 08:57:53 +10:00
Glutanimate
d02fd025e1 Enable non-contiguous multi-selection in add-on list 2019-02-23 09:39:49 +01:00
Glutanimate
1080ae10f9 Store addonconf geom and splitter. Tweak font sizes and margins. 2019-02-23 09:39:49 +01:00
Aristotelis
ff7b06fbda
Merge branch 'master' into install-local-addons 2019-02-23 09:27:17 +01:00
Glutanimate
4a21c2013f Ability to install add-ons from local add-on packages
Adds a new button to the add-on dialog that allows users to select
and install add-ons from local files.
Introduces APKX, a zip-based and manifest-backed filetype for
Anki add-on packages.
2019-02-18 07:17:14 +01:00
Glutanimate
d629ceb3b5 Use system-default fixed font for debug entry and log 2019-02-16 10:26:49 +01:00
Glutanimate
6c982ac05b Switch to a horizontal, qsplitter-based layout for editor and help text
Also: Disable text wrapping in the editor area to reduce the likelihood
of users performing syntax errors.
2019-02-15 14:15:22 +01:00
Damien Elmes
2a539cda1b add % to hard interval option 2019-01-02 15:24:11 +10:00
Damien Elmes
4acce5f96b checkmark on flags in browser 2018-11-12 12:10:50 +10:00
Damien Elmes
d2765eadd5 toggle flags instead of using separate clear action in browser 2018-11-12 11:55:37 +10:00
Damien Elmes
5e5d35e9c1 change purple flag to orange 2018-11-01 14:58:41 +10:00
Damien Elmes
098434ff38 we can use the old undo shortcut on 5.11
webviews no longer propagate the captured shortcut
2018-10-23 18:40:58 +10:00
Damien Elmes
c9870ed92c update undo shortcut in browser to avoid conflict
https://anki.tenderapp.com/discussions/ankidesktop/29818-undoing-in-addeditbrowser
2018-09-21 09:52:25 +10:00
Damien Elmes
f699ebb370 add hw accel toggle to prefs 2018-08-30 13:39:04 +10:00
Glutanimate
7607a3c73a Add hotkeys for "Invert Selection" and "Reschedule" 2018-07-25 12:49:40 +02:00
Damien Elmes
1a617e6d60 support customizing hard factor 2018-07-11 21:23:22 +10:00
Damien Elmes
c60e22fd60 separate cram into review cards(resched=1) and all cards(resched=0)
rescheduling on is useful for preventing extra work, but when applied to
new cards it will leave the user with a large number of reviews
2018-07-11 20:35:08 +10:00
Damien Elmes
fc23241f0a add custom steps back to v1 sched options 2018-04-30 16:26:43 +10:00
Damien Elmes
560c21c59d add experimental scheduler to preferences 2018-04-30 16:26:19 +10:00
Homo computeris
fc680c3a57 Refine wording in Find duplicates
In browser and other dialogues 'Search' and 'Filter' are used. Using the
same terms here make Find duplicates more intuitive
2018-04-28 15:50:16 +02:00
Damien Elmes
29608c37c8 clarify add notes option in browser 2018-02-22 16:58:32 +11:00
Damien Elmes
d3d61ce93f add option to show day learn cards before reviews 2018-01-20 16:07:57 +10:00
Damien Elmes
651b107b18 make preview delay customizable 2018-01-20 15:26:11 +10:00
Damien Elmes
1e0b97f25b support a second filter in filtered decks 2018-01-14 13:08:38 +10:00
Damien Elmes
4070f4eef8 schedtest changes, squashed from local branch 2018-01-14 12:16:53 +10:00
Tomasz Miąsko
be140c0993 Make it possible to create narrow browser window. 2018-01-12 13:46:14 +01:00
Damien Elmes
5ad8f67f12 move away from qprogressdialog
qprogressdialog has been the source of a number of problems in the past,
and the most recent issue is that it's showing the progress dialog
early, regardless of what the minimum duration is set to. since we're
already using our own logic for deciding when to show the dialog, it's
easier to move to a normal dialog box

also prevent timers from firing while a progress dialog is visible, or
if the refresh timer fires we end up with the same issue.

https://anki.tenderapp.com/discussions/beta-testing/949-anki-stops-when-field-is-added
2017-12-28 18:31:05 +10:00
Damien Elmes
fcccf12ba6 night mode 2017-12-04 12:20:56 +10:00
Damien Elmes
554ff3d8d2 drop experimental prewrap mode
- pasting in prewrap mode had been broken for a while and nobody noticed
- needs changes to export code and cloze handling code to deal with the
newlines
- newline rewriting in filterNode() is likely fragile
- may revisit post 2.1
2017-10-25 19:18:00 +10:00
Damien Elmes
8fe766c750 improve wording of replayQuestion
based on some old feedback
2017-09-13 17:59:28 +10:00
Damien Elmes
5f68b62450 fix delay opening preferences screen
qt currently seems very slow at calculating width of language dropdown,
so we change the setting to delay dropdown appearance instead of
appearance of the dialog
2017-09-10 15:13:52 +10:00
Damien Elmes
394fffde13 fix margins in deck conf 2017-09-08 16:06:09 +10:00
Damien Elmes
f941e9dea8 remove ellipsis from some menu items
to reflect that they execute immediately

https://anki.tenderapp.com/discussions/ankidesktop/21165-bug-menu-items-lie-about-actions
2017-09-04 11:34:41 +10:00
Damien Elmes
f58ea62aec shortcut key for add-ons dialog 2017-08-30 15:31:16 +10:00
Damien Elmes
fc60cfec28 fix margins in prefs screen 2017-08-29 17:33:09 +10:00
Damien Elmes
abc55222be add missing png 2017-08-28 22:29:47 +10:00
Damien Elmes
226bb2bc83 add record icon back to dialog 2017-08-28 21:46:22 +10:00
Damien Elmes
b28eb4fba6 add collection/deck shortcuts, refresh when saved changes 2017-08-28 21:43:44 +10:00
Damien Elmes
737a8d934e persistent add-on configuration
- add-ons can ship default config in a config.json file
- users can edit the config in the add-ons dialog, easily syntax-check
the json, and restore it to the defaults
- an optional config.md contains instructions to the user in markdown
format
- config will be preserved when add-on is updated, instead of being
overwritten as is the case when users are required to edit the source
files

A simple example: in config.json:

{"myvar": 5}

In your add-on's code:

from aqt import mw
config = mw.addonManager.getConfig(__name__)
print("var is", config['myvar'])

Add-ons that manage options in their own GUI can have that GUI
displayed when the config button is clicked:

mw.addonManager.setConfigAction(__name__, myOptionsFunc)
2017-08-28 20:51:43 +10:00
Damien Elmes
7288a9b063 new add-on handling
- separate dialog for managing add-ons
- only add-ons compatible with Anki 2.1 will be shown on AnkiWeb
- can delete or toggle disabled on multiple add-ons at once
- check for updates button
- button to view add-on's AnkiWeb page

The new handling drops support for single file .py add-ons, and requires
add-ons to store all files in a single folder. This ensures all files
are cleaned up properly when updating or deleting an add-on, and
prevents file conflicts between separate add-ons. See the updated
add-on docs for more:

https://apps.ankiweb.net/docs/addons21.html#add-on-folders
https://apps.ankiweb.net/docs/addons21.html#sharing-add-ons

README.addons has been moved to the above page
2017-08-26 15:14:20 +10:00