дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 17:47:08 +02:00
In the TODO and Find in Files previews (also Search Everywhere, Bookmarks and Show Usages) and on a diff's editable side, shortcuts of editor actions fell through to CodeMirror's defaultKeymap: with the macOS IntelliJ keymap, Option+Up (Extend Selection) moved the line and changed the file, Option+Shift+Up copied it, and Cmd+D ran Show Diff in the TODO preview; on Windows/Linux Alt+Up/Down moved lines. Previews now publish embeddedEditorFocus while focused, so text actions that need only the view run on them as in a diff pane, and Show Diff no longer takes Cmd+D there. Previews and diff panes use the editor's base keymap, and embeddedEditorKeys drops CodeMirror's own edit for any key the IDE keymap gives to an editor action (history keys included), so where that action needs the file editor the key does nothing. The Find preview's ad-hoc key claim is replaced by the same rule. Co-authored-by: ntbang0901 <[email protected]>