Skip to content

Commit

Permalink
added shortcuts to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfalafel committed Jul 22, 2024
1 parent 617cb25 commit 146a7f1
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,32 @@ Usage: hextazy [file]
hextazy ./test/all_bytes.bin
```

You can edit the file directly. Please note that there is __no undo__ at the moment.
You can edit the file directly. Please note that the file is __modified immediately without warning__.

Once you're done, press __`q`__ to __exit__.
Once you're done, press __`q`__ or __`Ctrl + C`__ to __exit__.

## Shortcuts

| Key Combination | Action |
|-------------------|--------------|
| `Ctrl + C` | Exit the app. |
| `Ctrl + Q` | __Exit__ the app. |
| `q`  | Exit the app (in _hex editor_ mode). |
| `Ctrl + Z`  | __Undo__ the last write. |
| `Ctrl + Y`  | __Redo__, cancel the last _undo_. |
| `Ctrl + →`  | Jump 4 bytes to the right. |
| `Ctrl + ←`  | Jump 4 bytes to the left. |
| `:` | Open the command bar. |
| `:q` | Exit the app. |
| `/` | Open the search bar. |

### Search

| Key Combination | Action |
|-------------------|--------------|
| `/4142` | Search the hex value `0x4142`, and the ascii string `"4142"`. |
| `n` | Go to the next search result. |
| `Shift + n` | Go to the previous search result. |
| `:s/abc` | Search the _string_ `"acb"`. |
| `:x/4142`   | Search the hex value `0x4142`. |
| `:xi/4142`  | Search the hex value in reverse order: `0x4241`. |

0 comments on commit 146a7f1

Please sign in to comment.