From 2835529e221ea61f05cccb9ce134e0b56106de22 Mon Sep 17 00:00:00 2001 From: Thore Goll Date: Sat, 25 Nov 2023 14:29:19 +0100 Subject: [PATCH] ADD: Open pull popup from log view --- lua/neogit/buffers/log_view/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/neogit/buffers/log_view/init.lua b/lua/neogit/buffers/log_view/init.lua index 8522a02a7..5cc5488ef 100644 --- a/lua/neogit/buffers/log_view/init.lua +++ b/lua/neogit/buffers/log_view/init.lua @@ -51,6 +51,9 @@ function M:open() [popups.mapping_for("CommitPopup")] = popups.open("commit", function(p) p { commit = self.buffer.ui:get_commit_under_cursor() } end), + [popups.mapping_for("PullPopup")] = popups.open("pull", function(p) + p { commit = self.buffer.ui:get_commit_under_cursor() } + end), [popups.mapping_for("PushPopup")] = popups.open("push", function(p) p { commit = self.buffer.ui:get_commit_under_cursor() } end), @@ -86,6 +89,9 @@ function M:open() [popups.mapping_for("CommitPopup")] = popups.open("commit", function(p) p { commit = self.buffer.ui:get_commit_under_cursor() } end), + [popups.mapping_for("PullPopup")] = popups.open("pull", function(p) + p { commit = self.buffer.ui:get_commit_under_cursor() } + end), [popups.mapping_for("PushPopup")] = popups.open("push", function(p) p { commit = self.buffer.ui:get_commit_under_cursor() } end),