Henrik Giesel
01cc9df232
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
d5f8a6e50c
Remove multiple icons, new notetype/cardtype icons
2021-07-01 01:12:11 +02:00
Henrik Giesel
eec7eae885
Remove name_prefix from field sidebar item
2021-06-30 21:02:23 +02:00
Henrik Giesel
e1c171b819
Add missing type hint
2021-06-30 21:02:23 +02:00
Henrik Giesel
32f3c5dbe7
Replace card state and clock icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
1850f24c4b
Replace saved search icon
2021-06-30 21:02:23 +02:00
Henrik Giesel
5031bafb61
Add NOTETYPE_FIELD sidebar items
2021-06-30 21:02:23 +02:00
Henrik Giesel
fecceb1997
Add notetype icons
2021-06-30 21:02:23 +02:00
Henrik Giesel
5fe2519619
Add new icons for decks
2021-06-30 21:02:23 +02:00
Henrik Giesel
d9a368631f
Add tag_multiple icon
2021-06-30 21:02:23 +02:00
Damien Elmes
8870a9c4d5
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
c0a1c04c3c
ignore graves in sanity check
2021-06-30 09:31:02 +10:00
Damien Elmes
6c35806c16
add missing stringcase dep
2021-06-29 17:40:20 +10:00
Damien Elmes
e22e294885
update translations
2021-06-29 13:17:03 +10:00
Damien Elmes
309f5ee528
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
8743ccf682
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
2bada06570
use inner function instead of return value in _expand_where_necessary()
2021-06-29 11:40:59 +10:00
Damien Elmes
b688bea955
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
dc0c8c217f
unpin bootstrap now that 5.0.1 is out
...
4d51a13259
2021-06-29 11:25:14 +10:00
Damien Elmes
fdfcfee5d6
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
70fd92dca4
Merge pull request #1260 from ankitects/option-columns
...
use css columns instead of grid
2021-06-29 11:21:45 +10:00
Henrik Giesel
48afafb04e
Make input in TextInputModal in dark mode visible
2021-06-29 03:20:15 +02:00
Damien Elmes
e26f461ada
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
33a9afaa1b
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
5b14a2968a
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
27313ba53d
Scroll to first sidebar search match
2021-06-28 14:44:09 +03:00
RumovZ
1be1ca5911
Fix id check for today and card state items
2021-06-28 12:55:59 +02:00
Damien Elmes
c0dccee9fa
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
f9560586cb
PEP8 collection.py
2021-06-27 15:12:22 +10:00
Damien Elmes
fba156ec93
PEP8 models.py
2021-06-27 14:30:00 +10:00
Damien Elmes
3c46c9a7eb
PEP8 decks.py
2021-06-27 14:02:48 +10:00
Damien Elmes
d6e3964151
PEP8 cards.py
2021-06-27 12:12:23 +10:00
Damien Elmes
cd80acce55
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
d73231dbdc
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
5e41eb7565
add a helper so we can get semi-automatic camelCase conversion
2021-06-26 11:33:35 +10:00
Damien Elmes
b912b2d145
enable some pylint convention tests in pylib
2021-06-26 10:11:05 +10:00
Damien Elmes
5d106a4c93
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
f9dd95254b
revert to % format string to avoid breaking add-on
...
partially reverts 3572f0a0c6
https://forums.ankiweb.net/t/anki-2-1-45-beta/10664/50
2021-06-26 08:39:16 +10:00
Damien Elmes
3670a291a9
fix error when user confirms adding cloze to basic type
2021-06-26 08:35:24 +10:00
RumovZ
5cc2932fcb
Add hook "browser_sidebar_will_show_context_menu"
2021-06-25 17:01:17 +02:00
Damien Elmes
14a2cc44ac
update to latest rusqlite
2021-06-25 16:22:21 +10:00
Damien Elmes
795afb7068
update most rust deps; skip rusqlite
2021-06-25 15:35:25 +10:00
Damien Elmes
50e7d6ea00
disable cloze&math buttons in html mode
...
Following on from 35777bb0ca
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
f17a3ae010
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
78a7620079
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
130ffca90c
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
82578b8f1a
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
1599526726
Make Codable abstract more over its textarea v codemirror when using fieldHTML
2021-06-24 19:55:50 +02:00
Henrik Giesel
9f0343f591
Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML
2021-06-24 19:15:07 +02:00
RumovZ
7a82ea01b8
Fix expanding/collapsing tags triggering refresh
2021-06-24 17:27:53 +02:00