Kovid Goyal
856fddec3c
Tall/fat layout: When changing the number of full size windows, reset the main axis biases. Fixes #6123
2023-03-20 22:36:18 +05:30
Kovid Goyal
fccd776732
Fix overlay windows not inheriting the per-window padding and margin settings of their parents
...
Fixes #6063
2023-03-01 21:45:17 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
2e8ef66496
Another mypy update another round of spurious errors
2022-11-08 17:17:40 +05:30
Kovid Goyal
f5de08d5fa
Splits layout: Add a new mappable action to move the active window to the screen edge
...
Fixes #5643
2022-11-03 17:40:04 +05:30
ms-test
aab149366d
Check correct pair member
...
I haven't looked deeply, but this looked to be a simple typo unless it's checking one both times because of a type invariant. If that is the case, and the check is correct, then a comment and/or code refactoring to call attention to this would likely be a good idea.
2022-10-16 03:53:16 -04:00
Kovid Goyal
2a5922ce92
Cleanup previous PR
...
The reason maxsplit is 1 is because some layout action in the future may need more
sophisticated args processing, for example, shlex.split() instead of
plain split(), or even a full command line parser.
2022-08-05 08:12:05 +05:30
Steven Moazami
adfcbb004f
Add layout_action to change bias on tall layout
...
Can specify 1 bias to toggle between that and 50%.
Can specify multiple biases to rotate through them with each call to the
layout_action.
Left a comment regarding working around either a possible bug or a
design decision.
2022-08-04 19:29:17 -04:00
Kovid Goyal
a9a9f1ac00
Add a mappable action to toggle the mirrored setting for the tall and fat layouts
...
Fixes #5344
2022-08-03 22:45:38 +05:30
Kovid Goyal
c40ef01445
Fix resizing window that is extra tall/wide because of left-over cells not working reliably
...
Fixes #4913
2022-04-08 15:41:53 +05:30
Kovid Goyal
ab8a4c6b9f
Make per cell bias calculation overridable more easily
2022-04-08 14:52:53 +05:30
Kovid Goyal
6dc1617429
Avoid flicker when starting kittens such as the hints kitten
...
Fixes #4674
2022-03-23 15:55:11 +05:30
Kovid Goyal
ba1b3c3c2d
Fix mypy failures
2022-03-12 08:28:43 +05:30
Kovid Goyal
31a5965b01
Splits layout: A new value for :option:launch --location to auto-select the split axis when splitting existing windows.
2022-02-22 22:37:26 +05:30
pagedown
ba0f61d752
Refactor: More f-string for kitty
2022-01-29 20:17:46 +08:00
Kovid Goyal
4c8ef26141
For the vertical and horizontal layouts have the windows arranged on a ring rather than a plane. This means the first and last window are considered neighbors
...
Fixes #4494
2022-01-11 08:08:11 +05:30
pagedown
f1b6fb397b
Remove redundant variable assignment
2022-01-01 21:28:55 +08:00
Kovid Goyal
d090db380f
Add more type annotations
2021-10-27 13:26:18 +05:30
Kovid Goyal
4494ddd8ff
mypy: Turn on return value checks
...
Its a shame GvR is married to "return None"
https://github.com/python/mypy/issues/7511
2021-10-26 22:39:14 +05:30
Kovid Goyal
0e08c6c660
Fix a one pixel line not being drawn at the bottom edge of the fat and tall layouts
2021-10-25 15:28:49 +05:30
Kovid Goyal
4fd76b09d9
kitty @ ls: Also report layout options
2021-10-21 13:44:06 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
75b73f6821
Allow using neighboring window operations in the stack layout
2021-07-09 08:54:22 +05:30
Kovid Goyal
6d7df1c5e8
Refactor configuration file parsing
...
Now the time for importing the kitty.config module has been halved, from
16ms from 32ms on my machine. Also, the new architecture will eventually
allow for auto generating a bunch of python-to-C boilerplate code.
2021-05-31 17:40:49 +05:30
Kovid Goyal
02fb020dfd
Better fix for minimal border layout issue
...
Keep _set_dimensions() private
2021-05-17 15:30:03 +05:30
Kovid Goyal
bac6ebdf95
Fix incorrect border drawing when multiple tabs and multiple OS Windows are present and some of the OS Windows have tab bars and some dont
...
Fixes #3634
2021-05-17 15:04:33 +05:30
Kovid Goyal
518057489c
Also output layout state in kitty @ ls
2021-04-17 12:11:56 +05:30
Kovid Goyal
6e73d3fac8
Fix extra space at bottom of OS window when using the fat layout with the tab bar at the top
...
Fix #3258
2021-01-25 09:30:14 +05:30
Kovid Goyal
027c5a57f1
Work on porting kittens to use new key infrastructure
...
Also move type definitions into their own module
2021-01-16 20:52:14 +05:30
Kovid Goyal
ad57467c93
Avoid exception when generating minimal borders for empty tab in tall/vertical layouts
2020-08-30 20:41:57 +05:30
Kovid Goyal
31d9f663fc
Simplify border drawing code
2020-08-30 14:05:43 +05:30
Kovid Goyal
f324697c7c
Implement new minimal border style for tall layout
2020-08-30 13:49:34 +05:30
Kovid Goyal
befae7e677
Make borders code for vertical layout re-usable
2020-08-30 11:32:45 +05:30
Kovid Goyal
7a2c2587ba
Use new minimal borders style for vertical layouts
2020-08-30 09:17:14 +05:30
Kovid Goyal
cf3f9d68b3
Use similar border drawing techniques for splits
2020-08-30 08:37:16 +05:30
Kovid Goyal
f01c0945da
Fix mypy failing
2020-08-29 18:08:32 +05:30
Kovid Goyal
7074f9f776
Grid layout: Improve rendering of borders when using minimal borders
2020-08-29 15:53:14 +05:30
Juho Peltonen
ea30c84240
Fix grid layout neighbors
...
Grid layout can have multiple neighbors in one side when either current
column or neighboring column is special.
2020-07-11 23:52:37 +03:00
Juho Peltonen
d4c2b13dda
Prefer most recently activated window when selecting neighbors
...
This affects both activating and moving neighbor windows.
2020-07-11 23:52:33 +03:00
Juho Peltonen
1decae2938
Change splits layout neighbors to only include real neighbors
2020-07-11 21:35:29 +03:00
Kovid Goyal
e7b60a3628
Fix #2763
2020-06-13 20:09:26 +05:30
Kovid Goyal
5c7471910d
Fix #2752
2020-06-09 09:51:15 +05:30
Kovid Goyal
d8896eb210
Fix #2688
2020-05-24 12:40:54 +05:30
Kovid Goyal
80f8692e92
Tall/fat layout: Fix resizing of windows when number of windows is <= num of full size windows not working
2020-05-13 23:33:23 +05:30
Kovid Goyal
25623c758d
Tall and Fat layouts: Add a `mirrored` option to put the full size window on the opposite edge of the screen
...
Fixes #2654
2020-05-13 23:19:34 +05:30
Kovid Goyal
39b2bf963c
Port the splits layout to the new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
70ccc1cf6d
Port Grid layout to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
f801c47d1e
Port vertical/horz layouts to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
01c0e8da93
Tall and Fat layouts ported to new groups API
2020-05-12 22:43:54 +05:30
Kovid Goyal
e844ad6db3
Respect per-window margin/padding in stack layout
...
Also use the margin/padding of the base window for all overlay windows
2020-05-12 22:43:54 +05:30