Skip to content

chatEditor.action.undoHunk is bound to ctrl+n #284845

@Tyriar

Description

@Tyriar

Ctrl+n is such an important keybinding for me, regardless of where I am ctrl+n should create a new file. When in a change is activeit ends up changing the diff totally unexpectedly which is very disorienting. After doing this I press ctrl+u hoping that it undid the undo, then I have too many tabs to double click the empty area so I need to click another file without edits and press ctrl+n.

keybinding: {
when: ContextKeyExpr.and(ctxCursorInChangeRange, ContextKeyExpr.or(EditorContextKeys.focus, NOTEBOOK_CELL_LIST_FOCUSED)),
weight: KeybindingWeight.WorkbenchContrib + 1,
primary: _accept
? KeyMod.CtrlCmd | KeyCode.KeyY
: KeyMod.CtrlCmd | KeyCode.KeyN
},

Image Image

What I was doing when I hit this was trying to format some text to show the model what the right way of doing it was, but it's important that it happens in a monospace font for alignment:

Image

Feel free to close if it's by design as it's been in for months now. I found it very confusing when hitting this but luckily I have enough knowledge to investigate. I'll unbind it here so my problem is resolved as I only ever keep all edits anyway.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions