Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Make staging/unstaging keybinding consistent #1820

@kuychaco

Description

@kuychaco

Prerequisites

Description

@as-cii kindly pointed out that with the new in-editor diff view our key-bindings for staging/unstaging are inconsistent between the diff view and the staging view.

Previously enter staged/unstaged changes in the diff view. Since we converted this view to use an editor and we hope to implement editable diffs, we'll want enter to have its default behavior of entering new lines.

#1512 re-mapped the commands for staging/unstaging changes in the diff view to cmd-enter. In the git panel we are still using enter to stage/unstage files.

Other relevant keybindings include

  • o to open file and jump to line
  • delete to discard line
  • any others?

We want consistency across our UI, so here's what I propose:

  • add back previous keybindings to diff view. they are unused anyway because diffs are not yet editable. we can keep the cmd-... keybindings as well
  • cherry-pick these changes to beta so that users on stable never lose their keybindings
  • when we ship editable diffs
    • remove the non-cmd keybindings in the diff view
    • convert staging view keybindings to use the cmd- variants for consistency
    • let users know about change with a notification?
    • in staging view, use enter to open diff view for selected file. currently this is mapped to cmd-left which is not super intuitive/discoverable

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