From c29a409f284d58908bbaa9ca445b7523cd667c27 Mon Sep 17 00:00:00 2001 From: Alex Plate Date: Thu, 23 Nov 2023 15:05:35 +0200 Subject: [PATCH] Log other actions assigned to the escape and enter actions --- .../idea/vim/handler/EditorHandlersChainLogger.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/maddyhome/idea/vim/handler/EditorHandlersChainLogger.kt b/src/main/java/com/maddyhome/idea/vim/handler/EditorHandlersChainLogger.kt index cb38d59507..9daac52fa1 100644 --- a/src/main/java/com/maddyhome/idea/vim/handler/EditorHandlersChainLogger.kt +++ b/src/main/java/com/maddyhome/idea/vim/handler/EditorHandlersChainLogger.kt @@ -15,6 +15,7 @@ import com.intellij.openapi.extensions.ExtensionPointName import com.intellij.openapi.keymap.ex.KeymapManagerEx import com.intellij.openapi.project.Project import com.intellij.openapi.startup.StartupActivity +import com.maddyhome.idea.vim.api.key /** * Logs the chain of handlers for esc and enter @@ -49,6 +50,15 @@ internal class EditorHandlersChainLogger : StartupActivity { val keymapShortcutsForEnter = keymap.getShortcuts(IdeActions.ACTION_EDITOR_ENTER).joinToString() LOG.info("Active keymap (${keymap.name}) shortcuts for esc: $keymapShortcutsForEsc, Shortcuts for enter: $keymapShortcutsForEnter") + + val actionsForEsc = keymap.getActionIds(key("")).joinToString("\n") + val actionsForEnter = keymap.getActionIds(key("")).joinToString("\n") + + LOG.info( + "Also keymap (${keymap.name}) has " + + "the following actions assigned to esc:\n$actionsForEsc " + + "\nand following actions assigned to enter:\n$actionsForEnter" + ) } companion object {