It appears that the FireFox addon doesn’t work with emtpy text areas. It worked once there was some text in the textarea (on the forum here) but the view just doesn’t open in ST3 when the textarea is empty.
Otherwise, GREAT idea!
As an idea for improvement, you could listen to “save” events in on_text_command
(or window, not sure what it is) and then prevent the default if it originated from a ghost text view.
It would also be nice if you could automatically detect the text view that has focus (or had before clicking the button) if there are multiple text areas. And maybe a keyboard shortcut.
Furthermore, I get the following traceback whenever a view is opened:
Traceback (most recent call last):
File "./subprocess.py", line 1112, in _execute_child
finally:
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 526, in run_
return self.run()
File "FocusSublimeWindow in C:\Users\Fichte\AppData\Roaming\Sublime Text 3\Installed Packages\GhostText.sublime-package", line 24, in run
File "./subprocess.py", line 824, in __init__
File "./subprocess.py", line 1118, in _execute_child
# ReadFile will hang.
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
(error translates to “system could not find the specified file”)