FloppyDisco / marauders-map

0 stars 0 forks source link

move marauder's map keybindings to a new keybindings file #17

Open FloppyDisco opened 5 hours ago

FloppyDisco commented 5 hours ago

move all marauders map keybindings to a new file "maraudersMapKeybindings.json".

if we do this, we would need to add the page keybindings to keybindings.json so that they are always available.

and then when a page is called we would need to add the page keybindings to keybindings.json and THEN remove them after the page is closed to keep it clean

this will clean up people's keybindings.json file.

this means we can change the structure of the keybindings files. an object of pages. with lists of commands. this can provide the order of the spells?

{ "editor" : { stuff... }, "next_page": {... }, ... }

FloppyDisco commented 4 hours ago

these seems like a terrible idea. keybindings HAVE to be in keybindings.json in order to actually be keybindings.

FloppyDisco commented 1 hour ago

don't store in a file. it's an extremely small single json obj store it in global state. fetch and update to manage the page spells.

test if writing and removing the page spells is quick enough for keybindings.json