Commit Graph

88 Commits

Author SHA1 Message Date
c1e634b473 Merge app with machine 2024-02-18 14:24:54 +01:00
9a803c1dde Rename state to machine 2024-02-18 14:05:07 +01:00
d427612bbf Move tests 2024-02-18 14:01:32 +01:00
127da2b180 Simplify tests 2024-02-18 13:54:29 +01:00
47bae4957d Move search from selection to search state 2024-02-18 13:45:02 +01:00
b5afa24b7e Move some tests around 2024-02-18 12:29:02 +01:00
24daaff2a1 Fix a clippy lint
Some checks failed
Cargo CI / Build and Test (pull_request) Failing after 1m39s
Cargo CI / Lint (pull_request) Successful in 1m11s
2024-02-18 02:26:09 +01:00
7ceb610bde lint
Some checks failed
Cargo CI / Build and Test (pull_request) Failing after 3m5s
Cargo CI / Lint (pull_request) Failing after 1m11s
2024-02-18 02:19:18 +01:00
954199b001 Split code for states 2024-02-18 01:39:33 +01:00
a68063e7c8 Convenience 2024-02-17 23:32:06 +01:00
8ca6c4d36b Make states generic 2024-02-17 22:53:46 +01:00
6b7e3ad232 Split states into own structs 2024-02-17 22:53:33 +01:00
001bc81b0d Extract public interface of app 2024-02-17 22:34:37 +01:00
e96963f37a Improvements 2024-02-17 22:07:27 +01:00
c2920aac81 State machine solution works
Some checks failed
Cargo CI / Build and Test (pull_request) Failing after 1m42s
Cargo CI / Lint (pull_request) Successful in 1m14s
2024-02-17 10:03:30 +01:00
5979e75dcd Lints
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 3m5s
Cargo CI / Lint (pull_request) Successful in 1m13s
2024-02-15 20:52:06 +01:00
b34cc9c662 Complete unit tests 2024-02-15 20:44:02 +01:00
55129ffcfc Minor change 2024-02-13 07:44:20 +01:00
9cf29b99b8 Save entire list state when beginning search 2024-02-13 07:38:28 +01:00
5b7263d5d8 Implement cancel search 2024-02-12 23:18:28 +01:00
a29a3fa3ce Implement step back 2024-02-12 23:09:19 +01:00
488d20273e Add search_next 2024-02-12 22:52:18 +01:00
39e0c7c3f6 Clarify names 2024-02-12 22:33:54 +01:00
cc3de25192 memoization works 2024-02-12 22:30:02 +01:00
f8815982f4 More intuitive search behaviour 2024-02-12 20:11:18 +01:00
77790b8944 Use linear search instead for more flexibility 2024-02-11 23:03:58 +01:00
aca4628594 Correct-ish implementation with binary search 2024-02-11 16:54:48 +01:00
0b697f5484 Unit tests
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m40s
Cargo CI / Lint (pull_request) Successful in 1m14s
2024-02-11 10:58:56 +01:00
cea3516c60 Add incremental search 2024-02-11 10:03:49 +01:00
8fd11c4f57 Search mode input 2024-02-11 09:05:04 +01:00
973db2a753 No need to require column number
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m39s
Cargo CI / Lint (pull_request) Successful in 1m13s
2024-02-11 08:37:20 +01:00
c4dc0d173b Bump dependencies (#133)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m40s
Cargo CI / Lint (push) Successful in 1m13s
Cargo CI / Build and Test (pull_request) Successful in 3m0s
Cargo CI / Lint (pull_request) Successful in 1m12s
Closes #132

Reviewed-on: #133
2024-02-10 23:47:26 +01:00
6a18c5d9cc Add a minibuffer (#131)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m43s
Cargo CI / Lint (push) Successful in 1m15s
Closes #125

Reviewed-on: #131
2024-02-10 23:25:59 +01:00
de564eb1a0 Remove serde feature from uuid and url dependencies (#130)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m43s
Cargo CI / Lint (push) Successful in 1m17s
Cargo CI / Build and Test (pull_request) Successful in 1m41s
Cargo CI / Lint (pull_request) Successful in 1m16s
Closes #129

Reviewed-on: #130
2024-02-10 20:58:40 +01:00
fad49a48b8 Make serde dependency optional (#128)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m1s
Cargo CI / Lint (push) Successful in 42s
Cargo CI / Build and Test (pull_request) Successful in 1m1s
Cargo CI / Lint (pull_request) Successful in 45s
Closes #127

Reviewed-on: #128
2024-02-10 20:38:14 +01:00
36b4918a44 Limit the information stored in the database (#126)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m2s
Cargo CI / Build and Test (pull_request) Successful in 1m4s
Cargo CI / Lint (pull_request) Successful in 41s
Cargo CI / Lint (push) Successful in 42s
Closes #118
Closes #68

Reviewed-on: #126
2024-02-10 20:28:52 +01:00
87de8d2b4e Add critical error state (#124)
All checks were successful
Cargo CI / Lint (push) Successful in 42s
Cargo CI / Build and Test (push) Successful in 1m2s
Closes #123

Reviewed-on: #124
2024-02-09 20:07:48 +01:00
c2506657c3 Streamline adding new URL types (#122)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m0s
Cargo CI / Lint (push) Successful in 43s
Closes #117

Reviewed-on: #122
2024-02-09 18:41:20 +01:00
9e9c6a1a4b Add support for PgUp and PgDn scrolling (#121)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m4s
Cargo CI / Lint (push) Successful in 44s
Cargo CI / Build and Test (pull_request) Successful in 2m41s
Cargo CI / Lint (pull_request) Successful in 44s
Closes #119

Reviewed-on: #121
2024-02-05 23:44:30 +01:00
e7413ed885 Add shortcut to reload database and/or library (#116)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m3s
Cargo CI / Lint (push) Successful in 44s
Cargo CI / Build and Test (pull_request) Successful in 2m22s
Cargo CI / Lint (pull_request) Successful in 43s
Closes #105

Reviewed-on: #116
2024-02-03 14:32:13 +01:00
ba85505c9a Split lib.rs into smaller files (#115)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m2s
Cargo CI / Lint (push) Successful in 44s
Cargo CI / Build and Test (pull_request) Successful in 2m23s
Cargo CI / Lint (pull_request) Successful in 44s
Closes #110

Reviewed-on: #115
2024-01-22 23:01:34 +01:00
6e9249e265 Separate the collection from beets output in tests (#114)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m4s
Cargo CI / Lint (push) Successful in 42s
Cargo CI / Build and Test (pull_request) Successful in 1m3s
Cargo CI / Lint (pull_request) Successful in 42s
Closes #113

Reviewed-on: #114
2024-01-21 15:29:37 +01:00
267f4a5461 Help message for musichoard-edit artist sort are not showing (#112)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m3s
Cargo CI / Lint (push) Successful in 43s
Cargo CI / Build and Test (pull_request) Successful in 1m5s
Cargo CI / Lint (pull_request) Successful in 43s
Closes #111

Reviewed-on: #112
2024-01-14 15:57:18 +01:00
d876b75d14 Artists with a _sort field show up twice (#109)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m5s
Cargo CI / Lint (push) Successful in 44s
Closes #108

Reviewed-on: #109
2024-01-14 15:46:33 +01:00
3109e576e3 Sort by <field>_sort from tags if it is available (#107)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m3s
Cargo CI / Lint (push) Successful in 44s
Closes #73

Reviewed-on: #107
2024-01-13 15:42:04 +01:00
83675c25e6 Missing docstrings (#102)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m1s
Cargo CI / Lint (push) Successful in 44s
Cargo CI / Build and Test (pull_request) Successful in 2m26s
Cargo CI / Lint (pull_request) Successful in 45s
Closes #98

Reviewed-on: #102
2024-01-12 21:52:06 +01:00
95ee681229 IDatabase::load should return D not take a mutable reference of it (#99)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m1s
Cargo CI / Lint (push) Successful in 43s
Cargo CI / Build and Test (pull_request) Successful in 1m1s
Cargo CI / Lint (pull_request) Successful in 45s
Closes #96

Reviewed-on: #99
2024-01-12 21:34:01 +01:00
a315bf4229 Fix with_xxx function naming in main.rs (#101)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m0s
Cargo CI / Lint (push) Successful in 44s
Cargo CI / Build and Test (pull_request) Successful in 1m0s
Cargo CI / Lint (pull_request) Successful in 42s
Closes #100

Reviewed-on: #101
2024-01-12 21:15:59 +01:00
845e9b09f4 Distinguish NoLibrary/NoDatabase from EmptyLibrary/EmptyDatabase (#97)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m1s
Cargo CI / Lint (push) Successful in 47s
Cargo CI / Build and Test (pull_request) Successful in 1m2s
Cargo CI / Lint (pull_request) Successful in 44s
Closes #95

Reviewed-on: #97
2024-01-12 20:42:37 +01:00
d528511249 Make it possible to launch main binary without database and/or library (#88)
All checks were successful
Cargo CI / Build and Test (push) Successful in 1m1s
Cargo CI / Lint (push) Successful in 43s
Cargo CI / Build and Test (pull_request) Successful in 2m23s
Cargo CI / Lint (pull_request) Successful in 44s
Closes #87

Reviewed-on: #88
2024-01-11 23:27:01 +01:00