302 Commits

Author SHA1 Message Date
Kovid Goyal
c4c62c1505
When using --keep-focus ensure active history list is not affected
Fixes #4987
2022-04-18 20:23:15 +05:30
Kovid Goyal
b569c01b49
Fix #4986 2022-04-18 17:04:05 +05:30
Kovid Goyal
3af11e92d6
Ensure the clone launch env var is not set accidentally 2022-04-17 08:29:47 +05:30
Kovid Goyal
2c72c56e22
Add a couple more states to match against
So we can now select windows/tabs that are not active/focused but are in
the active/focused tab/os window.
2022-04-12 20:35:31 +05:30
Kovid Goyal
b3fa7310cb
Allow matching on window/tab state 2022-04-12 20:14:01 +05:30
Kovid Goyal
ade38870a0
Allow using boolean operators when matching windows or tabs 2022-04-12 19:55:20 +05:30
Kovid Goyal
afebea8635
--tab-title=current should respect any override title set on the tab 2022-04-12 12:53:59 +05:30
Kovid Goyal
ab8a4c6b9f
Make per cell bias calculation overridable more easily 2022-04-08 14:52:53 +05:30
Kovid Goyal
3ec93e0b4e
Fix #4932 2022-04-07 15:29:15 +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
72b1996423
Allow different kinds of cwd requests 2022-03-17 10:24:34 +05:30
Kovid Goyal
8f77cc65e2
Use a full window object rather than a child PID to get cwd
This allows implementation of more sophisticated algorithmhs
for getting the cwd
2022-03-15 07:58:57 +05:30
Kovid Goyal
1c48ec7196
Allow passing a "reset" argument to resize_window 2022-02-11 08:16:17 +05:30
pagedown
8ae273ee3a
Simplify reassembling for the command 2022-02-06 19:24:02 +08:00
Kovid Goyal
7c36c19de0
Cleanup previous PR 2022-02-06 06:31:56 +05:30
pagedown
b47711e23a
Fix kitty_exe() being executed when the script doesn't have shebang 2022-02-05 20:28:06 +08:00
pagedown
3dfdb3ac89
Fix missing args when running a script without exec perms via launch 2022-02-05 20:28:06 +08:00
pagedown
f1b6fb397b
Remove redundant variable assignment 2022-01-01 21:28:55 +08:00
pagedown
02a7316342
Use the unified PATH search function 2021-12-09 11:32:30 +08:00
Kovid Goyal
d372b27ccd
Ensure active window is updated when taking over a tab 2021-11-30 14:28:50 +05:30
Kovid Goyal
495b29bf21
Make nth_window focus the last window for numbers larger than the number of windows
Fix #4262
2021-11-22 22:02:07 +05:30
Kovid Goyal
4318d2d7d0
Cleanup previous PR
Doesnt need a separate changelog entry as its covered by the entry for
focus_visible_window
2021-11-09 22:23:48 +05:30
Kovid Goyal
49a0e8e242
Move close_window from Tab to Boss
We might eventually implement OS Window level floating windows
and the close_window action actually used the Boss method anyway
2021-11-06 10:45:07 +05:30
Kovid Goyal
dc09a5183a
Exclude the currently active window when visually selecting 2021-10-31 11:37:38 +05:30
Kovid Goyal
816360c275
A new remote control command to visually select a window
Fixes #4165
2021-10-30 13:56:48 +05:30
Kovid Goyal
40c046f86b
ooops 2021-10-28 08:17:16 +05:30
Kovid Goyal
c899eb4ee3
Add more type annotations 2021-10-27 13:44:12 +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
f78feb5abf
Allow very long middle clicks to close tabs 2021-10-25 12:23:54 +05:30
Kovid Goyal
37692119e1
Close tab on middle click release not press
Fixes the problem of close causing the tabbar to disappear which could
cause the subsequent release to be delivered to the remaining kitty
window
2021-10-25 10:56:10 +05:30
Kovid Goyal
0d94ca5399
Better fix for closing non-active tab 2021-10-25 08:11:50 +05:30
Kovid Goyal
13b900faf7
Activate tab before closing on middle click
Also fix compilation on macOS
2021-10-25 07:50:05 +05:30
Kovid Goyal
32ad75c5ab
Workaround mypy bug 2021-10-24 23:03:33 +05:30
Kovid Goyal
b316e97a4f
Allow middle clicking on a tab to close it
Fixes #4151
2021-10-24 22:56:30 +05:30
Kovid Goyal
be8fc47c5f
Also report enabled_layouts in kitty @ ls 2021-10-21 16:41:05 +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
716ff187f9
kitty @ set-enabled-layouts
Fixes #4129
2021-10-17 18:30:34 +05:30
Kovid Goyal
a4a7d49bed
A new swap_with_window mappable action
Allows visual selection of a window to swap with the current window
2021-10-17 12:52:08 +05:30
Kovid Goyal
0de319fc73
Refactor visual window select infrastructure to make it reuseable 2021-10-17 12:38:03 +05:30
Kovid Goyal
c06823dd47
Function to swap active window with another 2021-10-17 11:42:02 +05:30
Kovid Goyal
5afb16ab8d
A new remote control command to change tab color
Fixes #1287
2021-10-12 12:48:25 +05:30
Kovid Goyal
25e9ddb4a4
Fix type signature 2021-09-23 20:27:33 +05:30
Kovid Goyal
f3b601aa06
Make it clear what rects we are using for extra blank rects 2021-09-23 16:19:12 +05:30
Kovid Goyal
5bc569c4dd
Allow specifying whether to count windows at prompts or not for confirm_clsoe 2021-08-20 17:13:42 +05:30
Kovid Goyal
2a634af2bc
When confirming close commands dont count windows sitting at shell prompts 2021-08-18 10:06:10 +05:30
Kovid Goyal
4333552523
Matching windows/tabs: allow matching by recency
``recent:0`` matches the active window/tab, ``recent:1`` matches the
previous window/tab and so on
2021-08-16 18:29:06 +05:30
Kovid Goyal
276a82d1f7
Make get_all_actions() work in binary builds 2021-08-05 06:10:41 +05:30
Kovid Goyal
17ff317d30
Allow specifying additional targets for detach_window 2021-07-28 21:50:09 +05:30
Kovid Goyal
bb0c831601
Fix #3878 2021-07-28 18:22:08 +05:30