1
0
Fork 0

Updates readme to include hot keys

This commit is contained in:
sloum 2021-06-25 14:55:09 -07:00
parent a0553b8531
commit d35d17d5f8
1 changed files with 25 additions and 0 deletions

View File

@ -12,6 +12,31 @@ At present there is no keyboard input. This is on the TODO list and should get a
Most of the keys can be figured out if you don't know what they are already. I will mention that the enter key will add the currently typed in number to the top of the stack. If you have a number typed in, but have not hit enter, and you use a non-numeric/non-enter key (+, swap, sqrt, etc) the number will automatically be added to the top of the stack before the function is run.
### Hot Keys
| Key(s) | Effect |
|-------------|-------------------------------------------------------|
| Number Key (`0`-`9`) | Enter the given number |
| `.` | Enter a decimal point to the current input value |
| `Backspace` | Delete a character from the current input value |
| `Enter` | Place the current input value on the top of the stack |
| `Tab` | Toggle the stack view open/closed |
| `Ctrl-q` | Exit gnums |
| `+` | Add |
| `-` | Subtract |
| `*` | Multiply |
| `/` | Divide |
| `!` | Invert the top stack value's sign (+/-) |
| `^` | Exponent |
| `f` | Floor |
| `c` | Ceiling |
| `r` | Round |
| `q` | Square root |
| `o` | Over |
| `s` | Swap |
| `d` | Drop |
| `u` | Dup |
## Dependencies
- Go >= 1.16