Commit graph

932 commits

Author SHA1 Message Date
Damien Elmes
9cdcc99aa7 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
dc1a999991 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
38279816eb fix busy cursor in full sync screen 2018-05-01 14:34:03 +10:00
Damien Elmes
a6007a54f3 add space to 'waiting for editing' screen 2018-05-01 13:35:28 +10:00
Damien Elmes
77b5db4d96 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
ca14f9e4d9 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
73ddd79967 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
3e4e059966 add custom steps back to v1 sched options 2018-04-30 16:26:43 +10:00
Damien Elmes
4a00406ad1 add experimental scheduler to preferences 2018-04-30 16:26:19 +10:00
Damien Elmes
87d4a6beb5 onReset() already sets note; don't need to do it twice 2018-04-30 15:15:43 +10:00
Damien Elmes
d7db4b7427 catch attempts to save field contents to wrong note 2018-04-30 15:15:20 +10:00
Damien Elmes
d453278d4b fix field getting overwritten when showing duplicates 2018-04-30 14:51:28 +10:00
Damien Elmes
f8bfcc01d6 sox was dropped years ago 2018-04-19 17:15:49 +10:00
Damien Elmes
4d016cf4ba 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
ba378394cf 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
b991883a6c Revert "work around issues writing to Windows clipboard"
This reverts commit b6d68c284e.

seemed to be causing crashes, and the underlying race condition wasn't solved
2018-04-06 16:46:09 +10:00
Liam Cooke
8eb6490dfd Read config.md as UTF-8 2018-04-05 22:11:44 +10:00
Damien Elmes
6dd7a18667 remove stale journal file when resetting prefs 2018-03-22 14:10:23 +10:00
Glutanimate
7c50ea06ad 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
562eeda201 allow pycmd() to return a value
based on pull request #228
2018-03-08 17:48:14 +10:00
Damien Elmes
2336cd098c 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
75d1cb1f2a filter middle click pastes 2018-03-02 11:16:02 +10:00
Damien Elmes
b6d68c284e 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
4c4fcfe403 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
e131cb8e30 clarify 'delete unused' button, and don't show when n/a 2018-03-01 14:00:05 +10:00
Damien Elmes
317cb84201 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
fe95cdcfdd fix error when unsetting browser appearance 2018-02-26 11:21:12 +11:00
Damien Elmes
4d6d5034a9 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
8c6ee7de6b fix importing of v2 colpkg files 2018-02-05 15:30:57 +10:00
Damien Elmes
d8de5fbb9b 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
2e3907f62e fix temp folder msg 2018-02-05 12:34:38 +10:00
Damien Elmes
2b7f2adbb8 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
e592886723 prevent find duplicates scrolling to top on link click 2018-02-03 17:11:32 +10:00
Damien Elmes
e7607608c8 raise profile window on macos
otherwise profile manager opens without focus
2018-02-01 12:14:04 +10:00
Damien Elmes
c474f58748 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
3e9be0155e preserve newlines when pasting plain text 2018-01-26 19:18:24 +10:00
Damien Elmes
1d0ce7c095 fix unbury op w/ v1 scheduler 2018-01-26 19:05:08 +10:00
Damien Elmes
f668c6fc79 remove missed format literals 2018-01-24 21:07:06 +10:00
Damien Elmes
b05276ff89 fix opening prefs screen in V1 sched 2018-01-22 11:24:45 +10:00
Damien Elmes
7c79f24916 add option to show day learn cards before reviews 2018-01-20 16:07:57 +10:00
Damien Elmes
5c549e47f4 support customizing day cutoff w/ V2 scheduler 2018-01-20 15:32:52 +10:00
Damien Elmes
65b81b0a47 make preview delay customizable 2018-01-20 15:26:11 +10:00
Damien Elmes
6e76983b3a log traceback in case of sync error 2018-01-20 11:24:01 +10:00
Damien Elmes
07dcacf09b remove format literals so we can support python 3.5 2018-01-16 16:07:30 +10:00
Damien Elmes
2294f8bc9f 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
f2159a99d0 hide second filter for v1 sched 2018-01-14 19:20:01 +10:00
Damien Elmes
e03f28f2cc fix bad margins in progress dialog 2018-01-14 18:05:43 +10:00
Damien Elmes
a089424adc 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
0482a37517 support a second filter in filtered decks 2018-01-14 13:08:38 +10:00
Damien Elmes
65c779f25d distinguish between buried siblings and manually buried cards 2018-01-14 12:16:53 +10:00