Skip to content

python.datascience.(undo|redo)cells with (shift+)cmd+z #1483

@janosh

Description

@janosh

I'd like to add custom keyboard shortcuts for (shift+)cmd+z to undo/redo the last Python interactive action, something like

  {
    "key": "cmd+z",
    "command": "python.datascience.undocells",
    "when": "interactiveWindowFocus"
  },
  {
    "key": "shift+cmd+z",
    "command": "python.datascience.redocells",
    "when": "interactiveWindowFocus"
  }

These shortcuts should trigger only when the interactive window is currently focussed so as not to interfere with the regular undo/redo in the text editor. However, there doesn't seem to be an interactive window equivalent for editorTextFocus like the interactiveWindowFocus suggested above. Could this be added?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions