RumovZ
ea5fb56f3f
Add translatable search error strings
2021-01-15 09:10:19 +01:00
RumovZ
9d641bcb76
Include context in search error test
2021-01-15 09:09:54 +01:00
RumovZ
e0168c8216
Encode HTML entities in search errors
2021-01-14 23:02:39 +01:00
RumovZ
6f8a9ba2ff
Add search context for certain error kinds
2021-01-14 22:40:07 +01:00
RumovZ
74c2ce8df1
Rename ParseErrorKind to SearchErrorKind
2021-01-14 22:00:52 +01:00
RumovZ
6cbb4b48b2
Add errorkind test
2021-01-14 19:10:12 +01:00
RumovZ
8c6fbd828d
Add FailKinds for unopened/unclosed groups
2021-01-14 19:09:31 +01:00
RumovZ
ae22b78534
Make AnkiError::SearchError work with ParseError
...
Use mock ftl strings for now.
2021-01-14 11:14:55 +01:00
RumovZ
5e971759cf
Fix text node parsers, add FailKind alias
2021-01-14 11:10:33 +01:00
RumovZ
97ed75a322
Optimise term parsers
2021-01-13 14:15:57 +01:00
RumovZ
5fc24ddfde
Move parse errors, add helper func for parse fail
2021-01-13 13:23:25 +01:00
RumovZ
c9b9c73f5e
Fix top-level search errorkinds
2021-01-12 17:32:26 +01:00
RumovZ
c95a592891
Switch parser to custom erros and results
2021-01-12 10:43:12 +01:00
Damien Elmes
3f9b7ea6e2
Merge pull request #914 from hgiesel/previewineditor
...
Preview Button in Editor instead of Browser
2021-01-11 19:12:06 +10:00
Damien Elmes
4b98ce0145
Merge pull request #917 from hgiesel/querynozero3
...
Coerce added/edited:0 to 1, Constrain rated:n to 1-365
2021-01-11 16:24:12 +10:00
Damien Elmes
07e0df5176
Merge pull request #915 from RumovZ/fix-template-filter
...
Fix _template_filter and update want_release_gil()
2021-01-11 16:20:50 +10:00
Damien Elmes
6f83c7120c
Merge pull request #916 from khonkhortisan/patch-1
...
typo
2021-01-11 16:16:09 +10:00
Henrik Giesel
5b1bf8a10e
Fix formatting
2021-01-10 16:38:20 +01:00
Henrik Giesel
40ab80f70e
Add a few rslib unit tests
2021-01-10 16:29:10 +01:00
Henrik Giesel
3d2fcb6215
Adjust pyblib test_find
2021-01-10 16:25:52 +01:00
Henrik Giesel
027677ac6d
Remove coercion in write_rated
2021-01-10 16:23:53 +01:00
Kyle Mills
386f42070c
typo
2021-01-10 07:18:08 -08:00
Henrik Giesel
d7513fd33d
Coerce added/edited:0 to 1, constrain rated:n to 1 <= 365
2021-01-10 16:16:17 +01:00
Henrik Giesel
cd09db2abe
Make keys parameter requiring func parameter in _addButton explicit
2021-01-10 13:42:23 +01:00
RumovZ
3d93d440c9
Also add FilterToSearch to want_release_gil()
2021-01-10 11:31:00 +01:00
RumovZ
9ad005aec5
Don't add 1 when calling _template_filter()
...
See #913 .
2021-01-10 11:30:14 +01:00
Henrik Giesel
956beae044
Close previewer if there is no card to render
2021-01-10 02:01:24 +01:00
Henrik Giesel
961de57ed9
Fix formatting, use shortcut on preview before displaying
2021-01-10 01:50:00 +01:00
Henrik Giesel
90e4cb5bae
Allow closing the Preview Dialog with Ctrl+Shift+P
2021-01-10 01:34:59 +01:00
Henrik Giesel
3e1cf6c986
Prevent error when browser is closed with previewer open
2021-01-10 01:21:52 +01:00
Henrik Giesel
1940c90f62
Activate toggle on hotkey invocation
2021-01-10 01:10:23 +01:00
Damien Elmes
eda1fb49fd
favour readability over brevity in filter conversion
2021-01-10 09:19:33 +10:00
Damien Elmes
ffec5ab461
add type to _named_filter()
...
The ...Value types generated by mypy-protobuf are only available
at typechecking time, and pylint chokes on them despite the use
of annotations from __future__ - so we either need to quote them,
or use # pylint: disable=no-member
2021-01-10 09:11:48 +10:00
Henrik Giesel
5aa6281521
Add shortcut to new preview button
2021-01-10 00:00:19 +01:00
Damien Elmes
cbd4439f30
Merge pull request #913 from RumovZ/fix-write-template
...
Fix ordinal case in write_template
2021-01-10 08:58:00 +10:00
Damien Elmes
6fecea257b
Merge pull request #911 from RumovZ/backend-filters
...
Backend filters
2021-01-10 08:56:57 +10:00
Henrik Giesel
d58f9a6fea
Improve styling of new preview button on light and nightMode
2021-01-09 23:55:39 +01:00
Damien Elmes
9d95e11505
fix protobuf formatting adding carriage returns on Windows
2021-01-10 08:48:20 +10:00
Henrik Giesel
2fa91e6480
Remove preview button from browser.py top bar
2021-01-09 23:25:56 +01:00
Henrik Giesel
f3f1849148
Make button show its toggle state
2021-01-09 23:16:01 +01:00
Henrik Giesel
1e3e7ccfcd
Put Preview button into editor inside browser
2021-01-09 22:34:53 +01:00
RumovZ
8798d84cfd
Format backend.proto
2021-01-09 20:09:47 +01:00
RumovZ
0bf7ad0951
Merge branch 'master' into backend-filters
...
Adapt new formatting.
2021-01-09 19:03:43 +01:00
RumovZ
4911757177
Fix ordinal case in write_template
...
Internal card ordinals start at 0, so add 1 again when writing a
template search string from a parsed ordinal.
2021-01-09 17:30:12 +01:00
RumovZ
02837ebbef
Use explicit wrapper functions to get filters
2021-01-09 16:48:47 +01:00
RumovZ
370c689c83
Prettify frontend filter code
2021-01-09 12:34:46 +01:00
RumovZ
0cb75f5601
Use backend filters instead of literal searches
2021-01-09 10:51:15 +01:00
RumovZ
455b693623
Provide filter searches through backend
2021-01-09 10:50:08 +01:00
Damien Elmes
4ab52b8763
move exports_files call into ts/BUILD.bazel
...
Suspect it has caused a regression when building from an external
repo.
2021-01-09 18:03:26 +10:00
Damien Elmes
1b6f5318e3
document extra formatter
2021-01-09 17:42:26 +10:00