Add default bindings to README.md + reset zoom is now bounded to `=`

This commit is contained in:
KikooDX 2021-01-29 18:32:38 +01:00
parent dca275fb03
commit 16e3620fad
2 changed files with 18 additions and 1 deletions

View File

@ -22,6 +22,23 @@ $ zig build run
```
Press escape to close the program.
# Default keybindings
Movement, hold Shift to expand selection:
* `h`: left
* `j`: down
* `k`: up
* `l`: right
* `y`: up-left
* `u`: up-right
* `b`: down-left
* `n`: down-right
Actions:
* `d`: delete selection
* `+`: increase scale (zoom)
* `-`: decrease scale (dezoom)
* `=`: reset scale
# License
Copyright (c) 2021 KikooDX

View File

@ -120,7 +120,7 @@ pub fn main() !void {
scale += 1;
},
// Reset zoom.
'0' => scale = scale_default,
'=' => scale = scale_default,
else => log("No action for {} key.", .{action}),
}
}