Add resize_window configuration action#1245
Conversation
|
is there some reason you dont like the existing facility for resizing? |
Yes: I need to hit Ctrl+Shift+R, wait the 250+ ms this Python app takes to load, then use W/N/T/S, keys that are unrelated and scattered, then hit Escape. Meanwhile I can just hit Ctrl+Shift+(Left/Right/Up/Down) in Terminator to quickly resize the current terminal instantaneously. And so can I in kitty with this patch now. Is there another way I don't know? |
|
Strange, is python particularly slow on you rmachine? On my four year old laptop, running this kitten takes less than 100ms which is perceptually almost instantaneous. But OK, I'm fine with adding this action, please add a patch for the docs and ping me to review. |
|
Where should I document this? Because on https://sw.kovidgoyal.net/kitty/conf.html, it looks like only actions with a default keyboard shortcut are documented. For example, |
|
The best place would be the layouts section in index.rst where it talks about resizing windows. |
This patch adds the `resize_window` configuration action, which has the
following arguments:
1. Quality of resize amongst `wider`, `narrower`, `taller`, and
`shorter` (mandatory).
2. Increment in number of cells (optional, default: 1).
This makes it possible to configure keys as such:
map ctrl+shift+left resize_window narrower
map ctrl+shift+right resize_window wider
map ctrl+shift+up resize_window taller
map ctrl+shift+down resize_window shorter
and have a behaviour which is somewhat close to Terminator's.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
6d10131 to
d22686d
Compare
|
Done. |
This patch adds the
resize_windowconfiguration action, which has the following arguments:wider,narrower,taller,shorter(mandatory).This makes it possible to configure keys as such:
and have a behaviour which is somewhat close to Terminator's.
Should you accept this idea, I can add documentation in a subsequent patch.