Sublime Forum

Detect if ST is on "distraction free" mode

#1

Hi,

Is there a way to know programmatically if ST is running in distraction free mode? I wasn’t able to find a way in API docs and internet. So I’ve written a dummy plugin to help with this. Then I just though I could have asked it here.

My dummy plugin is here: github.com/maliayas/SublimeText … reenStatus

Thanks.

0 Likes

#2

Why not using:

window.settings().set('full-screen', True) window.settings().get('full-screen')

0 Likes

#3

[quote=“bizoo”]Why not using:

window.settings().set('full-screen', True) window.settings().get('full-screen') [/quote]

Thanks. I am a python newbie. Your approach is better than temp files. If I’ve to go with the plugin, I’ll use it.

0 Likes