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.

Add some key binding to close diff + file list UIs #52

@benogle

Description

@benogle

Usually I work like this:

  1. Stage some lines, and hunks
  2. Make a commit
  3. Loop until I have nothing more I want to commit

Then I want to get back to writing code, so I want the git UI to all hide. I often use gitx, and with it, I just quit. In the current git package, I

  1. Figure out which panel has focus (maybe diff, maybe file list)
  2. Hit escape if panel
  3. Cmd-w if diff
  4. GOTO 1 if git UI in my face

I really want a single command that's like 'hey, git package, I'm done using you, you can hide now'.

Been thinking that maybe escape when either the diff or file list is focused will hide both of them. Could try it and see if it's invasive. In the previous git prototype, escape in the diff would clear the hunk/line selection, but I think clearing the selection is fine now by just using the arrow keys.

Thoughts?

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