821d301de3
Added sorting for cards
2025-08-21 03:30:04 +01:00
6b5034c544
Fixed when you a disambiguated name in first
...
Still should probably clean up the return values.
Also should look into how to exit early from the script
2025-08-21 03:09:17 +01:00
43a75c0b92
Added some dbg
...
Also found a bug
2025-08-21 02:46:20 +01:00
3df07d7622
Added some more explanation around the script
2025-08-21 02:11:55 +01:00
af1ac9b5fa
Updated update and added an update script
...
The --update flag accepts the file no rather than goes to download.
Simpler. Better.
Don't need the entire download.rs file now
2025-08-21 00:18:26 +01:00
9f9a0b1fb7
Sorted results by closeness
2025-08-20 23:28:10 +01:00
3e1b89312a
String closeness seems alright
...
Might be worth sorting by relevance
2025-08-20 23:23:35 +01:00
3c78637809
Separated previously used function
2025-08-20 22:37:55 +01:00
e40a64579b
Scryfall-type search is working
2025-08-20 22:30:57 +01:00
e966a22707
Added some return codes for later usage
...
Fixed a quoting bug
2025-08-20 21:35:53 +01:00
3f7cd6353a
Moved string matching to sqlite
...
Probably (definitely more efficient)
2025-08-20 21:08:12 +01:00
bcf68c8332
Added some rofi stuff for easier & quicker interaction
...
Looking actually pretty okay!
2025-08-19 23:01:32 +01:00
3f4af21a93
Search with uppercase should work
...
I made the search string also lowercase
2025-08-19 22:12:18 +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
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
906aaa1e59
Using ureq to download files
...
I might just throw out the TempFile thing - should actually save them somewhere. As
I think it would likely be useful for testing too
2025-08-13 20:22:49 +01:00