atom / github

:octocat: Git and GitHub integration for Atom
https://github.atom.io
MIT License
1.11k stars 393 forks source link

GitHub and Git tabs always open at launch, and no longer opens in separate pane #2203

Open tz277 opened 5 years ago

tz277 commented 5 years ago

Prerequisites

Description

GitHub and Git tabs not behaving as expected.

Steps to Reproduce

From what I remember:

  1. Summon the GitHub Tab and Git Tab via Ctrl+Shift+9
  2. Drag the GitHub Tab into it's own pane.

After this issue appears once; the issue appears everytime at launch. Furthermore, doing a full reinstall of Atom (eg following these steps: https://flight-manual.atom.io/faq/sections/how-do-i-uninstall-atom-on-macos/ and then installing again) does not fix the issue, and the abnormal behavior appears at launch.

Expected behavior:

Normally (how it's always been since I started using the feature):

Actual behavior:

Now:

Reproduces how often:

Every time.

After this issue appears once; the issue appears everytime at launch. Furthermore, doing a full reinstall of Atom (eg following these steps: https://flight-manual.atom.io/faq/sections/how-do-i-uninstall-atom-on-macos/ and then installing again) does not fix the issue, and the abnormal behavior appears at launch.

Versions

Electron: 2.0.18
Chrome  : 61.0.3163.100
Node    : 8.9.3

macOS Mojave version 10.14.5

image

Additional Information

Thanks! :)

vlmironoff commented 4 years ago

Had the same issue. Try dragging the github tab to the bottom of the atom window and when it becomes a panel collapse it and it shouldn't pop open when not needed.

chrisgo commented 4 years ago

I would also like the git and github panes to not load up on the right when opening Atom (should be hidden until necessary).

The only way to make this not work like this is to disable the entire package (not ideal).

Perhaps this should be a setting in the package itself to toggle [ ] Display git and github panes at startup and you can default it to checked and then allow people to disable it. This is going to be better than having to disable the entire package completely ...

smashwilson commented 4 years ago

Perhaps this should be a setting in the package itself

Nah, this is completely unintentional and shouldn't ever be happening. The only time we intend the git and GitHub tabs to be open on launch are when:

You can see the original implementation way back in #875. At some point this broke and it became much more aggressive about opening on launch. This is a bug.

I don't have time to dig in to this soon but I'd love some help if anyone else wants to dig in :smile: The "initial open" behavior is managed by lib/github-package.js and lib/controllers/root-controller.js, I believe.

Clicking between staged/unstaged changes on the Git Tab opens difference tabs on the same pane occupied by Git Tab.

Reading the original issue this feels like a different effort ☝️

JeffreyDD commented 4 years ago

I have this exact same issue and I'm seriously considering switching to VS Code at the moment. For my, but I'd say any users' use case, the Git tab is completely useless if it is not rendered in a separate pane and shows changes in the same pane as the Git tab is rendered. Also did the complete reinstall, problem persists.

Are we really the only ones dealing with this issue?

caffeinated10xprogrammer commented 4 years ago

I've just encountered the same issue and solved by myself.

My Atom has a GitHub button (which I don't use) at the bottom-right corner that opens normally, and the Git button that was used all the time and is screwed.

I opened the GitHub tab (that functions normally instead of opening up as another tab) and drag the Git tab back into the section. Problem solved.

eposse commented 4 years ago

Same issue here. Incidentally I also have the "Outline" tab always opened at startup.

@ak4702 can you clarify what you mean by "drag the Git tab back into the section"? What section?

kaptron commented 4 years ago

@eposse the solution above also worked for me. Use the Github button to open the right pane, and then drag the "unanchored" Git pane back into the right pane. Attached a screenshot. I really wonder if there's a config setting that is the equivalent to performing this action, but I couldn't find anything relevant.

Git_Atom

caffeinated10xprogrammer commented 4 years ago

@eposse the solution above also worked for me. Use the Github button to open the right pane, and then drag the "unanchored" Git pane back into the right pane. Attached a screenshot. I really wonder if there's a config setting that is the equivalent to performing this action, but I couldn't find anything relevant.

Git_Atom

Precisely what I'm saying!

Xliff commented 4 years ago

This solution also works for me. How can this made to be the default behavior, because If I switch to a new file and open the git controls, it once again replaces the file content, instead of putting them in their own pane.

MaybeItsAdam commented 2 years ago

You can drag the panels back into their original position in the side tab by dragging them to the right hand side of the screen and into the side panel that should open automatically on approach. The arrows needed to open it automatically, however are hidden by some themes such as "One Dark" so my solution was to

change the UI theme to "Atom Dark" and drag the panels into place on the right hand side, the panels will remain there as you return to your original UI theme

This makes it an issue with the "One Dark" theme which removes the arrows and therefore the ability to return them intuitively to their original position

image

Hope this helps