oakes / Nightlight

An embedded editor for Clojure
https://sekao.net/nightlight/
The Unlicense
788 stars 35 forks source link

Hide sidebar (Distraction free mode) #28

Closed hswick closed 6 years ago

hswick commented 7 years ago

This feature was inspired by similar Atom functionality.

Allows the user to press ctrl-\ to hide left side bar and settings. While also properly repositioning the editor. Pressing ctrl-\ will make the elements reappear.

keycommands.cljs is added and provides infrastructure to hook up more key commands besides toggle distraction free mode

Adding documentation for featured key commands

MaxBittker commented 6 years ago

i would love this feature

oakes commented 6 years ago

To do this we will need to use a more reactive approach; i.e., setting a boolean value in pref-state and having the left sidebar component show/hide based on it, rather than directly hiding the element as it done here. Closing for now, but we should revisit it once keyboard commands are added, which will probably be soon.

MaxBittker commented 6 years ago

that sounds like a much better solution to me 👍