Damien Elmes
4e377a3b33
fix travis build
2019-12-16 08:22:47 +10:00
Damien Elmes
37a239cf38
add basic type checking for anki/
2019-12-16 08:17:28 +10:00
Damien Elmes
81bdd860f3
bump version
2019-12-15 15:32:24 +10:00
Damien Elmes
4bc33e2f19
save local timezone to conf
...
saves the user needing to visit AnkiWeb when their timezone has changed
2019-12-12 11:30:01 +11:00
Damien Elmes
a735ed19ae
clearer name for invalid column
...
https://github.com/dae/anki/pull/360
2019-12-12 09:54:26 +10:00
Damien Elmes
7f2fecb944
sort due in filtered decks by ordinal, like normal review
...
https://anki.tenderapp.com/discussions/ankidesktop/37419-card-order-of-siblings-not-preserved-in-filtered-deck#comment_47910714
2019-12-11 08:12:50 +10:00
Damien Elmes
bb62a3c1af
fix unit tests
2019-12-09 13:00:15 +10:00
Damien Elmes
3f80c62942
tweak v2 label
2019-12-09 13:00:09 +10:00
Damien Elmes
b1ab681571
preserve contextual formatting when wrapping text
...
https://anki.tenderapp.com/discussions/ankidesktop/37385-cloze-is-stripping-formatting-enlarging-text
any formatting inside the selection is removed, but formatting that
starts and ends outside the selection will be preserved
2019-12-09 12:52:18 +10:00
Damien Elmes
5a5be92d09
add a token 1 day bonus so easy on a relearn card differs from good
...
https://anki.tenderapp.com/discussions/beta-testing/1589-anki-2116-beta#comment_47905454
2019-12-09 12:12:29 +10:00
Damien Elmes
4f4a05e1ae
fix bold/italics/underline regression
2019-12-09 09:46:16 +10:00
Damien Elmes
9d6523e4dc
allow importing scheduling-inclusive v1 imports into v2
2019-12-06 19:03:57 +10:00
Damien Elmes
15a9a6005e
enable scheduling-inclusive exports from 2.1
2019-12-06 18:51:42 +10:00
Damien Elmes
3b5f8fec4c
default to v2 scheduler on new installs, remove warning
2019-12-06 18:37:39 +10:00
Damien Elmes
bceb4feb5b
Merge pull request #359 from Arthur-Milchior/noDefaultInDeckList2
...
list of decks contains default iff deck chooser contains default
2019-12-06 15:01:15 +10:00
Damien Elmes
87dc87ee12
clear undo when adding card
...
https://anki.tenderapp.com/discussions/ankidesktop/36541-anki-nuked-all-entered-notes-on-undo
2019-12-06 14:28:57 +10:00
Damien Elmes
b1267028e3
flagging requires a current card
...
https://anki.tenderapp.com/discussions/ankidesktop/37324-bug-report
2019-12-06 14:23:54 +10:00
Damien Elmes
0df937061e
add hack to fix go>note
...
https://anki.tenderapp.com/discussions/ankidesktop/37328-browsergo-note
2019-12-06 14:22:49 +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
Damien Elmes
4fda2358b0
handle formatting from google docs
2019-12-06 14:08:59 +10:00
Damien Elmes
e2d7e5a8d7
preserve color in font tags
...
https://anki.tenderapp.com/discussions/ankidesktop/34688-format-of-copying
2019-12-06 13:44:06 +10:00
Damien Elmes
eacf788b40
strip bold/italics/underline when pasting without formatting
...
https://anki.tenderapp.com/discussions/ankidesktop/34413-formatting-is-not-fully-stripped-in-21
2019-12-06 13:40:51 +10:00
Damien Elmes
d4b87a678a
preserve inline foreground/background color in spans
...
common in content pasted from MS Word
2019-12-06 13:39:05 +10:00
Damien Elmes
987256ff26
extended pasting is now the default
2019-12-06 13:37:50 +10:00
Arthur Milchior
9d7b0e527f
list of decks contains default iff deck chooser contains default
...
This way, the list is consistent with what users see otherwhere
2019-12-05 08:20:11 +01:00
Damien Elmes
ba9ece83f1
try 300ms preview delay
...
https://github.com/dae/anki/pull/357#issuecomment-560018459
2019-12-05 17:05:20 +10:00
Damien Elmes
5411cf06c1
Merge pull request #357 from hakon-j-d-johnsen/fix-race-condition
...
Fix minor race condition in rendering of the preview window
2019-11-30 21:43:33 +13:00
Håkon J D Johnsen
9be993c76d
Remove unnecessary lambda
...
Changing the signature of _renderScheduledPreview() made the
use of a lambda in _renderPreview() unnecessary. Remove it
to prevent linting errors.
2019-11-29 21:31:27 +01:00
Håkon J D Johnsen
419456eacd
Fix race condition in rendering of preview window
...
Previously, if repeated calls to _renderPreview() were throttled by
the throttling mechanism, only the most recent value of
cardChanged would take effect, even if the card had changed
in previous _renderPreview() calls.
After this patch, if any of the throttled _renderPreview() calls
were called with cardChanged=True, the final _renderScheduledPreview()
will happen with cardChanged=True
2019-11-29 21:27:50 +01:00
Damien Elmes
a6327630f5
Merge pull request #356 from Arthur-Milchior/correctNewTemplateTest
...
Another unimportant test error
2019-11-28 09:18:24 +13:00
Arthur Milchior
984d39fd6b
correction
2019-11-27 08:10:37 +01:00
Damien Elmes
41fdbc8394
Merge pull request #355 from Arthur-Milchior/correctedNewFieldTest
...
Correcting a test
2019-11-26 08:15:03 +13:00
Arthur Milchior
556ef5d34b
newField checks its input is a str
...
Indeed, it takes as input a name (str). For some reason in some test
it was given a model. This actually led to some strange failed test.
2019-11-25 00:15:20 +01:00
Damien Elmes
734f7acf73
Merge pull request #354 from Arthur-Milchior/ignoreStickyFieldOnlyIfTheyDidntChanged
...
Ignore sticky field only if they didnt changed
2019-11-25 11:31:14 +13:00
Arthur Milchior
6fc89d2f96
Use fieldsAreBlank with the previous note
2019-11-23 03:04:08 +01:00
Arthur Milchior
d598434bde
Fields are blank compare to previous note
...
So if a note is not empty but only because sticky fields didn't
change, then it's considered as empty and we can close the windows
without asking
2019-11-23 03:04:08 +01:00
Arthur Milchior
f41014ca4b
Add Cards save the previous note
2019-11-23 03:04:07 +01:00
Damien Elmes
48c1e668d4
minor grammar tweak
2019-11-14 09:27:25 +10:00
Damien Elmes
ea9e564b66
Merge pull request #352 from Arthur-Milchior/correctCaseInRename
...
Ensure that even childless deck's name is considered independtly of the case
2019-11-14 09:25:34 +10:00
Damien Elmes
fe599522ef
Merge pull request #353 from Arthur-Milchior/correctFindFlag
...
Correct find flag
2019-11-14 09:20:30 +10:00
Arthur Milchior
65ea5313c8
Correcting flag search
...
Currently, "flag:01" or "flag:12" does not throw exception, while it
should. Now it'll be the case
2019-11-13 17:41:48 +01:00
Arthur Milchior
f1c3f124e2
Ensure flag:12 raises an alert
2019-11-13 17:41:48 +01:00
Arthur Milchior
9955048aec
DeckManager: _checkDeckTree ignore case
2019-11-13 17:08:40 +01:00
Arthur Milchior
9a40f29bce
test that if two decks differs only by case, they are renamed
2019-11-13 17:08:40 +01:00
Arthur Milchior
6aacd7782f
Rename reject even when another deck has same name different cases
2019-11-13 17:08:40 +01:00
Arthur Milchior
769d52d6b2
Test: Renaming with different cases
2019-11-13 17:08:40 +01:00
Arthur Milchior
31ccd31e97
DeckManager.id return existing deck ignoring case
2019-11-13 16:34:14 +01:00
Arthur Milchior
3afb28c05f
DeckManager.byName check equality ignoring case name
2019-11-13 16:33:56 +01:00
Arthur Milchior
e44b049278
Decks: methods to normalize name and check equality of name
2019-11-13 16:33:39 +01:00
Arthur Milchior
3d6c0ec36c
Test: rename over filtered deck
2019-11-13 16:32:45 +01:00