ryanpcmcquen / obsidian-focus-mode

Add focus mode to Obsidian.
Mozilla Public License 2.0
68 stars 7 forks source link

Remember/restore ribbon state? #9

Closed ryanpcmcquen closed 3 years ago

ryanpcmcquen commented 3 years ago

It might be nice to store the left and right ribbon states when activating 'Focus Mode', so that we could restore those when disabling 'Focus Mode'.

emrergin commented 3 years ago

I definitely support this, since it already exists in https://github.com/razumihin/obsidian-fullscreen-plugin.

apotenza92 commented 3 years ago

I was literally about to post this exact request as well. Just makes sense to maintain state.

ryanpcmcquen commented 3 years ago

I definitely support this, since it already exists in https://github.com/razumihin/obsidian-fullscreen-plugin.

It is a bit different for that plugin. Since it only supports the active pane, which is analogous to 'Super Focus Mode' here, the solution is pretty simple.

We actually have to store state within memory for this. But it really isn't too tricky.

ryanpcmcquen commented 3 years ago

Landed in 1.5.0!