Commit Graph

94 Commits

Author SHA1 Message Date
43a75c0b92 Added some dbg
Also found a bug
2025-08-21 02:46:20 +01:00
130287caa7 Added a wrapper script...
... to the wrapp script around the ... binary

For the purposes of allow me to add a nice shortcut for my window manager
2025-08-21 02:30:31 +01:00
3df07d7622 Added some more explanation around the script 2025-08-21 02:11:55 +01:00
fd358f5d3f Misspelled script stuff seems to be working 2025-08-21 01:56:54 +01:00
f1beae9198 Updated README and starting on more complex rofi script 2025-08-21 01:45:50 +01:00
4dde40b72e updated README 2025-08-21 00:46:44 +01:00
a21520b5e5 Added README 2025-08-21 00:44:34 +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
6ff0204189 Added comment to possibly explain why rofi -e is exiting early
When double clicking
2025-08-19 23:45:49 +01:00
9a8c971d73 Made script mroe POSIX compliant
Remove the "here-string" (<<<) with a "here-document" (<< EOF ... EOF)
2025-08-19 23:26:50 +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
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
da121940da Updated test files and changes in scryfall db
Also removed PromoType - don't need that right now
2025-08-16 02:41:17 +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
d168ca88ec Moved seperate things into separate files 2025-08-15 00:22:18 +01:00
6d21f5e496 Added checking for the correct type 2025-08-14 23:45:42 +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
6b4105ecd9 Selection and Highlighting appears okay
Still need to appropriately test with piles of visible cards > 1
2025-06-28 00:44:03 +01:00
9f1eac75a0 Added Foundation to Pile movement
And made it make a bit more sense wrt Pile to Foundation
2025-06-28 00:30:35 +01:00
16be88c703 Movement with only starting cards is mostly good 2025-06-28 00:23:13 +01:00
7786cac7f5 Corrected Waste and Foundation highlighting
And moved a function to a more logical place in file
2025-06-27 23:35:49 +01:00
67dc528c6a Partially complete the highlighted card movement
Once I write a "lowest visible card" function, then it should
be easy to do the rest
2025-06-27 23:26:01 +01:00
3bc26915d1 Added quit window
Rather than instant quit
2025-06-27 22:27:52 +01:00
f7c5e68860 Added a couple of scripts to do with music 2025-06-27 20:54:54 +01:00
ee895d81eb Implemented the card moving
Need to actually check it's working though
2025-03-09 23:21:20 +00:00
b3b9fb61a5 Removed a useless Enum and started the moving to piles 2025-03-09 22:19:46 +00:00
e86c705b5b Added a help popup 2025-03-09 00:54:34 +00:00
30884d7c35 Added card faces
Not super duper happy with consistency of sizes between different cards
2025-03-09 00:23:02 +00:00
367ad78198 Writing some more test - I don't think all of them should be passing
I'm a bit unsure about the suit checking.
And the whole thing overall - it's kind of just working well first time. Not enough
real code is needing to be edited hah!
2025-03-08 02:51:52 +00:00
8ce03a4b1c Moving to foundations seems to be alright
I think there's probably a few more tests I should write
2025-03-08 02:36:18 +00:00
408978dd4f Added code to push to foundation
Need to write some tests. I have no idea if it works
2025-03-08 02:05:04 +00:00
804ff3f8b1 Adding some pile and foundation stuff
Still not finished though!
2025-03-08 01:20:26 +00:00
7e4cfc638b Fixed display of top card in waste 2025-03-08 00:15:49 +00:00
bcc493d5f9 Made use of the max turns thing
Unsure I'll ever use it... eh
2025-03-08 00:10:20 +00:00