Giter VIP home page Giter VIP logo

Comments (9)

Cacodaimon avatar Cacodaimon commented on May 23, 2024

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.

Feltzer avatar Feltzer commented on May 23, 2024

@Cacodaimon

That's fine. Take all the time you need. Thanks for the response!

from ghosttext.

fregante avatar fregante commented on May 23, 2024

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.

Cacodaimon avatar Cacodaimon commented on May 23, 2024

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.

Cacodaimon avatar Cacodaimon commented on May 23, 2024

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.

Feltzer avatar Feltzer commented on May 23, 2024

I understand your decision. Thanks for the comment!

from ghosttext.

Cacodaimon avatar Cacodaimon commented on May 23, 2024

Maybe this feature come very close to your needs: #39

from ghosttext.

Feltzer avatar Feltzer commented on May 23, 2024

Thanks for the heads-up! I will give it a try over the next few days.

from ghosttext.

Feltzer avatar Feltzer commented on May 23, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.