Brance Boren
d0a7be90f9
Fixed call to Tall.neighbors_for_window
2018-11-01 14:55:13 -06:00
Kovid Goyal
cb3671343e
Implement directional movement of windows
2018-09-08 23:51:09 +05:30
Kovid Goyal
b18b705632
Fix overlay window handling when witching to neighboring windows
2018-09-08 23:31:16 +05:30
Kovid Goyal
e39635ea16
Add a new `neighboring_window` function to switch to neighboring windows in the current layout, similar to window movement in vim
...
Fixes #916
2018-09-08 08:59:11 +05:30
Kovid Goyal
791f70e5a2
API to get neighbors from the current layout
2018-09-08 08:09:35 +05:30
Kovid Goyal
a239f41495
minimal borders for the grid layout
2018-07-06 20:23:56 +05:30
Kovid Goyal
b36d6967a5
DRYer
2018-07-06 17:54:01 +05:30
Kovid Goyal
7c1d13b7db
Minimal borders for vertical and horizontal layouts
2018-07-06 17:46:08 +05:30
Kovid Goyal
3e99949db8
Implement minimal borders in the Fat layout
2018-07-06 17:35:23 +05:30
Kovid Goyal
aa12a65a8f
Draw only the minimum borders needed for inactive windows
...
Fixes #699
Note that currently this is only implemented by the Tall layout.
2018-07-06 17:30:53 +05:30
Kovid Goyal
18804efb7e
Let the layout control which window borders are drawn
2018-07-06 17:14:25 +05:30
Kovid Goyal
472a3bc69f
Refactor layout dimension to use per window decoration sizes
2018-07-06 13:17:51 +05:30
Kovid Goyal
f0f1c911ea
Track window neighbors
2018-07-06 13:17:50 +05:30
Kovid Goyal
e35c3cc913
Add an option single_window_margin_width to allow different margins when only a single window is visible in the layout
...
Fixes #688
2018-06-29 09:56:05 +05:30
Kovid Goyal
2931afa0ae
Fix vertical biasing of last window in grid not working when number of windows is odd
2018-05-17 23:42:37 +05:30
Kovid Goyal
2803e45380
Fix swapped row/col when biasing grid layout
2018-05-17 23:39:29 +05:30
Kovid Goyal
965dde599e
Cleanup layout.py
2018-05-17 23:34:41 +05:30
Kovid Goyal
8ea84c97d5
Use an overlay window for window resizing
...
Also implement a remote command to resize windows
2018-05-17 23:26:41 +05:30
Kovid Goyal
83893d762a
Implement resizing for the grid layout
2018-05-17 18:47:41 +05:30
Kovid Goyal
24bed6273b
Simplify grid layout code some more
2018-05-17 17:47:42 +05:30
Kovid Goyal
2a5b314f67
Simplify grid layout code
2018-05-17 17:20:09 +05:30
Kovid Goyal
e3c9fc3fba
DRYer
2018-05-17 17:17:03 +05:30
Kovid Goyal
b81700a8fd
DRYer
2018-05-17 17:12:24 +05:30
Kovid Goyal
b319fd4b93
Implement resizing for vertical and horizontal layouts
2018-05-17 17:09:03 +05:30
Kovid Goyal
190612d507
Make the resize step size configurable
2018-05-17 16:48:35 +05:30
Kovid Goyal
cddfe425e1
Dont keep increasing bias in Tall layout when it wont change the actual layout
...
Also refactor the bias code so that it is shared with the fat layout.
2018-05-17 16:02:42 +05:30
Kovid Goyal
bc6a03a41b
Implement resizing for the Fat layout
2018-05-17 15:19:05 +05:30
Kovid Goyal
e053d1f566
Implement resizing of individual windows in a layout
...
See the Layouts section in the README for details. Fixes #362
Note that it is only implemented for the Tall layout currently. Other
layouts to follow. The implementation might also be refined in the
future.
2018-05-17 15:09:41 +05:30
Kovid Goyal
903df9972a
...
2018-05-16 16:25:41 +05:30
Kovid Goyal
4dcbb1f077
Avoid needless re-allocation of Layout objects on layout change
...
Also allows layout instance data to be preserved when cycling layouts
2018-05-16 16:24:31 +05:30
Kovid Goyal
5158d49781
Generalize bias handling
2018-05-16 15:57:04 +05:30
Kovid Goyal
3fdf47c535
Allow specifying the width of the tall window in the Tall layout as a percentage of available space
...
Also remove the --window-layout option as it was redundant. Same effect
can be achieved using -o enabled_layouts=some_layout,*
2018-05-16 14:02:58 +05:30
theJian
b6517758d9
Add fat layout
2018-05-11 00:59:46 +08:00
Kovid Goyal
14459a7d18
Fix #506
2018-05-03 11:19:11 +05:30
Kovid Goyal
040ae75c77
Remote control: Allow matching windows by number (visible position).
...
Fixes #501
2018-04-28 11:00:42 +05:30
Kovid Goyal
c99588082b
Fix incorrect bottom blank rects in vertical and tall layouts
2018-02-20 10:06:37 +05:30
Kovid Goyal
647b95631f
Add tests for layout operations with an overlay window
2018-02-04 11:28:13 +05:30
Kovid Goyal
aa518b2520
Add tests for basic layout operations
2018-02-04 11:28:13 +05:30
Kovid Goyal
51c0f01539
Support for overlay windows in the layout manager
2018-02-04 11:28:02 +05:30
Kovid Goyal
cc9a19b303
Move set_active_window into base class
...
It was only used in a single sub-class anyway
2018-02-02 13:56:25 +05:30
Kovid Goyal
9ad65f2e1d
Cleanup layouts patch
...
Fix bottom rect in horizontal layout not covering all windows. Fix pep8
issues. Add README and CHANGELOG entries.
2018-01-23 19:35:30 +05:30
Guybrush Threepwood
a6a606ff3d
Added vertical and horizontal layouts
2018-01-23 19:30:41 +05:30
Kovid Goyal
4f12c91fff
Use the new region function everywhere
...
Centralizes window layout calculation and no longer assumes
tab bar geometry
2018-01-19 15:56:07 +05:30
Kovid Goyal
c7e1a12eb6
Have pt_to_px use global_state instead of get_dpi
...
DRYer and reduces code size
2017-12-14 18:04:10 +05:30
Kovid Goyal
9c135f9f4c
Add a grid window layout
...
Fixes #192
2017-12-01 12:16:17 +05:30
Kovid Goyal
f8c7a7a690
more bug fixes
2017-12-01 12:15:33 +05:30
Kovid Goyal
82d17c8a59
DRYer
2017-12-01 12:15:32 +05:30
Kovid Goyal
0ec793e8bc
Finish porting of borders and layout
2017-12-01 12:15:32 +05:30
Kovid Goyal
e11a50ae83
Work on migrating the code needed for application startup
2017-12-01 12:15:32 +05:30
Kovid Goyal
e6df82b255
Move the char grid render call into C
2017-09-15 10:45:24 +05:30