Commit Graph

13 Commits

Author SHA1 Message Date
6ff0204189 Added comment to possibly explain why rofi -e is exiting early
When double clicking
2025-08-19 23:45:49 +01:00
b6664492fa Improved Null in db
Fixed the rofi error window from instantly being removed with
a double click - there's probably a better way like using some
IGNORE_FIRST_CLICK_FOR_10ms or something
2025-08-19 23:21:42 +01:00
bcf68c8332 Added some rofi stuff for easier & quicker interaction
Looking actually pretty okay!
2025-08-19 23:01:32 +01:00
98af8885a6 Added searching by lower or card name
Also added help strings
2025-08-19 22:02:18 +01:00
9f03e3e11f Seaching card by name works 2025-08-17 01:08:27 +01:00
9a9f42bc1e Changing how to use textdifference thing
I think it'd be better to use text difference if a substring isn't found.

I realised afterwards that I think this is how Scryfall does it anyway.
2025-08-17 00:34:03 +01:00
6558a31619 Matching substrings works
Want to try also using something like this for finding spelling mistakes etc.
https://github.com/life4/textdistance.rs

Going to have to try to do some combination though to ensure exact substring
matches, even when missing the latter half, still work well. Maybe... I dunno
will have to try.
2025-08-16 21:38:34 +01:00
72fa35d41a Got all cards out from db 2025-08-16 03:59:24 +01:00
ff4c58113f Creating database seems alright
Unsure really whether the data is in there properly - but there
is data in there!
2025-08-16 03:41:51 +01:00
9c2d9c1fb7 Fixed matching the BulkType
The serde to_string thing has "" around the strings.
2025-08-16 02:21:43 +01:00
1462401787 Added a utils file
Wanted to separate the higher level config folder stuff from just db module

Because the download module will also want to find cache
2025-08-15 02:00:50 +01:00
5dfdff17c1 Added the start of the db create
Need to do insert (obv), recall, search by name (get the whole name column), and
then display nicely.

Also renamed / used more correctly the "data" folder. I should use cache for
the downloaded .json file from scryfall though
2025-08-15 01:48:16 +01:00
4f095c55ec Moved some files and started skeleton db 2025-08-15 00:55:47 +01:00