-
Notifications
You must be signed in to change notification settings - Fork 69
Add package setting to toggle full-width status-bar #152
Conversation
Here another thought: Separate the status-bar items based on if something is permanent (global) or just temporary (per file): Then the permanent items, like updates etc. could be on the left and under the "global" tree-view. On the right are all the items that change "per file". So the file name would be under the editor and look less disconnected.. ..of course this falls flat for people that moved the tree-view to the right. And it might also be something that not all people like and demand the old the position back. 💭 |
... what we have now works perfectly fine. There's no point changing what we're already used to. I believe many users made that point abundantly clear when v1.7.0 was released. |
I do think what has been proposed in this PR is the best compromise in the short-term. @simurai has a nice idea. It might be a little too late to change the entire arrangement of the status-bar though. But if someone comes up with a clean proposal for how this comes together (including not breaking the existing status-bar API), I'm all for it. It would be nice to have
No it doesn't. Just determine which side the tree-view is on (I'm assuming it's not too hard, from what I know of Atom's API) and switch sides. |
Drag-and-drop might be nice. |
@simurai I think your idea is worth exploring but is still fairly disconnected to what is there in this PR. Maybe open a new issue for discussing the separation of permanent and temporary status-bar items? |
On it.
|
Wow! I really need this setting. Good news. 😄 |
👍 |
That's because this pull-request hasn't been merged yet... |
/cc @atom/feedback |
I'm not so sure. It's nice to have the option, but it also adds extra complexity. For example the One theme has a bottom border for the tree-view that should be removed if the status-bar isn't full-width. Maybe an extra class Is this a good candidate for the @statusBar = document.querySelector('.status-bar')
atom.workspace.addBottomPanel(item: @statusBar, priority: 0) And depending on the theme, might need a |
What's wrong with moving the border to the status bar? I'm also not sure where or how it adds complexity... |
BTW, the Since it's (physically) connected to the status bar, it feels logical that the status bar would have a similar layout-influencing setting as well. Personally, I really think Packages define a nice, neat space for holding package-specific settings, so why not make the most of it? =) |
👍 As someone who toggles the atom-linter notifications quite often, the new position is fairly annoying. |
👍 +1 Lint issues notifications are invisible for me, now that they are below the tree view! |
I'm not entirely against this option, because options are nice to have. Just that in general, adding config options can increase complexity because you have to account for different situations and can't assume certain things anymore. And it might add an extra burden to package/theme authors to test against all the different options. For example it's nice that the tree-view can be moved to the right, but then the notifications cover the tree-view atom/notifications#93 which isn't ideal for some.
Yeah, it's hard to guess what is considered "common use". So I wanted to make sure that:
|
Honestly, I can't see this introducing any issues. Even in uncommon scenarios:
atom.config.get("status-bar.fullWidth");
atom.config.observe("status-bar.fullWidth"); I've also added specs to guard against regressions, just in case.
At least seven other users who've seen this pull request have given a 👍, and a few others have even voiced their approval. |
So... what's happening with this...? |
FWIW this change is driving me seriously batty. Is there an easy way I can get these changes in now? |
Yep! git clone https://github.com/Alhadis/status-bar.git
cd status-bar && git checkout width-setting
apm install && apm link -d . CAVAET: This requires a project to be opened in development mode in order to take effect. Which is what I've been doing every day for over two months now, and I'm getting kinda sick of it. |
Ahh - you're a saint! I installed it in my ~/.atom/packages folder and it seems to work without developer mode. Any reason why you have to run through that process daily? |
Erh, really? I wasn't aware Atom enabled you to "override" packages that way... to date, I've simply been repeating the steps described here. I'm not sure this is expected behaviour. @simurai, any idea if this is a bug? |
Steps I took, in case it's helpful:
I'm on Mac 10.12 if it makes any difference. |
@Alhadis If you use btw. the One themes got changed so that the borders wouldn't be an issue anymore. |
Well, I know that... but seeing a core package listed as both a "Community Package" and a "Core "Package" looked pretty erroneous to me. But I digress. My main question is: what's this bar's status? |
Ya, it's a bit weird that it shows the atom avatar and the download counts for your linked package that isn't really published. |
Eyyyyupp, that'll teach me for trying to be punny with a vague wisecrack ( It was a fatigue-encrypted way of asking if this PR is close to being merged yet... |
Ahh.. hehe.. 😂 Well, I'm fine with either. But we need at least somebody else to review the code. |
I'll send a Mars Bar to any Atom member who gets this and another light-and-easy PR reviewed this week. For real. I say that on the grounds nobody is insane enough to send their address so a sleep-deprived Australian can order them a chocolate bar. |
I'll up the ante and will donate a case of your favorite candy bar (assuming its available on Amazon Prime) to the cause 🍫 |
⬆️ This guy. Right across it. 👍 👌 |
New version of status bar breaks the width setting. |
Not anymore. |
You're a rock star - thank you! |
@nathansobo and I both fixed the same typo, which is all that triggered the conflict. Amazing. |
Thanks @Alhadis. This looks great and it will be nice to have this option. |
If I weren't in the midst of crippling depression, I'd crown this the happiest day of my life. 👍 Thanks, Nathan. |
It is available in Atom 1.13. |
Ah, that's an easy explanation. Thanks! |
thanks! that's good news. |
It's in the latest beta now - working well so far. |
I have writer's block, so I'll just echo @simurai's words, because he put it best:
I agree wholeheartedly, and some other users might too. Artistic rationale aside, stubborn and change-resilient users like me would appreciate having a setting to restore the status-bar's old appearance:
If it needs to be said, the setting's default value is to use the full-width status bar:
This is how the option appears in the package's settings: