Skip to content

Commit b2b0f15

Browse files
committed
feat: add a :GpLog command
that opens up the logfile
1 parent 2372d53 commit b2b0f15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/gp/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,6 +1513,10 @@ M.cmd.Agent = function(params)
15131513
end
15141514
end
15151515

1516+
M.cmd.Log = function()
1517+
vim.cmd(string.format('tabnew %s', M.config.log_file))
1518+
end
1519+
15161520
M.cmd.NextAgent = function()
15171521
local buf = vim.api.nvim_get_current_buf()
15181522
local file_name = vim.api.nvim_buf_get_name(buf)

0 commit comments

Comments
 (0)