question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple windows and tabs

See original GitHub issue

1. 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:

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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fregantecommented, Feb 7, 2017

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.

1reaction
Sebastinatorcommented, Jun 4, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found