Comments (9)
I like the idea about reusing "closed" views in existing windows rather than creating a new one, but don't expect a quick implementation because my current focus lies on: Cacodaimon/GhostText-for-Chrome#26 .
from ghosttext.
That's fine. Take all the time you need. Thanks for the response!
from ghosttext.
From what I remember GT already reuses inactive GT-Sublime tabs if that option is disabled. Try just disabling it and moving a GT-Sublime tab to its own window to have a behavior similar to what you want.
from ghosttext.
No currently when new_windows_on_connect
is enabled a new windows gets created on each request , regardless if there is already a window with an disconnected view.
from ghosttext.
I took the time to make some thoughts about this issue.
The main problem is that ST has no method to focus (bring to top) a window, therefore we had to build https://github.com/Cacodaimon/GhostText-for-SublimeText/blob/master/FocusSublimeWindow.py which uses some OS tools like nircmd
on Microsoft Windows to bring a window to the top. This works but it focuses a random ST window.
The idea behind new_window_on_connect
was to create a new window, which gets focused by ST, on each connect. By reusing "empty" ST windows we are not able to focus the particular window.
Reusing an "empty" window would be possible but we are currently not able to ensure that the right window gets focused, so I'm thinking that this issue is currently not feasible although I like your idea.
Maybe we can reopen this issue when ST extends it's API.
from ghosttext.
I understand your decision. Thanks for the comment!
from ghosttext.
Maybe this feature come very close to your needs: #39
from ghosttext.
Thanks for the heads-up! I will give it a try over the next few days.
from ghosttext.
@Cacodaimon close_view_on_disconnect
is working great for me so far. Kudos and thanks for the continued effort you guys put into this plugin! Can't imagine writing lengthy comments without GhostText any more :)!
from ghosttext.
Related Issues (20)
- Problem with two-way sync on firefox and neovim HOT 2
- CodeMirror 6 / jupyter notebook 7 issues HOT 2
- CodeMirror 6 only works on the first connection, then a reload is required
- submit form changes from text editor HOT 2
- textarea modified by javascript HOT 1
- GhostText for input fields HOT 2
- Not Working for Cinny and Element HOT 1
- Support for github.dev and vscode.dev HOT 1
- Doesn't seem to work on StackOverflow.com HOT 11
- is it secure to listen on *:4001 ? HOT 1
- Does it work in codecademy editor? (Monaco editor) HOT 3
- GhostText doesn't work with Monaco editor on CodeSignal
- VS Code Saving clears out textarea HOT 2
- GhostText cannot detect or edit TinyMCE content HOT 3
- Migrate to Manifest V3 HOT 1
- Release version for Safari HOT 1
- After recent upgrade, GhostText disconnects from editor after 30 seconds HOT 12
- The connection to the port is broken. Browser Firefox developer HOT 3
- Disconnected on save HOT 2
- Use node-native WebSocket
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghosttext.