Kovid Goyal
eab3b2a689
Reduce the number of spurious focus events
...
1) When performing operations known to cause lots of focus changes such
as creating new sessions/windows or moving windows, forcibly ignore focus events
2) Track window focus state and dont report focus events when the state
is unchanged by a focus_changed() call
This allows focus specific code to be restricted to just 2-3 places
instead of having to track every possible function that could change
focus.
Fixes #6083
2023-03-02 13:30:26 +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
22f6728fed
Do not buffer PNG data to disk when setting window background or logo images
2023-03-01 17:34:38 +05:30
Kovid Goyal
bf79940a13
When reloading config also reload all GPU data
...
Fixes some config options such as text_composition_strategy not being
reloaded.
2023-03-01 11:14:03 +05:30
Kovid Goyal
00b3437a05
Remove python implementation of SSH kitten
2023-02-28 12:42:30 +05:30
Kovid Goyal
525caff938
Move get_connection_data to utils module as it is not needed for the actual kitten
2023-02-26 08:01:03 +05:30
Kovid Goyal
7c8c7fe3a2
launch: When using --cwd=current for a remote system support running non shell commands as well
2023-02-08 17:52:28 +05:30
Kovid Goyal
682428fb54
Optimize the services implementation
...
Dont construct the selection string when we are merely checking if a
selection exists.
2023-02-01 12:46:19 +05:30
Kovid Goyal
865fc24975
When reporting unused activity in a window, ignore activity that occurs soon after a window resize
...
Fixes #5881
2023-01-15 09:09:07 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
c18bff7821
Remote control: Allow matching the parent of an overlay window
2022-12-30 11:29:05 +05:30
Kovid Goyal
4f9ed6546a
Pass key events mapped to scroll actions to the program running in the terminal when the terminal is in alternate screen mode
...
Fixes #5839
2022-12-30 08:54:31 +05:30
Kovid Goyal
c76bbeabd6
...
2022-12-30 08:34:58 +05:30
Kovid Goyal
468b6fab02
Also use sanitized URL for allow_hyperlinks=ask
2022-12-29 17:05:18 +05:30
Kovid Goyal
68cf9f7514
Switch to tracking linewrap on the last cell in a line
...
This allows us to have newline not affect the wrap status of a line.
Now a lines wrapping status is changed only when the last cell
in the line is changed. This actually matches the behavior of many other
terminal emulators so is probably a good thing from a ecosystem
compatibility perspective.
The fish shell expects this weird behavior of newline not changing
wrapping status, for unknown reasons, which is the actual motivation for
doing all this work.
Fixes #5766
2022-12-26 20:26:21 +05:30
pagedown
91576cc42f
Remote control: Keep the same naming style for ls command output
2022-12-12 12:53:58 +08:00
Kovid Goyal
11724c8a5f
Terminal end of OSC 5522 read requests
2022-11-29 14:55:40 +05:30
Kovid Goyal
3ee9f723f2
The legacy osc 52 protocol now works with the new clipboard requests manager class
2022-11-28 20:53:56 +05:30
Kovid Goyal
a8725d6307
Start work on a new clipboard protocol to allow terminal programs to access more than just text/plain content from the clipboard
2022-11-28 14:23:03 +05:30
pagedown
6a1b456bac
DRYer: Get hostname
2022-11-26 16:08:40 +08:00
Kovid Goyal
402c8b6803
Use ANSI C escapes rather than python string literals
2022-11-25 19:10:15 +05:30
Kovid Goyal
dd4051bfd5
Allow getting the exe name of the active foreground process in the tab title template
2022-11-17 22:06:06 +05:30
Kovid Goyal
f3b3d6c0ef
Workaround for mypy bug
2022-11-15 22:47:53 +05:30
Kovid Goyal
d9215feda5
Allow using the cwd of the original process for launch --cwd
...
Fixes #5672
2022-11-15 22:18:19 +05:30
Kovid Goyal
59ded41f7a
When no OS Window is focused the active_* should return those belonging to the last focused OS Window
2022-11-05 11:34:10 +05:30
Kovid Goyal
10ad56885e
Properly specify semantics of active and focused
...
active means active in parent. focused means actually has keyboard
focus.
2022-11-04 10:38:18 +05:30
Kovid Goyal
a856c64104
Have the semantics of is_focused match that of state:focused otherwise things are liable to get confusing
...
The previous value is now available as is_active_window
2022-11-03 22:32:07 +05:30
Kovid Goyal
935c4ded6b
Remote control: When matching window by state:focused match the window belonging to the OS window that was last focused
...
Fixes #5602
2022-11-03 21:52:20 +05:30
Kovid Goyal
26b8ab9adf
Use a regex for bracketed paste sanitization
2022-09-23 22:18:03 +05:30
Kovid Goyal
7e1380cc0d
Start work on giving GLFW a proper clipboard API
2022-09-08 12:45:34 +05:30
Kovid Goyal
f05783e64d
Sanitize notifications ids as they are retransmitted over the TTY
2022-09-05 10:41:19 +05:30
Kovid Goyal
607bc845fc
Allow creating overlay-main windows, which are treated as the active window unlike normal overlays
...
Fixes #5392
2022-09-03 19:04:31 +05:30
Kovid Goyal
c856d5c058
Fix hyperlinks not present when fetching text from the history buffer
...
Fixes #5427
2022-08-28 08:54:53 +05:30
pagedown
64a202a125
Docs: Using the lowercase form of the key name consistently
2022-08-24 13:26:50 +08:00
Kovid Goyal
a4c3154dab
...
2022-08-20 08:27:24 +05:30
Kovid Goyal
5350eb29c1
A new mappable action to show kitty docs in the browser
2022-08-19 14:00:30 +05:30
Kovid Goyal
a75235a260
rcp ars should be a sequnce not a set
2022-08-16 12:10:15 +05:30
Kovid Goyal
02d06d6726
Fix --allow-remote-control without passwords not working
2022-08-16 10:51:54 +05:30
Kovid Goyal
572e920466
Allow restricting the remote control actions in specific windows
2022-08-16 07:08:51 +05:30
Kovid Goyal
814dd8a275
allow_remote_control should be per window not per child
2022-08-15 21:32:14 +05:30
Kovid Goyal
2c83b9902e
Implement the permissions system for password based rc requests
2022-08-10 15:49:50 +05:30
Kovid Goyal
4345ea6602
Remove debugging code I left in the last commit accidentally
2022-07-26 08:17:44 +05:30
Kovid Goyal
54d2f06abe
remote files kitten: Fix working with files whose names have characters that need to be quoted in shell scripts
...
Fixes #5313
2022-07-26 08:06:25 +05:30
Kovid Goyal
7215c6d6be
ssh kitten: Allow pressing Ctrl-C to abort ssh before the connection is completed
...
Fixing this involved adding a new mode to kitty where it handles
ctrl-c/z/q by sending signals to the tty foreground process group
instead of delegating to the kernel to do that. Since the pipe may be
full we have no way of knowing when the kernel will get around to
reading the signal byte. So send the signal ourselves.
Fixes #5271
2022-07-20 19:11:14 +05:30
Kovid Goyal
d3ffaebd17
Ignore exceptions in kitten result processors
2022-06-18 08:20:01 +05:30
Kovid Goyal
bf01c549f5
Allow kittens to handle multiple results in a window
2022-06-18 08:18:25 +05:30
Kovid Goyal
1e56d39777
Wakeup main loop when refreshing window as well as io loop
2022-06-17 19:33:43 +05:30
Kovid Goyal
47d482dca9
Clear signal handlers when running processes
2022-06-08 17:50:42 +05:30
Kovid Goyal
0509855930
Allow getting the last non-empty command output easily via an action or remote control
...
Fixes #4973
2022-05-28 15:19:24 +05:30
Kovid Goyal
117d1b02be
Start work on edit-in-kitty
2022-05-26 21:16:42 +05:30