Enum mg_settings::Command
[−]
[src]
pub enum Command<T> { Custom(T), Include(String), Map { action: String, keys: Vec<Key>, mode: String, }, Set(String, Value), Unmap { keys: Vec<Key>, mode: String, }, }
The Command
enum represents a command from a config file.
Variants
Custom(T)
A custom command.
Include(String)
An include command includes another configuration file.
Map
A map command creates a new key mapping.
Fields
action: String | The action that will be executed when the |
keys: Vec<Key> | The key shortcut to trigger the action. |
mode: String | The mode in which this mapping is available. |
Set(String, Value)
A set command sets a value to an option.
Unmap
An unmap command removes a key mapping.
Fields
keys: Vec<Key> | The key shortcut to remove. |
mode: String | The mode in which this mapping is available. |