github icon indicating copy to clipboard operation
github copied to clipboard

If do not allow the pending pane items, unstaged changes panes will not auto close.

Open yubaoquan opened this issue 8 years ago • 4 comments

Prerequisites

Description

If user don't check the Allow Pending Pane Items selection in Settings/Core pane, after stage a modified file, the Unstaged Changes pane will not auto close, the next Unstaged Changes will not auto show up.

Steps to Reproduce

  1. Open a git repo;
  2. Open settings>Core, uncheck the Allow Pending Pane Items selection;
  3. Modify two files in the repo;
  4. Click one item in the right pane of Unstaged Changes;
  5. Click Stage File button in the editor;

Expected behavior:

The opened Unstaged Changes pane should close and open another Unstaged Changes pane automatically.

Actual behavior:

The opened Unstaged Changes pane didn't close but became blank and the other pane didn't show up automatically.

Reproduces how often:

100%

Versions

Atom : 1.20.0-beta5 Electron: 1.6.9 Chrome : 56.0.2924.87 Node : 7.4.0

apm 1.18.4 npm 3.10.10 node 6.9.5 x64 python 3.6.1 git 2.11.0

OS: macOS sierra 10.12.6

Additional Information

unstaged

yubaoquan avatar Sep 08 '17 08:09 yubaoquan

Reproducible in Atom-beta 1.21 Fedora Linux x64

hex007 avatar Sep 28 '17 17:09 hex007

This looks related to https://github.com/atom/github/issues/1175.

Arcanemagus avatar Sep 28 '17 18:09 Arcanemagus

Seems related to #391.

For users who don't like enabling pending pane items, the UX is pretty poor and often causes me to resort to the command line or another git tool.

I'd actually be ok with this package operating as if pending pane items were always enabled, or just closing the empty tab if all changes are staged. It's maddening to end up with a pile of empty tabs after staging a few hours worth of work.

zmb3 avatar Dec 16 '17 19:12 zmb3

I posted a workaround over here for those who are still suffering from this behavior.

savetheclocktower avatar Feb 22 '22 01:02 savetheclocktower