-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"network_info_on_hover": false, | ||
"log_level": "debug" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Copyright 2017 Glen Harmon | ||
|
||
|
||
from .listener import ToggleNetworkInfoOnHoverCommand |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Copyright 2017 Glen Harmon | ||
|
||
import logging | ||
|
||
import sublime | ||
import sublime_plugin | ||
|
||
logger = logging.getLogger('network_tech.settings.listener') | ||
|
||
|
||
STATUS_KEY = 'Network Tech' | ||
SETTINGS_FILE_NAME = 'Network Tech.sublime-settings' | ||
NETWORK_INFO_ON_HOVER_SETTING_NAME = 'network_info_on_hover' | ||
|
||
class ToggleNetworkInfoOnHoverCommand(sublime_plugin.TextCommand): | ||
|
||
def run(self, edit): | ||
settings = sublime.load_settings(SETTINGS_FILE_NAME) | ||
network_info_on_hover = settings.get(NETWORK_INFO_ON_HOVER_SETTING_NAME, True) | ||
settings.set(NETWORK_INFO_ON_HOVER_SETTING_NAME, not network_info_on_hover) | ||
sublime.save_settings(SETTINGS_FILE_NAME) | ||
|
||
setting_status = 'ON' if not network_info_on_hover else 'OFF' | ||
set_status = 'Network Info Popup: {}'.format(setting_status) | ||
|
||
def clear_status(): | ||
current_status = self.view.get_status(STATUS_KEY) | ||
if set_status == current_status: | ||
self.view.erase_status(STATUS_KEY) | ||
|
||
self.view.set_status(STATUS_KEY, set_status) | ||
sublime.set_timeout_async(clear_status, 4000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# [2.34.0] - 2020.01.23 | ||
|
||
## Added | ||
|
||
* Command: "Network Tech: Toggle Network Info Popup on Hover" | ||
|
||
The popup window with network information that appears when you mouse over a network can be turned on and off with this command. | ||
|
||
Tools → Command Pallet → Network Tech: Toggle Network Info Popup on Hover |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters