Damien Elmes
dfaf9251c3
hack to keep scroll position in deckbrowser
...
noticeable flash when page is redrawn; in the future we'll
need to use js to update the page
2018-06-12 13:46:15 +10:00
Damien Elmes
8eff5f3111
show sched ver in debug info
2018-06-08 12:33:05 +10:00
Damien Elmes
da246cb935
move back to requiring python 3.6
...
portions of libanki can run on python 3.5, but media syncing will fail
so we require 3.6 when running the GUI
2018-06-07 11:36:11 +10:00
Damien Elmes
0052c8044c
another many decks speedup
2018-05-31 16:24:34 +10:00
Damien Elmes
e2e68e0c54
catch name resolution errors in sync
2018-05-31 13:24:49 +10:00
Damien Elmes
e6fcfb7379
need to record active window prior to playing in mpv
2018-05-31 13:22:17 +10:00
Damien Elmes
9b7c701f25
new stats shortcut
2018-05-31 13:05:37 +10:00
Damien Elmes
e93dedc7c6
avoid running on qt 5.11
...
updates will be needed for Qt's latest round of breaking changes
2018-05-29 19:25:23 +10:00
Damien Elmes
46a540e22f
sync field contents before applying cloze deletion
...
based on a patch by dlon:
https://github.com/dae/anki/pull/236
2018-05-28 13:40:35 +10:00
Damien Elmes
4cee52a994
Merge pull request #237 from maharmstone/master
...
stdHtml: fix certain fonts not working on Linux
2018-05-28 12:15:43 +10:00
Mark Harmstone
40612c5329
stdHtml: fix certain fonts not working on Linux
2018-05-27 21:16:55 +01:00
Damien Elmes
cfaedfef4a
include aria-label in top toolbar
...
qt doesn't seem to support it at the moment though
https://anki.tenderapp.com/discussions/beta-testing/1130-latest-anki-beta-not-accessible-with-voiceover-on-mac-os
2018-05-14 11:24:04 +10:00
Damien Elmes
0de4e65950
fix previously pasted image appearing in place of drop/text paste
...
mime.imageData() was returning stale data, and may have been causing
crashes as well
2018-05-10 16:44:55 +10:00
Damien Elmes
32b32bb881
don't try to use mpv on Windows
...
some users had mpv lying around from previous installs, and the Windows
implementation seems to hang with the idle hook introduced in the
previous build
2018-05-10 14:50:23 +10:00
Damien Elmes
de955e57c4
fix busy cursor in full sync screen
2018-05-01 14:34:03 +10:00
Damien Elmes
4b28151b61
add space to 'waiting for editing' screen
2018-05-01 13:35:28 +10:00
Damien Elmes
88de6b5075
support pasting of images from inlined base64 text
...
chrome exports image data as text when using 'copy image location'
2018-05-01 13:16:46 +10:00
Damien Elmes
5bf3349e05
favour images over urls when pasting
...
fixes dragging of images from safari+google images, and pasting of
'copy image' from chrome
2018-05-01 12:47:41 +10:00
Damien Elmes
47370af7c3
work around video focus stealing
...
https://anki.tenderapp.com/discussions/ankidesktop/27401-bug-when-playing-a-video-on-anki-for-mac-anki-lanches-mplayer-and-doesnt-quit-it-or-return-to-anki
2018-04-30 17:12:26 +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
Damien Elmes
bdaedb7898
onReset() already sets note; don't need to do it twice
2018-04-30 15:15:43 +10:00
Damien Elmes
38178e5281
catch attempts to save field contents to wrong note
2018-04-30 15:15:20 +10:00
Damien Elmes
1b20dc3311
fix field getting overwritten when showing duplicates
2018-04-30 14:51:28 +10:00
Damien Elmes
35516048a7
sox was dropped years ago
2018-04-19 17:15:49 +10:00
Damien Elmes
eca6ecf90f
hack around premature completer deletion
...
haven't been able to identify why qt sometimes deletes the completer
early, so just suppress the error for now
https://anki.tenderapp.com/discussions/beta-testing/884-freeze-and-sigabrt-when-add-dialog-is-left-open-for-about-one-hour-and-used-afterwards#comment_44837119
2018-04-18 13:21:10 +10:00
Damien Elmes
8577fe71cc
Merge pull request #231 from ljcooke/config-md-unicode
...
Read config.md as UTF-8
2018-04-06 16:47:31 +10:00
Damien Elmes
821b6a65aa
Revert "work around issues writing to Windows clipboard"
...
This reverts commit 25c3f2cb24
.
seemed to be causing crashes, and the underlying race condition wasn't solved
2018-04-06 16:46:09 +10:00
Liam Cooke
0c1136e379
Read config.md as UTF-8
2018-04-05 22:11:44 +10:00
Damien Elmes
c01ba49168
remove stale journal file when resetting prefs
2018-03-22 14:10:23 +10:00
Glutanimate
410d1226bc
Revert debug console shortcut workaround
...
Seems like the assignment to "Ctrl+:" is working again
cf. fb81f63fe3
2018-03-18 15:50:50 +01:00
Damien Elmes
56e1643bfa
allow pycmd() to return a value
...
based on pull request #228
2018-03-08 17:48:14 +10:00
Damien Elmes
9db9d144b9
don't show completion dropdown on focus in
...
obscures buttons and gives the impression something needs to be chosen
https://anki.tenderapp.com/discussions/ankidesktop/27132-anki-bug-with-tags-and-decks#comment_44820594
2018-03-02 12:19:10 +10:00
Damien Elmes
dc6ebca944
filter middle click pastes
2018-03-02 11:16:02 +10:00
Damien Elmes
25c3f2cb24
work around issues writing to Windows clipboard
...
https://anki.tenderapp.com/discussions/beta-testing/1014-cannot-copy-from-fields-in-anki-210beta36
2018-03-01 15:53:25 +10:00
Damien Elmes
53f0793b9e
clean up deck chooser hook on importer close
...
fixes
https://anki.tenderapp.com/discussions/ankidesktop/20841-editingimport-limitation#comment_44777511
2018-03-01 14:20:30 +10:00
Damien Elmes
724513ca91
clarify 'delete unused' button, and don't show when n/a
2018-03-01 14:00:05 +10:00
Damien Elmes
c87b9be73a
ignore delete key if card list is not focused
...
https://anki.tenderapp.com/discussions/beta-testing/1004-ctrl-delete-erases-my-cards
2018-03-01 13:31:52 +10:00
Damien Elmes
9902e21cba
fix error when unsetting browser appearance
2018-02-26 11:21:12 +11:00
Damien Elmes
9a23f0958d
load add-ons in consistent order
...
if ANKIREVADDONS env var is defined, reverse order for debugging
partially addresses pull req #225
2018-02-24 13:23:15 +11:00
Damien Elmes
8a15bc897b
fix importing of v2 colpkg files
2018-02-05 15:30:57 +10:00
Damien Elmes
5cd063a8bd
check shift key when paste starts; avoid progress dlg for local file
...
https://anki.tenderapp.com/discussions/ankidesktop/26661-conot-paste-image-and-text-together-from-word-into-anki
2018-02-05 13:40:56 +10:00
Damien Elmes
b08e25dafb
fix temp folder msg
2018-02-05 12:34:38 +10:00
Damien Elmes
275af7e9b5
catch more problems with corrupt collections
...
if collapseTime is missing from col.conf, the initial load was
succeeding, but then the UI was getting stuck in moveToState()
2018-02-05 12:34:31 +10:00
Damien Elmes
a617be1779
prevent find duplicates scrolling to top on link click
2018-02-03 17:11:32 +10:00
Damien Elmes
1b7a7df4f0
raise profile window on macos
...
otherwise profile manager opens without focus
2018-02-01 12:14:04 +10:00
Damien Elmes
0cce540d83
enforce schema version; allow importing+exporting v2 scheduler
...
To avoid all sorts of problems, we need to ensure cards scheduled with
the V2 scheduler are not studied in older clients. Unfortunately we
can't just bump the file's schema version, as the existing clients will
freely import files created with newer versions. This patch changes
that, so things should be a bit easier in the future.
In the mean time, we need a way to prevent older clients from importing
files created with the V2 scheduler. To do this, we switch to using a
'collection.anki21' file in the archive, and include a dummy collection
.anki2 file.
The code has been tested with both deck and collection packages, but
exporting deck packages w/ scheduling info will remain disabled until
the V2 scheduler has had more testing.
2018-01-29 14:12:04 +10:00
Damien Elmes
8cceb24857
preserve newlines when pasting plain text
2018-01-26 19:18:24 +10:00
Damien Elmes
ed9110d530
fix unbury op w/ v1 scheduler
2018-01-26 19:05:08 +10:00
Damien Elmes
a6ccae95b6
remove missed format literals
2018-01-24 21:07:06 +10:00
Damien Elmes
d78176debe
fix opening prefs screen in V1 sched
2018-01-22 11:24:45 +10:00
Damien Elmes
d3d61ce93f
add option to show day learn cards before reviews
2018-01-20 16:07:57 +10:00
Damien Elmes
b17a0552d0
support customizing day cutoff w/ V2 scheduler
2018-01-20 15:32:52 +10:00
Damien Elmes
651b107b18
make preview delay customizable
2018-01-20 15:26:11 +10:00
Damien Elmes
fecd1a0354
log traceback in case of sync error
2018-01-20 11:24:01 +10:00
Damien Elmes
118326df1e
remove format literals so we can support python 3.5
2018-01-16 16:07:30 +10:00
Damien Elmes
52313fd0bf
work around progress dlg hang at startup on osx
...
with autosync on, when the progress dialog is closed and the main window
appears, it becomes stuck. hiding the dialog instead of closing it
seems to fix this.
2018-01-14 19:29:56 +10:00
Damien Elmes
bff61b95e9
hide second filter for v1 sched
2018-01-14 19:20:01 +10:00
Damien Elmes
b9aa3a3083
fix bad margins in progress dialog
2018-01-14 18:05:43 +10:00
Damien Elmes
3a059d15b5
check prefs21.db integrity
...
otherwise some corruption errors only become apparent when trying to
load an individual profile
2018-01-14 17:47:21 +10:00
Damien Elmes
1e0b97f25b
support a second filter in filtered decks
2018-01-14 13:08:38 +10:00
Damien Elmes
4e52f43365
distinguish between buried siblings and manually buried cards
2018-01-14 12:16:53 +10:00
Damien Elmes
4070f4eef8
schedtest changes, squashed from local branch
2018-01-14 12:16:53 +10:00
Damien Elmes
1c390218fc
fixes to progress window
...
- make sure _shown reset to False on finish()
- ignore calls to .update() after finish() called, which can happen with
async signals in the sync code
2018-01-14 12:16:47 +10:00
dubiousjim
df1704f578
Factor out definition of context menu in reviewer.py
...
Handle definition of context menu in same way that shortcutKeys are handled. This makes it easier for add-ons to modify the context menu without needing to re-implement the whole showContextMenu method.
2018-01-07 18:19:49 +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
Kerrick Staley
61b4a6b655
Bind mediaserver on 127.0.0.1 instead of localhost
2017-12-24 23:10:07 -08:00
Damien Elmes
65b826d787
refuse to run on qt 5.10
...
- on Linux and Windows, opening the browser and stats window back and
forth multiple times triggers a crash in the GL libraries, even with
software rendering enabled. Will try again when .1 is out
- on Mac, shortcut keys fire multiple times:
https://bugreports.qt.io/browse/QTBUG-65184
2017-12-18 14:50:14 +10:00
Damien Elmes
405cea6a60
add context menu to browser
2017-12-14 14:49:51 +10:00
Damien Elmes
7981db1466
more raw string literals
2017-12-13 14:34:54 +10:00
Damien Elmes
81d4b77ee1
more open() and regex strings
2017-12-11 17:25:51 +10:00
Damien Elmes
bc65baeff7
cgi.escape is deprecated
2017-12-11 16:20:00 +10:00
Damien Elmes
fccfdef73d
add a flag to keep editor buttons enabled when no field selected
2017-12-08 21:06:16 +10:00
Damien Elmes
774c19e83e
add the ability to disable cert verification
2017-12-07 17:15:20 +10:00
Damien Elmes
39c0a57b13
work around pops in recording start
...
https://anki.tenderapp.com/discussions/ankidesktop/26005-when-recording-sound-on-mbp
on my machine, the pops start around sample 2048 of a 44.1khz recording,
and only for the first recording after the audio hardware has gone to
sleep
2017-12-05 11:07:52 +10:00
Damien Elmes
341da7385a
ignore editor shortcuts when no field focused
2017-12-04 12:53:28 +10:00
Damien Elmes
c451141f97
play question audio when preview set to 'show both sides'
2017-12-04 12:45:22 +10:00
Damien Elmes
fcccf12ba6
night mode
2017-12-04 12:20:56 +10:00
Damien Elmes
15e102e047
make sure to preserve focus when reloading on editFocusLost
2017-12-04 12:03:01 +10:00
Piotr Kubowicz
879ca0b72b
Allow to better translate "in x minutes"
...
"There is 1 minute" and "in 1 minute" need to be translated
differently in Slavic languages.
Additionally remove unused afterTimeTable.
2017-11-30 20:03:51 +01:00
Damien Elmes
9e5b909070
note media check stage in sync dialog
2017-11-27 11:21:03 +10:00
Damien Elmes
41205bd5ca
allow user to override scaling
...
which may help wth issues like
https://anki.tenderapp.com/discussions/beta-testing/918-text-size-in-ubuntu-1710
and
https://anki.tenderapp.com/discussions/ankidesktop/25708-anki-with-high-dpi-screen
2017-11-27 11:01:15 +10:00
Piotr Kubowicz
674d45a606
Allow to better translate add-ons dialog
2017-11-19 10:28:04 +01:00
Damien Elmes
8e7ef1d1be
detect image extension, catch errors, add timeout
2017-11-17 17:30:01 +10:00
Damien Elmes
56444ab967
don't check extension when localizing image sources
...
fixes https://anki.tenderapp.com/discussions/beta-testing/916-pictures-not-showing-on-iphoneipad-ios11-when-not-connected-to-internet
2017-11-17 16:20:33 +10:00
Damien Elmes
baae899864
don't error if pasted image in temp folder
...
https://anki.tenderapp.com/discussions/ankidesktop/25805-anki-21-error-reporting
2017-11-13 11:05:46 +10:00
Damien Elmes
e0d05e49d6
fix broken image links when pasting between fields
...
https://anki.tenderapp.com/discussions/beta-testing/853-anki-210-beta-21#comment_43959510
2017-11-11 11:51:30 +10:00
Damien Elmes
880243c361
disable main window while collection unloaded
...
fixes error when pressing y then d in rapid succession
2017-11-01 12:38:43 +10:00
Damien Elmes
1d3e5787a2
separate basic and extended paste modes
...
- basic mode is the default, and includes only HTML elements that can be
added/edited easily with the default editor
- extended mode is enabled by holding down shift and includes a bunch of
other HTML elements
2017-10-25 20:20:28 +10:00
Damien Elmes
23e0034278
use requests library for media downloads
...
fixes SSL errors when pasting media from https website
2017-10-25 19:42:20 +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
c13b19820b
clear audio queue when showing answer
...
fixes question audio playing again on answer
2017-10-25 19:00:24 +10:00
Damien Elmes
944bca0f44
fix type answer race condition
...
user may hit enter before the question has been written, due to fade out
delay
2017-10-24 17:08:36 +10:00
Damien Elmes
1cc29278f2
Revert "avoid setting modality in progress dialog"
...
This reverts commit 059db539a7
.
seems to work correctly in qt 5.9.2
2017-10-20 13:25:38 +10:00
Damien Elmes
eaf09b5093
Merge branch 'master' of github.com:dae/anki
2017-10-20 11:26:15 +10:00
krassowski
f90f3dbc53
Clean up reviewer code from unused code
2017-10-18 16:12:04 +00:00
Damien Elmes
3df98573b4
fix detection of media links in paste
...
'.aspx' was matching the 'spx' filter
2017-10-18 21:58:36 +10:00
Damien Elmes
a6391bbe8c
ctrl+d to deselect all in tag picker
2017-10-16 15:31:29 +10:00
Damien Elmes
ed151de19b
don't die on _anki.png et al
...
https://anki.tenderapp.com/discussions/beta-testing/747-anki-210-beta-16/page/2#comment_43769227
2017-10-16 15:02:16 +10:00
krassowski
e21de9ed7e
Setup shortcuts after setting-up web.
2017-10-11 18:51:26 +00:00