Multiple windows and tabs
See original GitHub issue1. Summary
When I work use GhostText, many windows open for me.
2. Expected behavior
Only one new window open, when I use GhostText.
3. Actual behavior
Multiple windows:
4. Settings
My User/GhostText.sublime-settings
:
{
"new_window_on_connect": true
}
5. Steps to reproduce
The problem is reproduced for me in a version of Sublime Text without plugins and user settings.
I click to Ghost button in Firefox → I select textarea element → one new Sublime Text window and one tab in current Sublime Text window open for me.
If I click to Ghost button in Firefox again 2 times and select textarea element again, 3 new windows and one new tab in current window open for me.
6. Environment
Operating system and version: Windows 10 Enterprise LTSB 64-bit EN Sublime Text: Build 3126 Firefox: 51.0.1 (64-bit) GhostText for Firefox: 1.2.4.1 GhostText for Sublime Text: 1.0.13
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Multitask with windows & tabs - Chromebook Help
Press and hold Alt, then tap Tab until you get to the window you want to open. See two windows at the same...
Read more >How To View Multiple Chrome Tabs at the Same Time
Click the layout you prefer to apply. Now you can see multiple tabs at once without going through the tedious process of resizing...
Read more >Tab Resize - split screen layouts
Split Screen made easy. Resize the CURRENT tab and tabs to the RIGHT into layouts on separate windows. w/ Multi Monitor Support.
Read more >Windows 10: Tips for Managing Multiple Windows - GCFGlobal
You can use Flip to switch between open windows. To do this, press and hold the Alt key on your keyboard, then press...
Read more >Working with Multiple Tabs and Windows
Note: You can also click New Tab or New Window in the Window group on the View tab to open another instance of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks! Yes, that’s definitely an issue here: https://github.com/GhostText/GhostText/blob/master/browser/scripts/content.js#L153
In short, GT-browser’s
focus
events listeners are not cleaned up, so they pile up and are called all at once later.PRs welcome.
Having similar issues with: Firefox 53.0.3 Sublime 3 GhostText Extension 17.6.1.407
Normally works perfectly on fresh start, but after that it stuffs up by displaying multiple instances in Sublime text editor. The number seems to be adding up such that on the 5th attempt, 5 instances will open. I also noticed that if I close any of the instances on Sublime, then the instance that was actively working, stops working. In other words, in order to sync with the browser, all the useless instances must be kept open.