You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Editor commands should not be tightly coupled. Change from a switch to a map of function pointers (interface type)
Eg,
type NCommander interface {}
type VCommander interface {}
etc.
and then have a map (or two?) to link command to function, or key mapping to function. THis would also make it much easier to set bindings in a config file.
The text was updated successfully, but these errors were encountered:
I like this idea, I was planning on doing something like this eventually. I would say low priority for now (as is changing keybindings) until other things are working.
Editor commands should not be tightly coupled. Change from a switch to a map of function pointers (interface type)
Eg,
etc.
and then have a map (or two?) to link command to function, or key mapping to function. THis would also make it much easier to set bindings in a config file.
The text was updated successfully, but these errors were encountered: