RumovZ
|
8f754e1525
|
Add FailKinds for unopened/unclosed groups
|
2021-01-14 19:09:31 +01:00 |
|
RumovZ
|
0b73110f82
|
Make AnkiError::SearchError work with ParseError
Use mock ftl strings for now.
|
2021-01-14 11:14:55 +01:00 |
|
RumovZ
|
4afb476f04
|
Fix text node parsers, add FailKind alias
|
2021-01-14 11:10:33 +01:00 |
|
RumovZ
|
3aa15a7139
|
Optimise term parsers
|
2021-01-13 14:15:57 +01:00 |
|
RumovZ
|
447ff6931c
|
Move parse errors, add helper func for parse fail
|
2021-01-13 13:23:25 +01:00 |
|
RumovZ
|
b89381ac95
|
Fix top-level search errorkinds
|
2021-01-12 17:32:26 +01:00 |
|
RumovZ
|
d00c54aacf
|
Switch parser to custom erros and results
|
2021-01-12 10:43:12 +01:00 |
|
Damien Elmes
|
401d5dd9cc
|
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 |
|
Henrik Giesel
|
0b955c3699
|
Fix formatting
|
2021-01-10 16:38:20 +01:00 |
|
Henrik Giesel
|
adf969d37f
|
Add a few rslib unit tests
|
2021-01-10 16:29:10 +01:00 |
|
Henrik Giesel
|
8f01887fe7
|
Remove coercion in write_rated
|
2021-01-10 16:23:53 +01:00 |
|
Henrik Giesel
|
87bc1e69b0
|
Coerce added/edited:0 to 1, constrain rated:n to 1 <= 365
|
2021-01-10 16:16:17 +01:00 |
|
Damien Elmes
|
4ba4e8ca78
|
Merge pull request #913 from RumovZ/fix-write-template
Fix ordinal case in write_template
|
2021-01-10 08:58:00 +10:00 |
|
RumovZ
|
f83553c82a
|
Merge branch 'master' into backend-filters
Adapt new formatting.
|
2021-01-09 19:03:43 +01:00 |
|
RumovZ
|
ca62f3ef80
|
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
|
9ef691c06f
|
Provide filter searches through backend
|
2021-01-09 10:50:08 +01:00 |
|
Damien Elmes
|
56e4e2d518
|
reformat .sql files
|
2021-01-09 14:08:55 +10:00 |
|
Damien Elmes
|
97e3bfe1c0
|
Merge pull request #904 from hgiesel/propdue
Streamlining `is:due`, `prop:due`, and the FutureDue graph
|
2021-01-08 16:34:53 +10:00 |
|
Henrik Giesel
|
4c570785bb
|
Add comment about integer division
|
2021-01-07 20:10:25 +01:00 |
|
Henrik Giesel
|
04a56209c6
|
Restate rslib unit test
|
2021-01-07 19:56:36 +01:00 |
|
Henrik Giesel
|
155a59b80b
|
Search for Learn and PreviewRepeat cards when using prop:due
|
2021-01-07 19:01:10 +01:00 |
|
Henrik Giesel
|
795dcab370
|
Include PreviewRepeat cards in is:due
|
2021-01-07 17:24:10 +01:00 |
|
RumovZ
|
76c16180ae
|
Add native enum for concatenate_search's separator
|
2021-01-07 12:50:57 +01:00 |
|
RumovZ
|
ebe535e42f
|
Add Position in PropertyKind match of writer.rs
|
2021-01-06 23:29:09 +01:00 |
|
RumovZ
|
6ee9e4f58c
|
Merge branch 'master' of https://github.com/ankitects/anki into norm-search
|
2021-01-06 20:57:24 +01:00 |
|
RumovZ
|
d9f7d2e70d
|
Add tests for writer.rs
Also minor adjustments to concatenate_searches.
|
2021-01-06 19:39:34 +01:00 |
|
RumovZ
|
84061a6e6d
|
Implement replace_search_term
|
2021-01-06 14:03:43 +01:00 |
|
RumovZ
|
79d0b5496b
|
Implement concatenate_searches
Fix minor stuff in writer.rs.
|
2021-01-06 14:00:47 +01:00 |
|
RumovZ
|
713db05f27
|
Implement negate_search
|
2021-01-06 13:57:35 +01:00 |
|
Henrik Giesel
|
59cb901a3b
|
Change meaning of "is:learn" to filter on type, not queue
|
2021-01-05 17:36:55 +01:00 |
|
abdo
|
dc51dc6795
|
Rename prop:order to prop:pos
|
2021-01-02 13:35:10 +03:00 |
|
abdo
|
0ad4619833
|
Support prop:order to search for new cards by order
|
2021-01-01 04:36:51 +03:00 |
|
Damien Elmes
|
a0b4948760
|
fix clippy error in unit test
|
2020-12-31 09:48:05 +10:00 |
|
RumovZ
|
95b4e4cc84
|
Make function names more explicit and add docs
|
2020-12-29 11:18:49 +01:00 |
|
RumovZ
|
62753290d8
|
Make normalized search syntax more explicit
Also fix a bug with NoCombining and WordBoundary searches.
|
2020-12-29 11:06:53 +01:00 |
|
RumovZ
|
ecd04f8a59
|
Don't escape isolated -
|
2020-12-22 11:52:17 +01:00 |
|
RumovZ
|
873e96b60a
|
Fix format and tests
|
2020-12-22 11:32:53 +01:00 |
|
RumovZ
|
5b24d9e4a6
|
Expose search writer
|
2020-12-22 11:06:55 +01:00 |
|
RumovZ
|
fcc87d16ea
|
Add search writer
|
2020-12-22 11:04:38 +01:00 |
|
cecini
|
d37ea0f5f7
|
Update rslib dep nom
|
2020-12-15 08:19:52 +00:00 |
|
Damien Elmes
|
a9ea8e11a2
|
fix filtered decks not honoring sort order
https://forums.ankiweb.net/t/2-1-36-filtered-decks-bug/5649/
|
2020-12-09 22:50:49 +10:00 |
|
Damien Elmes
|
009906d0c2
|
fix duplicate search not checking first field
Thanks to abdo for the initial solution. Closes #838
|
2020-11-30 09:27:10 +10:00 |
|
RumovZ
|
540d52c471
|
Comment fix
|
2020-11-27 22:12:36 +01:00 |
|
RumovZ
|
0c9ad7e952
|
Revert implementation of r: prefix
|
2020-11-27 22:10:37 +01:00 |
|
Damien Elmes
|
780f32b8ae
|
fix new Clippy lints
|
2020-11-25 09:12:19 +10:00 |
|
Damien Elmes
|
3923f56cbf
|
fix clippy lints
|
2020-11-24 20:13:05 +10:00 |
|
RumovZ
|
785540bddc
|
Revert changes to normalisation handling
Handle norm calls individually in write_search_node_to_sql again.
|
2020-11-18 23:46:27 +01:00 |
|
RumovZ
|
6e51bad7db
|
Implement the prefix r: to search for raw input
|
2020-11-18 22:26:51 +01:00 |
|
RumovZ
|
c185fb966b
|
Merge branch 'master' into rework-search-parser
Conflicts:
rslib/src/search/sqlwriter.rs
|
2020-11-18 09:04:04 +01:00 |
|
RumovZ
|
b09a398d2d
|
Make - escapable
Treat unescaped - as before but make it escapable with \ to distinguish
the literal from the negator.
|
2020-11-17 18:38:27 +01:00 |
|