-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add key-binding configuration README
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# ⚙️ Configuration | ||
|
||
## .fac.yml | ||
|
||
Configure fac by adding a `.fac.yml` in your `$HOME` directory. With the file in place, the following paramters can be configued: | ||
|
||
```yml | ||
select_local: a | ||
select_incoming: b | ||
toggle_view: c | ||
show_up: d | ||
show_down: e | ||
scroll_up: f | ||
scroll_down: g | ||
edit: h | ||
next: i | ||
previous: j | ||
quit: k | ||
help: l | ||
``` | ||
## 📖 Rules | ||
When parsing `.fac.yml`, fac enforces *three rules.* | ||
|
||
### 1. Invalid key-binding keys | ||
```yml | ||
foobar: f | ||
``` | ||
|
||
> Warning: Invalid key: "fobar" will be ignored | ||
|
||
### 2. Multi-character key-mappings | ||
```yml | ||
select_local: local | ||
``` | ||
|
||
> Warning: Illegal multi-character mapping: "local" will be interpreted as 'l' | ||
|
||
### 3. Duplicate key-mappings | ||
```yml | ||
show_up: u | ||
scroll_up: u | ||
``` | ||
|
||
> Fatal: Duplicate key-mapping: "scroll_up, show_up" are all represented by 'u' |