Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions for focusing in a specific direction, not just prev/next #10

Open
stapelberg opened this issue Mar 23, 2015 · 2 comments
Open

Comments

@stapelberg
Copy link

I am used to thinking in terms of “focus the window left of the current window”, not “focus the previous window until I arrive at the window left of the current window”. The latter is what the focus_prev velox action does. Would you be okay with adding an action for the former as well?

@michaelforney
Copy link
Owner

I'm not sure what the best way to determine what the window to the left is. You could just use geometry, which is pretty straightforward, but might not always be what you want. Another option would be to add an extra method to the layout which returns the window to the left, and that would probably be able to make smarter choices.

In either case, I think I would be fine with adding an alternate focus_{left,right,up,down}, and allow the user to bind those to actions in their config if they want.

@DmitryHetman
Copy link

You can made layout just like in tmux. In tmux you can change width and length of window, you can choose window by direction left, right, up, down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants