From d559655e2607bc17aff2096551f7113c3fa3af9e Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sun, 21 Jan 2024 22:24:20 +0800 Subject: [PATCH] docs: emacs - magit --- home/base/desktop/editors/emacs/README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/home/base/desktop/editors/emacs/README.md b/home/base/desktop/editors/emacs/README.md index 89482fe7..e299ddde 100644 --- a/home/base/desktop/editors/emacs/README.md +++ b/home/base/desktop/editors/emacs/README.md @@ -189,13 +189,13 @@ SPC s p foo C-; E C-c C-p :%s/foo/bar/g RET Z Z > https://github.com/magit/magit - Magit is a powerful tool that make git operations easy and intuitive. -| Action | Shortcut | -| ------------- | ------------------------ | -| Open Magit | `C-x g` or `SPC + g + g` | -| Switch branch | `SPC + g + b` | +| Action | Shortcut | +| ------------------------ | ------------------------ | +| Open Magit | `C-x g` or `SPC + g + g` | +| Switch branch | `SPC + g + b` | +| Show buffer's commit log | `SPC + g + L` | Shortcuts in magit's pane: @@ -205,6 +205,9 @@ Shortcuts in magit's pane: | Action | Shortcut | | -------------------------------------------------- | --------------------------------------------- | | Quit the current Magit pane | `q` | +| Show log | `l` | +| Show current branch's log | `l + l` | +| Show current reflog | `l + r` | | Commit | `c` | | Stage | `s` | | Unstage | `u` | @@ -218,4 +221,3 @@ Shortcuts in magit's pane: | Show details of the current unit(commit/stage/...) | `` | KeyBinding full list: -