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

Panel auto hide option, for when there is nothing to show #185

Closed
wants to merge 1 commit into from

Conversation

supermario
Copy link

Adds a config option:

screenshot 2017-01-15 12 04 37

Which behaves like so:

auto-hide-hkide

Didn't presume to make it default: true as I'm unsure if this is a generally desired behavior, but I prefer to have the visual space when there are no errors, perhaps someone else would too? 😄

@varosi
Copy link

varosi commented Jan 15, 2017

The same will be useful for auto-hiding Completion Hint Panel, too. If it is empty to be hidden.

@lierdakil
Copy link
Contributor

First of, thank you for your work. It's greatly appreciated. I do have some reservations however.

Problem is, there are some control elements on the panel besides check results, f.ex., with ide-haskell-cabal:
image

What do you think about hiding only the output messages, but leaving panel header in place? In essence, something similar to this:
image

I know it still takes up valuable vertical space, which is a limited resource on smaller 16:9 screens (like a WXGA notebook), but I feel that there needs to be some sort of balance between that and control visibility.

Added complexity: special considerations would be needed in case panel is docked to left or right border.

@supermario
Copy link
Author

supermario commented Jan 15, 2017

@lierdakil great point. I think leaving the header panel intact is a great idea, living with a 20px reduction is definitely better than a permanent ~100-200px one IMO!

It would also have the added benefit that you could still see when the plugin is "thinking" on file save – something of which there is no indicator with my current solution.

Happy to give it a bash but unsure if my atom-foo (or js/coffee-foo for that matter) is strong enough 😬 might need some pointers.

@lierdakil lierdakil closed this in 32906a5 Jan 15, 2017
@lierdakil
Copy link
Contributor

Turns out, this was more involved than adding a couple lines here and there, so thank you for offering, but I decided it'd be easier if I do this myself. Most notably, some arcane css-foo was required to make this play nice with panel docked to left/right (see 6a9b115 if interested -- it does some other things besides that, though)

Published as v1.9.0. Please report any issues with output hiding you encounter (it might be a little bit wonky, especially in conjunction with ide-haskell-cabal or ide-haskell-repl). Also it assumes that you have switchTabOnCheck enabled. If you don't, output won't show automatically on new messages -- you'll have to click on tab you want explicitly.

@lierdakil
Copy link
Contributor

@varosi, ac-h implements hiding completion hint panel in v0.7.0, see settings.

@varosi
Copy link

varosi commented Jan 16, 2017

@lierdakil, 10x! I'm waiting for 0.7.0 to be available for download!

@lierdakil
Copy link
Contributor

@varosi, it is already, but you need Atom 1.13.

@varosi
Copy link

varosi commented Jan 16, 2017 via email

@varosi
Copy link

varosi commented Jan 16, 2017 via email

@lierdakil
Copy link
Contributor

I don't see this as a bug. You can manually open collapsed output if you click on any tab, and you can also collapse output manually by clicking on current tab again. So generally speaking, empty non-collapsed output is a perfectly valid state. Of course, I could add a hook to collapse output when setting is triggered, but I'd prefer to avoid this additional complexity.

@varosi
Copy link

varosi commented Jan 16, 2017

Whatever you decide. It's not a big deal. I have just noticed this.

@supermario
Copy link
Author

@lierdakil awesome, works well! 💯

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants