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

Splitting windows might not behave as some expect #260

Open
jackcasey opened this issue Mar 8, 2017 · 1 comment
Open

Splitting windows might not behave as some expect #260

jackcasey opened this issue Mar 8, 2017 · 1 comment

Comments

@jackcasey
Copy link
Contributor

This is a discussion rather than a bug.

I find the default behaviour of splitting windows to be unexpected/inefficient. Currently splitting will open and focus an empty pane. This allows you to immediately open a new file from eg SPC P F so does make sense for some people. (behaviour #1)

In spacemacs (as far as I can see) the default is to open and focus a (live) copy of the current buffer. (behaviour #2) I find this the least useful personally, I rarely need the same file open twice.

I think what I'd prefer (personally) is to open and focus the new pane and move the current buffer into the new pane, removing it from the old pane. (behaviour #3) I think I tend to open files first and organise for side-by-side second.

Obviously this is a personal choice and we can override behaviour individually. Behaviours 2 and 3 above are available from pane:split-right-and-copy-active-item and pane:split-right-and-move-active-item. (You need to put them as keybinds in .proton and use the :target ".editor.is-focused" 'trick'. )

But I was wondering what people's opinions on this are and if the defaults might require changing? Seems like if anything we should match the spacemacs default?

There are also additional options that could be used more efficiently in my opinion with shift (currently creates and focuses empty pane on the other side) and other keys (/ vs v or '_' vs s - currently duplicate bindings)

Also perhaps 'moving a pane' (using SPC w L for example) should open a new pane if one doesn't exist to move it in to. This would be useful I think. Currently this raises an error. This would probably be a fix to the move-panes package rather than in proton.

Anyone have any thoughts? Feel free to say you think it's totally fine as is and I'll just use overrides locally :)

@agustif
Copy link
Contributor

agustif commented Apr 24, 2017

I remember using this package in the past: https://atom.io/packages/pain-split

I also remember the console started giving me some -deprecation- notices when using it...

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

2 participants