From 74fc7ae6640845d27caaf1ff0251a618d56d2923 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Wed, 7 Jul 2021 03:13:57 +0530 Subject: [PATCH] Fix command to show git log of current buffer file Currently SPC g L runs `magit-log` which opens a context window for git log with an option selected that limits the log to the file open in buffer. The user then has to press l to actually see the log. The same result can be achieved by calling `magit-log-buffer-file` instead --- modules/config/default/+emacs-bindings.el | 2 +- modules/config/default/+evil-bindings.el | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/config/default/+emacs-bindings.el b/modules/config/default/+emacs-bindings.el index cb9f5ac15..7820f54bf 100644 --- a/modules/config/default/+emacs-bindings.el +++ b/modules/config/default/+emacs-bindings.el @@ -325,7 +325,7 @@ :desc "Magit blame" "B" #'magit-blame-addition :desc "Magit clone" "C" #'magit-clone :desc "Magit fetch" "F" #'magit-fetch - :desc "Magit buffer log" "L" #'magit-log + :desc "Magit buffer log" "L" #'magit-log-buffer-file :desc "Git stage file" "S" #'magit-stage-file :desc "Git unstage file" "U" #'magit-unstage-file (:prefix ("f" . "find") diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index 3d1368bd5..ff8728650 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -445,7 +445,7 @@ :desc "Magit blame" "B" #'magit-blame-addition :desc "Magit clone" "C" #'magit-clone :desc "Magit fetch" "F" #'magit-fetch - :desc "Magit buffer log" "L" #'magit-log + :desc "Magit buffer log" "L" #'magit-log-buffer-file :desc "Git stage file" "S" #'magit-stage-file :desc "Git unstage file" "U" #'magit-unstage-file (:prefix ("f" . "find")