docs: Update README with new features and keyboard shortcuts
This commit is contained in:
parent
b8f49880f7
commit
d89a3a25d2
26
readme.md
26
readme.md
|
|
@ -13,18 +13,32 @@ Basic usage: `gtm [filename]`
|
|||
--diff-additions Highlight newly added lines in green
|
||||
--diff-deletions Show deleted lines in red
|
||||
--no-mouse Disable mouse support
|
||||
--mouse Enable mouse support (default)
|
||||
--no-wrap Disable line wrapping
|
||||
--line-numbers Show line numbers
|
||||
-v, --version Show version number
|
||||
```
|
||||
|
||||
|
||||
## Interface
|
||||
|
||||
- use the up/down arrow keys (or h/l) to switch commits in the left pane, or scroll through the file in the right pane
|
||||
- use the left/right arrow keys (or j/k) to switch panes
|
||||
- use the mouse to select commits, switch panes, and resize the panes by dragging the divider
|
||||
- press 's' to show/hide the sidebar
|
||||
- press 'm' to turn mouse support on/off
|
||||
- Use the up/down arrow keys (or j/k) to switch commits in the left pane, or scroll through the file in the right pane
|
||||
- Use the left/right arrow keys (or h/l) to switch panes
|
||||
- Use the mouse to select commits, switch panes, and resize the panes by dragging the divider
|
||||
- Press 's' to show/hide the sidebar
|
||||
- Press 'm' to turn mouse support on/off
|
||||
- Press 'w' to toggle line wrapping
|
||||
- Press 'L' to toggle line numbers
|
||||
- Press '/' to search within the file
|
||||
- Press 'n' to jump to the next search match
|
||||
- Press 'N' to jump to the previous search match
|
||||
- Press 'c' to jump to the next change
|
||||
- Press 'C' to jump to the previous change
|
||||
- Press '?' to show help with all keyboard shortcuts
|
||||
|
||||
- You can select text with the mouse, but you have to go a bit slowly. (Fixing that is on the TODO list.)
|
||||
### Text Selection
|
||||
- Select text with the mouse to copy it to the clipboard
|
||||
- Selection is automatically cleared when scrolling or changing commits
|
||||
- Click on a commit hash in the status bar to copy it to the clipboard
|
||||
|
||||

|
||||
|
|
|
|||
Loading…
Reference in New Issue