-
Notifications
You must be signed in to change notification settings - Fork 769
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
Add reverse layouts (completion of PR 4246) #4794
base: next
Are you sure you want to change the base?
Commits on Nov 24, 2020
-
Introduce layout_fill_order to Con
The layout fill order allows to configure how Cons are attached to a new layout. The value 'default' keeps the traditional order, filling the layout from left to right, or top lo bottom depending on horizontal or vertical orientation. 'reverse' in turn means to fill a layout from right to left, or bottom to top. This commit does not yet add the behaviour described above, but merely extends data structures to accommodate for this new option. We only store a single fill order per Con and not any additional values for the workspace layout and last split layout as those variables are necessary to deal with the default layout which does not apply to the fill order.
Configuration menu - View commit details
-
Copy full SHA for c4d5fc2 - Browse repository at this point
Copy the full SHA c4d5fc2View commit details -
Teach the test lib about the new reverse layouts
The tree representation was updated to support the new reverse layouts in the form of 'Vr[]' (N.B. the 'r' suffix). cmp_tree() needs to be updated to work with those extended strings.
Configuration menu - View commit details
-
Copy full SHA for 232cc83 - Browse repository at this point
Copy the full SHA 232cc83View commit details -
Hook up saving and restoring for layout fill order
This enables the layout fill order to be saved using i3-save-tree and restored using attach_layout.
Configuration menu - View commit details
-
Copy full SHA for f8709ef - Browse repository at this point
Copy the full SHA f8709efView commit details -
Extend the workspace_layout option to allow setting layout fill order
This adds support to specify the default layout fill order for workspaces. workspace_layout receives an additional optional argument to set layout fill order to reverse.
Configuration menu - View commit details
-
Copy full SHA for 3ff2ebc - Browse repository at this point
Copy the full SHA 3ff2ebcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 78368db - Browse repository at this point
Copy the full SHA 78368dbView commit details -
Extend layout command to allow optional argument 'reverse'
Calling 'layout <layout> reverse' allows to change the current layout to a new layout with reverse fill order.
Configuration menu - View commit details
-
Copy full SHA for a2ff8d0 - Browse repository at this point
Copy the full SHA a2ff8d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74e092b - Browse repository at this point
Copy the full SHA 74e092bView commit details -
Introduce 'split <left|right|up|down>' command
Allows splitting the current con into all directions by creating new horizontal or vertical splits with corresponding layout fill order. This is accomplished by changing tree_split() to accept a direction_t instead of just orientation_t. Also convert 543-layout-reverse.t to use subtests to improve structure and output readability.
Configuration menu - View commit details
-
Copy full SHA for 230c9c5 - Browse repository at this point
Copy the full SHA 230c9c5View commit details -
Draw split indicator close to where new windows will appear
With the newly introduced reverse layouts, new windows can appear on the opposite side of where the split indicator used to be drawn. This updates the drawing code to draw the indicator closer to new windows.
Configuration menu - View commit details
-
Copy full SHA for c0d089e - Browse repository at this point
Copy the full SHA c0d089eView commit details -
Refactor tree insert position assignment
This was a relatively complicated assignment repeated twice. Factor it out into its own function.
Configuration menu - View commit details
-
Copy full SHA for 8346f00 - Browse repository at this point
Copy the full SHA 8346f00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88ea3a4 - Browse repository at this point
Copy the full SHA 88ea3a4View commit details
Commits on Jan 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 10450d4 - Browse repository at this point
Copy the full SHA 10450d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82e48c4 - Browse repository at this point
Copy the full SHA 82e48c4View commit details
Commits on Jan 17, 2022
-
Added documentation for reverse layouts, splitting containers (with
reverse argument) and manipulating layout.
Configuration menu - View commit details
-
Copy full SHA for 616fc6d - Browse repository at this point
Copy the full SHA 616fc6dView commit details
Commits on Apr 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6d6b5db - Browse repository at this point
Copy the full SHA 6d6b5dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c3e662 - Browse repository at this point
Copy the full SHA 4c3e662View commit details
Commits on Jul 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3b01161 - Browse repository at this point
Copy the full SHA 3b01161View commit details
Commits on Aug 5, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 547f5a7 - Browse repository at this point
Copy the full SHA 547f5a7View commit details
Commits on Aug 6, 2022
-
Updated tiling_drag.c to use direction in tree_split (which is the
method parameters for right-to-left layouts.
Configuration menu - View commit details
-
Copy full SHA for 491741d - Browse repository at this point
Copy the full SHA 491741dView commit details