Code Monkey home page Code Monkey logo

Comments (6)

jigish avatar jigish commented on August 14, 2024

This is because the order in which I get windows from the API. As a result of the switch operation I may add a constantly updating global list of windows sorted by which window was activated the last. In this case, I should be able to attach a hint letter to every window and keep it the same throughout its lifetime. This would also allow me to save time calculating which hint should be attached to which window which may make the hint operation faster.

from slate.

philc avatar philc commented on August 14, 2024

IMO, sorting that list by the window's X and Y would be more usable than giving each window a consistent hint, because particular windows churn all the time, but "the left half of my screen" stays constant.

from slate.

jigish avatar jigish commented on August 14, 2024

I can agree with that, but the problem I see is even though the "left half of my screen" remains constant the number of windows will always be changing. Thus if I choose to anchor the "beginning" of the window list to the left side of the screen, the hint for the rightmost window will be constantly changing while the hint for the leftmost window will be constant. That seems sort of silly. If I keep the hint tied to the specific window over its lifetime it may be a bit more intuitive, as at least for me I think of the content of each window rather than its location when I want to switch to it. So if I tie, for example, the terminal running my rails to "b" and I think to myself "I need to focus my rails terminal" it seems a bit more natural to just be able to hit "b" again to get to it if I've already done that once.

For now, though, keeping track of windows over their lifetime is part of the switch operation's task which will take a bit more time. So I'll implement the left-to-right ordering as a config as I still feel it would get a bit counterintuitive at times.

from slate.

jigish avatar jigish commented on August 14, 2024

also as a side note, the more windows that are open, the more overhead the left-to-right version will add as I'll have to sort the windows based on x and y coords before I can hint them. hopefully it won't reduce performance too much.

from slate.

jigish avatar jigish commented on August 14, 2024

added windowHintsOrder config.

config windowHintsOrder leftToRight

or

config windowHintsOrder rightToLeft

or

config windowHintsOrder none

default is none.

will be generating 0.4.19 with this fix in the next couple of minutes.

from slate.

jigish avatar jigish commented on August 14, 2024

also - performance impact seems to be minimal

from slate.

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.