From 22bbfb909fd98b32bc1738c34b46231db1c52273 Mon Sep 17 00:00:00 2001
From: "Matthieu C." <886074+teto@users.noreply.github.com>
Date: Tue, 15 Oct 2024 14:50:45 +0200
Subject: [PATCH] chore: rename GpInspectLog to GpLog

and reference the command in the README
---
 README.md         | 4 ++++
 lua/gp/config.lua | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 84aa201a..f2e0b2d8 100644
--- a/README.md
+++ b/README.md
@@ -389,6 +389,10 @@ Choose a new "image agent" based on its name. In the context of images, agent is
 
 Stops all currently running responses and jobs.
 
+#### `:GpLog` <!-- {doc=:GpLog}  -->
+
+Opens the gp.nvim logfile.
+
 #### `:GpInspectPlugin` <!-- {doc=:GpInspectPlugin}  -->
 
 Inspects the GPT prompt plugin object in a new scratch buffer.
diff --git a/lua/gp/config.lua b/lua/gp/config.lua
index c80c3c56..40d84090 100644
--- a/lua/gp/config.lua
+++ b/lua/gp/config.lua
@@ -536,7 +536,7 @@ local config = {
 		end,
 
 		-- GpInspectLog for checking the log file
-		InspectLog = function(plugin, params)
+		Log = function(plugin, params)
 			local log_file = plugin.config.log_file
 			local buffer = plugin.helpers.get_buffer(log_file)
 			if not buffer then