Commit Graph

1186 Commits

Author SHA1 Message Date
Damien Elmes
43a662a250 hack around the browser not closing on sync
saveNow() must run asynchronously, but unloadCollection() was not
designed to. fix the issue by skipping the save, as it's unlikely
the user can move the cursor from the editor to the
main window and start a sync before the timer has automatically saved
the contents.
2017-04-12 18:40:37 +10:00
Damien Elmes
aa89d06304 Revert "don't rely on cwd in media.py"
This reverts commit 975ca90225.

reverting for now as it breaks showing of images during review
2017-04-11 12:50:33 +10:00
Damien Elmes
783767be0d Merge pull request #181 from Glutanimate/fix-previewer-navigation
Improve previewer navigation
2017-03-26 15:49:34 +10:00
Damien Elmes
bcdfeaa9c6 Merge pull request #180 from Glutanimate/preserve-tag-focus-in-browser
Preserve tag field focus when switching between cards in the browser
2017-03-26 15:49:03 +10:00
Glutanimate
a70e751238 Tweak previewer navigation behaviour 2017-03-24 17:09:16 +01:00
Glutanimate
0bcf60fea6 Tweak previewer navigation button display 2017-03-24 17:05:33 +01:00
Glutanimate
8f7f7db861 Preserve tag field focus when switching between cards 2017-03-24 16:23:48 +01:00
Damien Elmes
bb50976ce2 remove modeltest 2017-03-18 08:08:21 +09:00
Damien Elmes
17d68cc957 use a clearer name for fmtQA() 2017-03-14 15:48:40 +09:00
Damien Elmes
ef0a28f294 Merge pull request #179 from henrikh/fmtQA
Unify inline card formatting
2017-03-14 15:39:19 +09:00
Damien Elmes
e651191d63 Merge pull request #178 from KFGL/patch-1
Update README.md broken link
2017-03-14 15:29:23 +09:00
Damien Elmes
dfb3188f51 Merge pull request #177 from jkitching/anki3_cwd_fixes
don't rely on cwd in media.py
2017-03-14 15:28:26 +09:00
Henrik Enggaard Hansen
857733c8e9 Use the same formatting for the browser and card history 2017-03-13 15:52:27 +01:00
Henrik Enggaard Hansen
1dfc4466f1 Move card formatting to anki.utils 2017-03-13 15:52:02 +01:00
KFGL
de7c699b52 Update README.md broken link 2017-03-09 15:13:30 -06:00
Joel Kitching
975ca90225 don't rely on cwd in media.py
media.py sets CWD to the media directory of the collection
(collection.media), and relies on that directory being
maintained as CWD throughout execution.  The original CWD
is restored in the close() function.

Remove reliance on CWD being set and maintained throughout
execution of media.py.  Improves portability and usability
in different codebases.
2017-03-07 15:55:40 +08:00
Damien Elmes
4693e71104 bump version 2017-03-05 19:49:24 +10:00
Damien Elmes
07f175cec8 add m4a to attachable media formats 2017-03-02 12:10:13 +10:00
Damien Elmes
c17e68d5f3 Merge pull request #176 from luoliyan/escape-sql-queries
Allow user to escape special characters in tags
2017-03-01 22:49:47 +10:00
luoliyan
62a76b3ad9 Test special characters in tag search 2017-02-28 08:11:32 +09:30
luoliyan
491b8ea63f Allow special characters to be escaped 2017-02-28 08:10:43 +09:30
Damien Elmes
b06133a2e4 Merge pull request #174 from henrikh/master
Add name to about screen
2017-02-27 14:32:35 +10:00
Damien Elmes
1e96500d76 Merge pull request #175 from illia-v/update-python-in-travis-configs
Update Python versions for Travis CI builds
2017-02-27 14:30:14 +10:00
Damien Elmes
9009703f0e Merge branch 'master' of github.com:dae/anki 2017-02-27 14:29:54 +10:00
Damien Elmes
ef5ed0ebf3 fix unit test on python 3.6 2017-02-27 14:29:23 +10:00
Illia Volochii
a0d106ee5f Update Python versions for Travis CI builds
I have stopped testing under Python 3.4 due to the PR #152.
2017-02-26 22:03:12 +02:00
Henrik Enggaard Hansen
e7ecb9c6a9 Add name to about screen 2017-02-26 15:19:34 +01:00
Damien Elmes
c2f7b48a29 use QStandardPaths instead of the env var 2017-02-25 18:07:01 +10:00
Damien Elmes
97f280923c Merge pull request #172 from Glutanimate/master
Add another name to about screen
2017-02-25 13:48:21 +10:00
Damien Elmes
90167b139a Merge pull request #171 from luoliyan/master
Add name to about screen
2017-02-25 13:47:59 +10:00
Glutanimate
96a252bebb Add another name to about screen 2017-02-25 02:41:26 +01:00
luoliyan
bf8fddfabc Add name to about screen 2017-02-24 21:41:47 +09:30
Damien Elmes
bcaf5762ec fix errors when previewing 2017-02-23 16:21:00 +10:00
Damien Elmes
d1ebc8d805 add dmitry to about.py
Anyone else who's contributed anything to Anki - however small - is most
welcome to be listed in the about screen. Sending me a pull request that
adds your name or alias would be easiest, but if that is difficult
please let us know on the support site and we'll do it for you.
2017-02-23 14:41:07 +10:00
Damien Elmes
9f37cddfda Merge pull request #169 from luoliyan/regex-tag-removal
Allow wildcard tag deletion
2017-02-22 20:51:23 +10:00
luoliyan
5b43222f52 Remove unneeded condition 2017-02-22 19:31:31 +09:30
luoliyan
dee0fe2880 Escape unsupported regex chars 2017-02-22 18:24:03 +09:30
Damien Elmes
2d96d59512 bump version 2017-02-22 18:36:53 +10:00
Damien Elmes
8085f8bc04 refuse to load on qt5.8.0 due to lack of IME support, etc 2017-02-22 18:36:46 +10:00
Damien Elmes
9c2c590de9 Merge pull request #170 from illia-v/super-no-arguments
Use `super()` without arguments
2017-02-22 18:34:08 +10:00
Damien Elmes
7aa8499850 Merge pull request #168 from luoliyan/dont-register-nonexistent-tags
Don't register non-existent tags
2017-02-22 18:27:21 +10:00
Damien Elmes
57c8e43327 change profile folder on windows and linux
onedrive seems to frequently screw up the permissions on the documents
folder. since we're stuck with more difficult to find folders on
mac/win, we may as well migrate linux as well, to a more
standards-compliant path.
2017-02-22 18:16:19 +10:00
Illia Volochii
ddc4c6a7e3 Use super() without arguments 2017-02-21 23:08:41 +02:00
luoliyan
2d40baa95f Don't register non-existent tags 2017-02-21 17:37:01 +09:30
luoliyan
12c98a21f0 Allow wildcard tag deletion 2017-02-21 17:27:50 +09:30
Damien Elmes
0f04744f7e fix embedded fonts 2017-02-21 13:27:29 +10:00
Damien Elmes
745108bffd make sure we close all windows prior to unloading the collection 2017-02-19 15:13:58 +10:00
Damien Elmes
7ebd66a1c8 add modeltest to browser; fix an issue with rowCount()/columnCount() 2017-02-19 14:30:35 +10:00
Damien Elmes
6335dcb90e canonicalize to NFC form on edit/import 2017-02-19 12:49:52 +10:00
Damien Elmes
2539896b22 Merge pull request #167 from ankitest/patch-8
Correct hotkey to Add-ons >> Browse & Install...
2017-02-19 00:22:56 +10:00