proto-repl icon indicating copy to clipboard operation
proto-repl copied to clipboard

Feature Request: Add toggle to toolbar

Open asampal opened this issue 9 years ago • 7 comments

It would be nice to toggle the proto-repl toolbar sometimes, when focusing on something other than Clojure and where the additional toolbar icons are distracting.

asampal avatar Nov 17 '16 07:11 asampal

The toolbar is a separate package (https://github.com/suda/tool-bar) and the toggle command will show and hide it. Trigger "Toolbar: toggle" in the command pallet. You can set that up as a keybinding in atom if you need to do it quickly.

jasongilman avatar Dec 04 '16 15:12 jasongilman

The problem is that more than one extension can use the toolbar and I'd like a way to disable the items corresponding to each extension individually.

asampal avatar Dec 04 '16 21:12 asampal

That seems reasonable.

jasongilman avatar Dec 04 '16 22:12 jasongilman

Does the toolbar, as currently implemented by @suda currently support the concept of a sub-toolbars?

asampal avatar Dec 05 '16 01:12 asampal

It is possible to reserve more than one toolbar by calling the getToolBar() callback more than once. Then you could have a one part of the toolbar which toggles the second. Would this help?

suda avatar Dec 07 '16 18:12 suda

Well, the ability to toggle toolbars should maybe be broken out into its own extension. Does each toolbar that gets created have a name/identifier? If so, it would be nice to have a toolbar item (or better, a menu entry) and from this controlling toolbar item/menu entry pop up some kind of panel/menu from which any number of enumerated toolbars could be toggled (save itself, of course).

I'm surprised the tool-bar extension hasn't provided this kind of functionality seeing that its very likely people have multiple extensions creating toolbars which can get a unnecessarily crowded, especially when you're not actively using them.

asampal avatar Dec 07 '16 19:12 asampal

You pass the toolbar name when calling getToolBar() callback. There's PR which allows users to control which toolbars are supposed to be visible. Any help here is welcomed :)

suda avatar Dec 07 '16 19:12 suda