Damien Elmes
3843a4509e
fix sort order toggling
...
We're getting an enum instead of an int in Qt6
normal/reversed have been renamed to ascending/descending; no add-ons
appear to be using the old versions.
2021-10-30 09:14:43 +10:00
RumovZ
ee2ecd0700
Add tooltips for some browser columns
2021-09-30 13:15:09 +02:00
RumovZ
a5193339e7
Rework Find & Replace dialog:
...
- Add option to affect whole collection
- Allow to open without selection
- Add parameter for presetting field
2021-07-13 16:33:45 +02:00
Henrik Giesel
aacf20531e
Add NOTETYPE_FIELD sidebar items
2021-06-30 21:02:23 +02:00
Damien Elmes
c79f8ba88f
in/out -> request/response
...
The saved characters weren't worth the increased difficulty when
reading, and the fact that we were deviating from protobuf norms.
2021-06-20 15:49:20 +10:00
Henrik Giesel
0f658de702
Add escape_anki_wildcards_for_search_node
2021-06-16 09:25:27 +02:00
Henrik Giesel
c5faf39d7c
Make Browser root nodes use "_*" uniformly
2021-06-16 17:19:21 +10:00
RumovZ
5e7a47fdc7
Rename violet to pink
2021-06-01 18:14:43 +02:00
RumovZ
c97c6c6e98
Add violet, turquoise and purple flags
2021-05-31 12:03:30 +02:00
Damien Elmes
9d604f1ad0
make it more ergonomic to search directly via nodes in Rust
2021-04-30 11:37:55 +10:00
Damien Elmes
2cc23ce2bc
Merge pull request #1138 from RumovZ/introduced
...
Add search keyword for "first review in x days"
2021-04-19 18:22:15 +10:00
RumovZ
3cecc7157b
Add sidebar filter "first review today"
2021-04-18 13:27:10 +02:00
Damien Elmes
64ebc32b3d
tidy up Rust imports
...
rustfmt can do this automatically, but only when run with a nightly
toolchain, so it needs to be manually done for now - see rslib/rusfmt.toml
2021-04-18 18:38:54 +10:00
RumovZ
801f52df40
Remove from_config variant in pb SortOrder
...
Instead, fetch the config order on the frontend and pass a builtin
variant into the backend.
That makes the following unnecessary:
* Resolving the config sort in search/mod.rs
* Deserializing the Column enum
* Config accessors for the sort columns
2021-04-10 11:13:42 +02:00
RumovZ
331df75b72
Remove internal clones of pb BrowserRow structs
2021-04-10 09:49:29 +02:00
RumovZ
48b70873cb
Rename column label fields
2021-04-10 09:14:20 +02:00
RumovZ
d7f7deafd4
Store active browser columns in col state
2021-04-09 22:53:02 +02:00
RumovZ
f04ea5a2c7
Move Column logic into main rslib
2021-04-09 19:09:48 +02:00
RumovZ
055a5e8a04
Remove pb SortKind enum and use pb Columns instead
2021-04-09 18:50:30 +02:00
RumovZ
bdd257e140
Merge SortKind enum into Column enum
2021-04-09 18:03:29 +02:00
RumovZ
c74078ea9e
Unify state columns
...
* Remove duplicate backend columns
* Remove duplicate column routines
* Move columns on frontend from state to model
* Generate available columns from Colum enum
* Add second column label for notes mode
2021-04-08 23:48:24 +02:00
RumovZ
dd56dc6650
Rename columns for future mode-independent use
2021-04-08 23:43:48 +02:00
RumovZ
4692a48ef3
Add card mod column for notes mode
2021-04-08 20:14:10 +02:00
RumovZ
2350cd6e91
Add deck column for notes mode
2021-04-08 19:46:06 +02:00
RumovZ
8a131da9a2
Add enum for column sorting
2021-04-08 11:40:24 +02:00
RumovZ
d8a0aa922c
Add enum for column alignment
2021-04-08 11:28:29 +02:00
RumovZ
6c3c479906
Move BrowserColumn into BrowserColumns message
2021-04-08 10:16:06 +02:00
RumovZ
11bdeb9ca4
Add column logic on backend
2021-04-06 19:46:12 +02:00
RumovZ
8779fb5ede
Add note interval column
2021-03-30 23:44:35 +02:00
RumovZ
1ad91a5312
Add note due column
2021-03-30 21:39:15 +02:00
RumovZ
da156cd759
Rename browser_rows to browser_table
...
Reflects the addition of column handling.
2021-03-30 12:08:35 +02:00
RumovZ
ffe77b1291
Add browser column enum for backend
2021-03-30 11:59:52 +02:00
RumovZ
4933b922f7
Add note lapses column
2021-03-29 16:06:15 +02:00
RumovZ
32e538d0db
Add note reps column
2021-03-29 15:52:02 +02:00
RumovZ
0d8b1c9d0b
squash merge browser refactor
...
Closes #1100
2021-03-29 16:14:54 +10:00
Damien Elmes
cfac40febc
switch NoteType to Notetype
...
When used as a variable, we were typically calling it a 'notetype', not
a 'note type'.
2021-03-27 22:03:19 +10:00
Damien Elmes
dc81a7fed0
use mixed case for abbreviations in Rust code
...
So, this is fun. Apparently "DeckId" is considered preferable to the
"DeckID" were were using until now, and the latest clippy will start
warning about it. We could of course disable the warning, but probably
better to bite the bullet and switch to the naming that's generally
considered best.
2021-03-27 19:53:33 +10:00
Damien Elmes
cca1d29cc8
fix warning in latest Rust
2021-03-26 23:06:15 +10:00
Damien Elmes
ff0d346927
move browser_row method into search service
...
For want of a better place to put it. Also split the node conversion
into a separate file.
2021-03-23 18:55:05 +10:00