olmokramer / atom-autohide-tree-view

Hides most of the tree view, reveal it on hover
MIT License
38 stars 7 forks source link

Allow me to customize the hover zone #25

Closed ProLoser closed 9 years ago

ProLoser commented 9 years ago

It would be nice to manually adjust the Hover Area Size and not just the Touch Area Size.

ProLoser commented 9 years ago

Okay I just realized this is Hidden Width. Is there any chance you could make this side bar invisible (like 0 width) and have an invisible hover zone that extends out into the editor pane? This way increasing the hover zone does not decrease the size of the editor pane.

olmokramer commented 9 years ago

Hi, yes indeed the hiddenWidth config is for this.

Allowing to set it to 0 would add a lot of complexity, so I don't know if I want to support this. I'll think about it and see if I can come up with a simpler solution. I've set hiddenWidth to 1, and the tree view is barely visible.

ProLoser commented 9 years ago

So yeah i was thinking just make it 1px but then make the hoverable-area bigger. Like you don't have to move the mouse over the actual gutter. But I switched up my window arrangement a bit and i don't find this as pressing of an issue anymore (before, the mouse would move past the edge of the window, but I reoriented the file tree so I can push the mouse to the edge of the screen).

olmokramer commented 9 years ago

Ah I see. That would be nice! I'll look into implementing it in a while.

olmokramer commented 9 years ago

I just implemented this. There's a new setting, hoverAreaSize, that sets the width of an invisible area on the edge of the screen that you can hover (or click) to show the tree view. You can also set hiddenWidth to 0 now. I'll release this tomorrow, after I can get some more testing done.

olmokramer commented 9 years ago

Hey, I just published the new version. Please let me know what you think!