From a8afb476388931b7282f6b68221f011dd955f033 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Fri, 23 May 2025 22:42:21 +0200 Subject: [PATCH] changed goose keymaps --- lua/plugins/goose.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lua/plugins/goose.lua b/lua/plugins/goose.lua index e6be2c3..44698f6 100644 --- a/lua/plugins/goose.lua +++ b/lua/plugins/goose.lua @@ -3,6 +3,25 @@ return { config = function() require('goose').setup({ keymap = { + global = { + toggle = 'xg', -- Open goose. Close if opened + open_input = 'xx', -- Opens and focuses on input window on insert mode + open_input_new_session = 'xX', -- Opens and focuses on input window on insert mode. Creates a new session + open_output = 'xo', -- Opens and focuses on output window + toggle_focus = 'xt', -- Toggle focus between goose and last window + close = 'xq', -- Close UI windows + toggle_fullscreen = 'xf', -- Toggle between normal and fullscreen mode + select_session = 'xs', -- Select and load a goose session + goose_mode_chat = 'xmc', -- Set goose mode to `chat`. (Tool calling disabled. No editor context besides selections) + goose_mode_auto = 'xma', -- Set goose mode to `auto`. (Default mode with full agent capabilities) + configure_provider = 'xp', -- Quick provider and model switch from predefined list + diff_open = 'xd', -- Opens a diff tab of a modified file since the last goose prompt + diff_next = 'x]', -- Navigate to next file diff + diff_prev = 'x[', -- Navigate to previous file diff + diff_close = 'xc', -- Close diff view tab and return to normal editing + diff_revert_all = 'xra', -- Revert all file changes since the last goose prompt + diff_revert_this = 'xrt', -- Revert current file changes since the last goose prompt + }, window = { submit = '', },