RectanglePro-Community icon indicating copy to clipboard operation
RectanglePro-Community copied to clipboard

Grid-preserving reflow while moving windows?

Open shaunlebron opened this issue 1 year ago • 2 comments

Proposing new movement commands.

Suppose I have an arrangement of windows A,B,C,D on a grid of sixths:

A B D
A C D

Swapping

Column swapping: window A can be moved left and right:

A B D    B A D    B D A
A C D    C A D    C D A
^          ^          ^

Row swapping: window C can be moved up and down:

A B D    A C D
A C D    A B D
  ^        ^

Fitting?

Column fitting: window C can be moved left and right:

A B D    A B D    A B D
C B D    A C D    A B C
^          ^          ^

(Note that windows A, B, D are resized above.)

Not sure if the fitting part could be done reasonably in the general case, but wanted to include it here.

shaunlebron avatar Dec 05 '23 18:12 shaunlebron

Thanks for the feedback! Perhaps you are coming from a tiling window manager on Linux? I have a large feature on my backlog to add in more auto-tiling with functionality like this, but could see pulling it out and doing this separately.

rxhanson avatar Dec 06 '23 01:12 rxhanson

Perhaps you are coming from a tiling window manager on Linux?

No actually. I’ve only used Rectangle, and only the simplest commands to split left and right. But now I have a lot of windows to organize at work, so I lay them on a grid and was wanting an easy way to move them around like physical blocks, and thought these new commands might approximate that.

could see pulling it out and doing this separately.

This would be great. I hope the “swapping” rules are small enough in scope as a starting point. “Fitting” is definitely not necessary.

shaunlebron avatar Dec 06 '23 18:12 shaunlebron