FullScreenStatus
Detect programmatically if Sublime Text is running on full screen or distraction free mode
Details
Installs
- Total 3K
- Win 1K
- Mac 1K
- Linux 406
Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
FullScreenStatus
FullScreenStatus is a Sublime Text plugin that is designed to be used by other plugins. It helps to detect if Sublime Text is running on full screen mode, distraction free mode or normal mode. Current Sublime Text version (ST 3 Build 3047) does not provide this information via its API.
Overview
Installation
Package Control
The preferred method of installation is via Sublime Package Control.
- Install Package Control
- Open command palette with Ctrl Shift P
- Type
install package
and hit return. A list of available packages will be displayed. - Type
FullScreenStatus
and hit return. The package will be downloaded into the appropriate directory.
Using Git
- Go to your
Packages
directory. You can locate yourPackages
directory by using the menu item Preferences > Browse Packages… Inside the
Packages
directory, clone FullScreenStatus repository using the command below:git clone https://github.com/maliayas/SublimeText_FullScreenStatus.git FullScreenStatus
Usage
import sublime
if sublime.active_window().settings().get('fss_on_full_screen'):
# ST is running on full screen.
if sublime.active_window().settings().get('fss_on_distraction_free'):
# ST is running on distraction free mode.
Source
Source code of this project is hosted at https://github.com/maliayas/SublimeText_FullScreenStatus. Contributions are welcome via pull requests.
License
FullScreenStatus is released under the MIT License.