-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update mode default resolution logic to overwrite, not merge (#35)
Fixes #34. I used the lodash functions instead of object splatting so I didn't have to deal with typing the function 😬. Tested with the following config to ensure that modes were overridden, but args / computed args were merged. ```toml [header] name = "Debug Key Bindings" version = "1.0" [[mode]] name = "a" default = true [[mode]] name = "b" [[path]] id = "actions" name = "Actions" default.mode = ["a", "b"] default.args.to = "up" default.args.select = false [[bind]] path = "actions" key = "x" name = "x" command = "cursorMove" args = { to = "down"} mode = ["a"] [[bind]] path = "actions" key = "x" name = "x" command = "cursorMove" computedArgs = { select = true } mode = ["b"] ``` --------- Co-authored-by: David Little <david.frank.little@gmail.com>
- Loading branch information
1 parent
b01929e
commit 000f525
Showing
4 changed files
with
72 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters