Henrik Giesel
8edcc54aae
Add flag icons from mdi after all
...
- This way, we can also use their modifier versions with little pluses/minuses
2021-07-01 01:16:50 +02:00
Henrik Giesel
bcfbd2f680
Remove multiple icons, new notetype/cardtype icons
2021-07-01 01:12:11 +02:00
Henrik Giesel
fe7057b3f2
Remove name_prefix from field sidebar item
2021-06-30 21:02:23 +02:00
Henrik Giesel
0156af268e
Add missing type hint
2021-06-30 21:02:23 +02:00
Henrik Giesel
803295341e
Replace card state and clock icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
39075039de
Replace saved search icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
aacf20531e
Add NOTETYPE_FIELD sidebar items
2021-06-30 21:02:23 +02:00
Henrik Giesel
6f201bdfe4
Add notetype icons
2021-06-30 21:02:23 +02:00
Henrik Giesel
da69a5e352
Add new icons for decks
2021-06-30 21:02:23 +02:00
Henrik Giesel
dedddd7f8d
Add tag_multiple icon
2021-06-30 21:02:23 +02:00
Damien Elmes
79ec9b14b1
zero out graves before comparison, instead of at creation
...
Will allow us to turn the check back on in the future without a client
update
2021-06-30 10:08:52 +10:00
Damien Elmes
3ee18fb854
ignore graves in sanity check
2021-06-30 09:31:02 +10:00
Damien Elmes
0f7a230fd8
add missing stringcase dep
2021-06-29 17:40:20 +10:00
Damien Elmes
90fdcebcc8
update translations
2021-06-29 13:17:03 +10:00
Damien Elmes
45b790ec3c
minor follow-up to #1257
...
No need for a separate argument, as we only want to scroll when
searching.
2021-06-29 11:53:10 +10:00
Damien Elmes
f8f6b828aa
Merge pull request #1257 from abdnh/sidebar-scroll-to-first-match
...
Scroll to first sidebar search match
2021-06-29 11:44:28 +10:00
Damien Elmes
ecabf35350
use inner function instead of return value in _expand_where_necessary()
2021-06-29 11:40:59 +10:00
Damien Elmes
d58619a0dc
Merge pull request #1261 from RumovZ/fix-id-checks
...
Fix id check for `today` and `card state` items
2021-06-29 11:26:57 +10:00
Damien Elmes
8b55e8610b
unpin bootstrap now that 5.0.1 is out
...
63437f5cde
2021-06-29 11:25:14 +10:00
Damien Elmes
fa070d9da3
Merge pull request #1262 from hgiesel/visibledeckpreset
...
Make input in TextInputModal in dark mode visible
2021-06-29 11:24:21 +10:00
Damien Elmes
1c953ef876
Merge pull request #1260 from ankitects/option-columns
...
use css columns instead of grid
2021-06-29 11:21:45 +10:00
Henrik Giesel
f4f70c514c
Make input in TextInputModal in dark mode visible
2021-06-29 03:20:15 +02:00
Damien Elmes
9d1a755fdc
use css columns instead of grid
...
Alternative approach to #1255
thanks to Hikaru and Henrik for the margin fix, and Matthias for
the initial idea and prototypes!
2021-06-29 11:19:56 +10:00
Damien Elmes
576b141e2b
add back in missing check for upload size
...
Compression now happens up-front, so we can tell in advance if the
upload size has been exceeded.
2021-06-29 10:50:03 +10:00
Damien Elmes
e3c9808b79
catch invalid card ordinals in DB check
...
https://forums.ankiweb.net/t/error-corrupted-note/10976
2021-06-29 10:50:03 +10:00
abdo
33e6662dda
Scroll to first sidebar search match
2021-06-28 14:44:09 +03:00
RumovZ
19a36414e8
Fix id check for today
and card state
items
2021-06-28 12:55:59 +02:00
Damien Elmes
8942677c4b
Merge pull request #1252 from RumovZ/fix-tag-expand
...
Fix expanding/collapsing tags triggering refresh
2021-06-27 18:45:29 +10:00
Damien Elmes
1b15069b24
PEP8 collection.py
2021-06-27 15:12:22 +10:00
Damien Elmes
17533e6a78
PEP8 models.py
2021-06-27 14:30:00 +10:00
Damien Elmes
62c23c6816
PEP8 decks.py
2021-06-27 14:02:48 +10:00
Damien Elmes
2a93355824
PEP8 cards.py
2021-06-27 12:12:23 +10:00
Damien Elmes
1cabe9507c
move+rename deprecated decorators to _legacy.py
...
+ take method instead of string, so we can ensure symbol exists
2021-06-26 15:50:19 +10:00
Damien Elmes
fee486aaa1
PEP8 notes.py
...
An example of how we can start migrating the codebase to PEP8:
- enable invalid-name at the top
- use bazel run pylib:pylint to identify names that need renaming
- use PyCharm or similar to rename the functions/variables
- in the cases where the conversion is not just snake_case, use
.register_deprecated_aliases()
+ removed the __repr__() definition, it dumps all the note content
and obscures the error message
2021-06-26 11:38:59 +10:00
Damien Elmes
0ddd316388
add a helper so we can get semi-automatic camelCase conversion
2021-06-26 11:33:35 +10:00
Damien Elmes
f26384a82f
enable some pylint convention tests in pylib
2021-06-26 10:11:05 +10:00
Damien Elmes
7e358707e5
Merge pull request #1254 from RumovZ/sidebar-menu-hook
...
Add hook "browser_sidebar_will_show_context_menu"
2021-06-26 08:42:59 +10:00
Damien Elmes
7099b6ea49
revert to % format string to avoid breaking add-on
...
partially reverts d8c3e71105
https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/50
2021-06-26 08:39:16 +10:00
Damien Elmes
fb5e8d5f3b
fix error when user confirms adding cloze to basic type
2021-06-26 08:35:24 +10:00
RumovZ
17009638c1
Add hook "browser_sidebar_will_show_context_menu"
2021-06-25 17:01:17 +02:00
Damien Elmes
ca0374782e
update to latest rusqlite
2021-06-25 16:22:21 +10:00
Damien Elmes
59e17950ad
update most rust deps; skip rusqlite
2021-06-25 15:35:25 +10:00
Damien Elmes
18843e711d
disable cloze&math buttons in html mode
...
Following on from 8a07d3161d
Keeping them active seems to encourage users to experiment:
https://forums.ankiweb.net/t/cloze-deleting-html-svg/11011
2021-06-25 10:31:47 +10:00
Damien Elmes
33c9ae211a
fix importer mistakenly allowing import of v2 collection into v1
...
The instance variable is ugly, but should avoid breaking some monkey
patching done by Special Fields
2021-06-25 09:50:10 +10:00
Damien Elmes
73d9391f64
update undo skipping; exclude deck/tag expand/collapse
...
Instead of calling a method inside the transaction body, routines
can now pass Op::SkipUndo if they wish the changes to be discarded
at the end of the transaction. The advantage of doing it this way is
that the list of changes can still be returned, allowing the sync
indicator to update immediately.
Closes #1252
2021-06-25 09:16:15 +10:00
Damien Elmes
d82b87e643
Merge pull request #1253 from hgiesel/codablesetfields
...
Fix Codable carrying on content from other notes in Browser
2021-06-25 08:26:42 +10:00
Damien Elmes
99375fd117
Merge pull request #1251 from hikaru-y/fix-toggle-night-mode
...
Fix toggle night mode in clayout
2021-06-25 08:22:56 +10:00
Henrik Giesel
4252898c78
Make Codable abstract more over its textarea v codemirror when using fieldHTML
2021-06-24 19:55:50 +02:00
Henrik Giesel
96e4e90a61
Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML
2021-06-24 19:15:07 +02:00
RumovZ
72146c4b22
Fix expanding/collapsing tags triggering refresh
2021-06-24 17:27:53 +02:00