Skip to content

ioncore.goto_next directionals not really working in floating #365

Open
@kristopolous

Description

@kristopolous

This "bug" has been biting me for I hate to say years but I guess I'm too lazy to have actually looked into it.

In the floating mode, the lua ioncore.goto_next(_chld, 'left') and ioncore.goto_next(_chld, 'right') should probably work like this:

Look at the current window focus top left coordinates. Go to the closest window on the left or right with respect to that. If they are on the same left or right distance coordinate then go to the one whose ABS (up/down) distance is closest. If those are the same, then prefer the LRU in the window stack.

That would allow a deterministic traversal in floating mode and the positioning of windows to act as the focus ring, it's a really powerful mechanism.

Right now it just does some rather unpredictable behavior that I can't really determine. I haven't looked deep into the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions