diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-07 10:09:26 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-07 10:51:35 +0200 |
| commit | 79a4f76e93dd25c4eb71af18885b4c043807b78c (patch) | |
| tree | 5aef2bcbd57fc2630ca1e01ab038fa0e9c697da3 /src/client | |
| parent | fix(build): Make sure `assets/man` folder exists before building (diff) | |
| download | sl0ppij-79a4f76e93dd25c4eb71af18885b4c043807b78c.tar.gz sl0ppij-79a4f76e93dd25c4eb71af18885b4c043807b78c.tar.xz sl0ppij-79a4f76e93dd25c4eb71af18885b4c043807b78c.zip | |
Add more Functionality to Unbind
The default keybinds can be unbound either for a specific mode, or for every mode.
It supports either a list of `keybinds`, or a bool indicating that every keybind
should be unbound:
```
keybinds:
unbind: true
```
Will unbind every default binding.
```
keybinds:
unbind: [ Ctrl: 'p']
```
Will unbind every default `^P` binding for each mode.
```
keybinds:
normal:
- unbind: true
```
Will unbind every default keybind for the `normal` mode.
```
keybinds:
normal:
- unbind: [ Alt: 'n', Ctrl: 'g']
```
Will unbind every default keybind for `n` and `^g` for the `normal` mode.
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/layout.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/layout.rs b/src/client/layout.rs index ca1adb4d..3648ece9 100644 --- a/src/client/layout.rs +++ b/src/client/layout.rs @@ -206,7 +206,7 @@ impl Layout { } // It wants to use Path here, but that doesn't compile. - #[warn(clippy::ptr_arg)] + #[allow(clippy::ptr_arg)] pub fn from_defaults(layout_path: &PathBuf, data_dir: &Path) -> Self { Self::new( &data_dir |
