Commit graph

88 commits

Author SHA1 Message Date
Damien Elmes
320cf05a51 escape () in field search 2012-11-06 08:37:38 +09:00
Damien Elmes
7cec4762eb revert to noteCrt if sort order invalid 2012-10-24 00:50:09 +09:00
Damien Elmes
b2e5fe3c7d make sure we include notes table when searching for no tags 2012-10-01 20:45:49 +09:00
Damien Elmes
e37f299fd2 filter on type, not queue, for learn/rev, so we catch suspended 2012-09-10 03:00:25 +09:00
Damien Elmes
fa4f26e560 is:learn should match relearning cards too - filter on queue, not type 2012-09-03 03:20:12 +09:00
Damien Elmes
49ec362ea3 fix findDupes() when no limit provided 2012-07-05 03:22:00 +09:00
Damien Elmes
5212f62198 fix problem with 'or' in findDupes 2012-07-05 01:12:26 +09:00
Damien Elmes
78a209edec catch invalid regex in field search 2012-06-20 10:28:08 +09:00
Damien Elmes
ce83001be6 treat 'not' as a normal search string 2012-06-20 09:37:56 +09:00
Damien Elmes
c27cc17762 findDupes() and findNotes() 2012-05-27 00:12:26 +09:00
Damien Elmes
1e5e574721 add search for added time 2012-05-26 14:50:45 +09:00
Damien Elmes
d25e2453a6 catch invalid grouping 2012-05-26 13:00:01 +09:00
Damien Elmes
e80419fb53 fix case insensitive model check 2012-05-25 20:03:57 +09:00
Damien Elmes
17095ae1fb switch args in rated: search; make ease optional 2012-05-25 11:05:02 +09:00
Damien Elmes
d6bce7c873 start on filter/cram updates, deck:filtered
- cram decks no longer pull cards from other cram decks, as tests like is:due
  don't make sense on crammed decks
- cram decks now default to not overriding the original deck's steps
- remove obsolote dyn_failed sort order - have to fix this in upgrade
- search/limit/order properties have been merged into a list, in case we may
  want to support multiple queries in the future (eg 10 cards from tag A, 20
  cards from tag B)
- added a resched option to disable boosting/failure - not yet implemented
- added an unused flag to allow cards to persist in the cram deck after
  graduation. implementing this will take some work and won't come in 2.0
- instead of is:filtereddeck, use deck:filtered
2012-05-24 13:38:58 +09:00
Damien Elmes
44b4f18e6c cram decks don't pull from other cram decks anymore 2012-05-24 08:31:58 +09:00
Damien Elmes
090e47eb7b optimize deck:* case 2012-05-24 07:28:14 +09:00
Damien Elmes
942beef5de allow != in properties 2012-05-23 23:07:23 +09:00
Damien Elmes
b63ac7e80d turn off not after application 2012-05-23 20:54:03 +09:00
Damien Elmes
6af7f6e846 improved finding
- new per-character tokenizer that is easier to read and maintain
- OR searches now supported
- grouping with ( and ) now supported
- sorting is off by default now
- searching in html is disabled for now, but may come back later
- use ? arguments instead of named arguments to ease porting to other
  platforms
- field:foo is no longer wrapped in implicit wildcards
- avoid joining notes table if it not required - about 30% faster
- fixed sql injection bug in findNids()
- commands no longer have to take care of negation themselves
- commands can return nothing to immediately flag the query as invalid
2012-05-23 20:21:47 +09:00
Damien Elmes
ef4ff86f8c support searches for particular ratings 2012-05-23 14:39:30 +09:00
Damien Elmes
3755a8f82d support matches on card properties 2012-05-23 14:18:44 +09:00
Damien Elmes
a76d34dc19 fix error on negated invalid is: 2012-05-23 13:39:25 +09:00
Damien Elmes
82ead398db field:foo searches should be case insensitive 2012-05-22 06:35:04 +09:00
Damien Elmes
28b5a108f6 wildcard deck searches 2012-05-21 11:45:24 +09:00
Damien Elmes
26f3ab7b9f due sort should sort by type first 2012-05-18 12:02:00 +09:00
Damien Elmes
58257cb5c4 add deck:none 2012-05-05 23:34:11 +09:00
Damien Elmes
0faad28715 fix negation of normal searches 2012-05-05 00:28:14 +09:00
Damien Elmes
58aebc5b55 genCards() on findReplace() 2012-04-25 13:24:54 +09:00
Damien Elmes
5514b75d6b fix card:<n> and card:cloze in cloze types 2012-04-24 02:30:02 +09:00
Damien Elmes
fbefb8a906 remove is:recent 2012-04-17 18:31:46 +09:00
Damien Elmes
bbac32b477 ensure lapsed reviews are scheduled for tomorrow on graduate 2012-04-07 14:28:41 +09:00
Damien Elmes
2f75e99671 ntype -> note 2012-04-07 13:53:55 +09:00
Damien Elmes
2ba5f80cf1 fix field searching and negated field searching 2012-04-07 13:53:03 +09:00
Damien Elmes
73bdad9d70 model:foo is ntype:foo in searches now 2012-03-30 00:03:39 +09:00
Damien Elmes
f7fe1c6590 fix tag:none 2012-03-27 11:18:16 +09:00
Damien Elmes
ccb0c08c9c another find&replace bug 2012-03-24 19:03:14 +09:00
Damien Elmes
ce86670c76 find&replace should ignore notes without provided field 2012-03-24 04:06:51 +09:00
Damien Elmes
f1140cf886 fix inverted deck search case 2012-03-20 02:49:06 +09:00
Damien Elmes
7c712274d8 deck: searches should find it both original and current deck 2012-03-19 22:53:40 +09:00
Damien Elmes
820308e45e fix args in addSearchFieldToken 2012-03-19 21:50:09 +09:00
Damien Elmes
01404fafaa start of cram refactor 2012-03-08 16:47:22 +09:00
Damien Elmes
4f1bcb9356 fix is:recent 2012-01-24 01:04:49 +09:00
Damien Elmes
a9c46b5ccb include subdecks when restricting to deck 2011-12-15 11:57:55 +09:00
Damien Elmes
95106908dd check sort field when searching
If the field they want to search is the one being used to sort, this saves us
having to go the full search route
2011-12-08 09:53:27 +09:00
Damien Elmes
74518264e0 raise an exception when an invalid sort type is passed 2011-11-30 12:34:49 +09:00
Damien Elmes
be3258b0a8 fix field limiting 2011-11-28 20:51:47 +09:00
Damien Elmes
73b80211c2 add current deck limit 2011-11-28 20:48:14 +09:00
Damien Elmes
8c1266ab2a less terse card state searches 2011-11-28 20:18:16 +09:00
Damien Elmes
67e4f0d1cc tweak find code 2011-11-28 20:04:39 +09:00