Commit graph

40 commits

Author SHA1 Message Date
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
Kovid Goyal
81b28bc1bd
More work on refactoring window groups, stack layout works 2020-05-12 22:43:54 +05:30
Kovid Goyal
e9c4d540b1
More work on refactoring window groups 2020-05-12 22:43:54 +05:30
Kovid Goyal
50d9718c68
Start work on refactoring management of windows 2020-05-12 22:43:53 +05:30