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

Allow specification of the horizontal/vertical layout #19

Open
shalpin opened this issue Oct 11, 2017 · 3 comments
Open

Allow specification of the horizontal/vertical layout #19

shalpin opened this issue Oct 11, 2017 · 3 comments

Comments

@shalpin
Copy link

shalpin commented Oct 11, 2017

At present rat makes the decision for whether splits are horizontal or vertical. Could this be changed so that the user can decide, possibly via the .ratrc?

@ericfreese
Copy link
Owner

What do folks think about having a keybinding to toggle between horizontal/vertical? So the default would be the current "responsive" behavior (dependent on terminal width), but a keybinding would toggle between forced horizontal and forced vertical.

@shalpin
Copy link
Author

shalpin commented Oct 12, 2017

I would like that. It would be nice though if I could use an option to the rat command or in the rc so that I could set my default preference when I start rat. The way I had envisaged it working was that I could pass an option to a new mode to specify horizontal or vertical for each subsequent split.

@ericfreese
Copy link
Owner

ericfreese commented Dec 3, 2017

I'm imagining a new top-level keyword option (sibling to mode, bindkey, source) that could be used to configure global options. Maybe something like this?

option <option-name> <option-value>

e.g.

option split-direction horizontal

Could then define an action in action.go to be used like so:

bindkey | toggle-split-direction

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

No branches or pull requests

2 participants