4914 Commits

Author SHA1 Message Date
Kovid Goyal
5f12fbc2ee
Convenient aliases 2021-10-28 11:18:16 +05:30
Kovid Goyal
2443dc135c
Use a faster implementation of the Color type
Now implemented in C
2021-10-28 11:15:13 +05:30
Kovid Goyal
40c046f86b
ooops 2021-10-28 08:17:16 +05:30
Kovid Goyal
aee5c317f6
... 2021-10-28 08:12:35 +05:30
Kovid Goyal
0fdafd8398
Allow rendering the cursor with reverse video
Also clean up handling of dynamic global colors.
TODO: Implement none for selection_fg
TODO: Add some tests
TODO: Check that changing colors via remote control works

Fixes #126
2021-10-28 00:21:12 +05:30
Kovid Goyal
3ca3c67828
Remove unused code 2021-10-27 17:15:45 +05:30
Kovid Goyal
d3a3f99848
Use an env var for fish shell integration
Less intrusive (in some ways) than adding symlinks to ~/.config/fish
Exploits the fact that fish loads scripts from XDG_DATA_DIRS on startup.
Thanks to @page-down for noticing
2021-10-27 14:59:11 +05:30
Kovid Goyal
d31935b8eb
Old python compat 2021-10-27 14:23:07 +05:30
Kovid Goyal
13928d4d35
When showing last command output and similar cursor less text with the scrollback pager set CURSOR_LINE and CURSOR_COLUMN to 0 2021-10-27 14:20:33 +05:30
Kovid Goyal
60472fcee3
Add more type annotations 2021-10-27 14:00:29 +05:30
Kovid Goyal
c899eb4ee3
Add more type annotations 2021-10-27 13:44:12 +05:30
Kovid Goyal
d090db380f
Add more type annotations 2021-10-27 13:26:18 +05:30
Kovid Goyal
a26f041964
Add more type annotations 2021-10-27 12:31:10 +05:30
Kovid Goyal
b22bda3cba
Add more type annotations 2021-10-27 11:36:34 +05:30
Kovid Goyal
69e903a4c4
Add more type annotations 2021-10-27 11:13:28 +05:30
Kovid Goyal
6f19fd5912
Add more type annotations 2021-10-27 10:50:24 +05:30
Kovid Goyal
9c2f96f7eb
Add more type annotations 2021-10-27 08:45:45 +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
5cb36a4632
More work on file transfer 2021-10-26 22:05:38 +05:30
Kovid Goyal
9b7342b231
Mark output before running command
This will help with shell integration erasing the prompt if there is a
resize caused by the command
2021-10-25 20:40:55 +05:30
Kovid Goyal
01ebc8f15a
Use a space as content placeholder when resizing 2021-10-25 20:05:26 +05:30
Kovid Goyal
472baf7337
DRYer 2021-10-25 18:12:48 +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
6da79ab614
Reset draw data default bg when background is changed 2021-10-25 12:40:36 +05:30
Kovid Goyal
a44a3195ab
Ensure border rects are updated when patching colors 2021-10-25 12:37:29 +05:30
Kovid Goyal
f78feb5abf
Allow very long middle clicks to close tabs 2021-10-25 12:23:54 +05:30
Kovid Goyal
4385acd3c6
A new option to set the tab bar margin color independently 2021-10-25 12:21:46 +05:30
Kovid Goyal
c0927a3643
Fix rendering of tab bar right margin 2021-10-25 11:39:04 +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
0f193141af
Add support for OSC 777 based desktop notifications
Might as well, since we also support OSC 9, so why not yet another
poorly designed legacy scheme.
2021-10-25 10:46:00 +05:30
Kovid Goyal
1ab8d58bf7
Ensure right margin is drawn 2021-10-25 10:27:47 +05:30
Kovid Goyal
691bf75b35
Fix tab bar not being redrawn when colors changed by set-colors
Fixes #4152
2021-10-25 10:17:48 +05:30
Kovid Goyal
63e23d7fe3
Fix set-colors unable to set tab_bar_background to none 2021-10-25 10:04:25 +05:30
Kovid Goyal
23d0db5458
... 2021-10-25 09:17:29 +05:30
Kovid Goyal
71c62664cd
Fix tab bar background not being update in the shader when using set-colors 2021-10-25 09:11:23 +05:30
Kovid Goyal
c9faf5dd59
Extra update_blank_colors() call is not needed 2021-10-25 09:02:08 +05:30
Kovid Goyal
baf080f147
Tab bar left margin should be drawn in the same background color as the other margins 2021-10-25 09:00:49 +05:30
Kovid Goyal
0e29ee9299
... 2021-10-25 08:48:28 +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
4604558d35
Add some more docs for cursor_shape 2021-10-24 08:22:01 +05:30
Kovid Goyal
4fb804efc6
... 2021-10-23 18:55:55 +05:30
Kovid Goyal
5b2ba448b6
Only modify .zshrc to add shell integration if it already exists 2021-10-23 18:54:59 +05:30
Kovid Goyal
518e0f4e21
oops 2021-10-22 12:52:57 +05:30
Kovid Goyal
7546e53c23
... 2021-10-22 12:47:32 +05:30
Kovid Goyal
18aca275c8
Only libedit doesn't redraw GNU readline does 2021-10-22 12:08:06 +05:30
Kovid Goyal
729cea88f3
More sophisticated OSC 133 parsing with support for secondary prompts 2021-10-22 11:54:54 +05:30
Kovid Goyal
9b957a1fdb
handle shlex exceptions gracefully 2021-10-22 05:12:12 +05:30