Keymap Parser
This crate provides functionality for parsing keymaps from strings. It defines the structures for representing keys, modifiers, and key combinations, and provides a parser for converting strings into these structures.
Examples
Parse a keymap string into a Node
:
use ;
let input = "ctrl-alt-f";
let node = parse.unwrap;
assert_eq!;
Parse a sequence of keymap strings into a Vec<Node>
:
use ;
let input = "g g";
let nodes = parse_seq.unwrap;
assert_eq!;