-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Configuration file support #304
Copy link
Copy link
Closed
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outD - averageLikely as difficult as most tasks hereLikely as difficult as most tasks hereH - help wantedSomeone please save usSomeone please save usP - lowNice to haveNice to haveS - apiDesign and usabilityDesign and usabilityS - enhancementWouldn't this be the coolest?Wouldn't this be the coolest?
Metadata
Metadata
Assignees
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outD - averageLikely as difficult as most tasks hereLikely as difficult as most tasks hereH - help wantedSomeone please save usSomeone please save usP - lowNice to haveNice to haveS - apiDesign and usabilityDesign and usabilityS - enhancementWouldn't this be the coolest?Wouldn't this be the coolest?
I wanted to create configuration file for keybindings, but I am not sure how to approach it.
Preferably I would want to to save the
VirtualKeyCodeto the configuration file as it's human readable and load it, but I can only go one way: from the code to string (by usingDebugimplementation which isn't the best). I could implement giant match for going the other way, but that seems to be a thing thatwinitshould be doing (maybe with something likestr_to_enum_derivecrate).As serialising/deserialising
VirtualKeyCodeisn't the easiest right now I thought I could do it with scan codes. I don't think that hardcoding the scan codes would be the best idea even just for the default settings, so I looked way to convertVirtualKeyCodeto one, but there doesn't seem to be way to do this either.So I am left wondering how configuration file should be done.