Commit graph

167 commits

Author SHA1 Message Date
Kovid Goyal
54548931b5
Allow running mappable actions via remote control
Saves me having to define a special remote control wrapper for every
mappable action.
2024-02-10 13:23:06 +05:30
Kovid Goyal
e656a75d5e
Move implementation of --hold into Child
DRYer. Also fixed use of --hold with launch --cwd=current
2024-01-06 13:14:48 +05:30
Jin Liu
0f52b69372 launch watcher: add on_cmd_startstop event 2023-11-14 16:46:46 +08:00
Kovid Goyal
5ea9700c82
More kitty @ -> kitten @ 2023-10-18 20:40:39 +05:30
Kovid Goyal
314fe4fe4a
Allow launched background process to work with --allow-remote-control
Use a dedicated socketpair for such processes. Fixes #6712
2023-10-18 19:56:58 +05:30
Kovid Goyal
81b032a161
Dont expand cwd=current in rc launch
This is easily done at the command line. And its semantics are
are to refer to cwd of active window.
2023-10-17 05:01:28 +05:30
Kovid Goyal
ddb121b418
Remote control launch: Fix the --copy-env option not copying current environment variables
Fixes #6724
2023-10-16 22:32:51 +05:30
Kovid Goyal
537475d5bb
Better fix for clone-in-kitty 2023-09-24 11:34:32 +05:30
Kovid Goyal
8e7b6ad3c3
Fix clone-in-kitty broken because of login wrapping 2023-09-24 11:21:32 +05:30
Kovid Goyal
70110d54b0
Use resolved shell for --hold 2023-09-24 08:34:08 +05:30
Kovid Goyal
950fbfbd73
Sanitize user vars 2023-07-27 19:00:21 +05:30
Kovid Goyal
83f423dbb0
Allow specifying user vars with the launch command 2023-07-27 17:44:37 +05:30
Kovid Goyal
0fb1f17af9
Have --hold wait at a shell prompt 2023-06-26 11:21:57 +05:30
Kovid Goyal
474244268c
edit-in-kitty: Fix running edit-in-kitty with elevated privileges to edit a restricted file not working 2023-05-07 09:36:16 +05:30
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
de188faf55
Fix #6048 2023-02-22 19:51:33 +05:30
pagedown
ba83ce7b10
macOS: Display the newly created OS window in specified state
Fix the maximized window can't occupy full screen space when window
decoration or title bar is hidden.
Fix resize_in_steps being applied even when window is maximized.
Allows to specify `os_window_state` in startup session file.
2023-02-18 14:02:19 +08:00
Kovid Goyal
72b2ba51df
launch: Allow specifying the state (fullscreen/maximized/minimized) for newly created OS Windows
Fixes #6026
2023-02-16 16:24:46 +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
pagedown
e27920527c
Docs: Remove the text role target that is no longer needed 2023-02-01 19:26:38 +08:00
Kovid Goyal
54b6344985
Add a note that --spacing is ignored for overlay windows 2023-01-30 12:00:41 +05:30
Kovid Goyal
6b8e5ea225
Rename kitty-tool to kitten
It's easier to type, and cuter.

Also, most, if not all of the TUI parts of
kitty's kittens will eventually be re-written into kitten.

The only downside I can see is that we cant tab complete kitty
anymore, but hopefully there will be less reason to run kitty
from the shell as command line tools migrate to kitten.

Meowrrrr!!!
2023-01-14 15:44:52 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff 2023-01-09 16:47:42 +05:30
Kovid Goyal
eeb772ad07
@launch: When an overlay window is specified in a particular tab via --match use the active window of that tab as the base, not the current tab. Fixes #5768 2022-12-13 20:15:21 +05:30
Kovid Goyal
f5d2c35755
Move implementation of +hold to Go
No need to pay python interpreter startup cost for --hold
2022-12-01 22:34:56 +05:30
Kovid Goyal
51bba9110e
Bash integration: Fix clone-in-kitty not working on bash >= 5.2 if environment variable values contain newlines or other special characters
Bash >= 5.2 changed the export command to output values using $' escaping when they contain special characters.
Fixes #5629
2022-11-22 16:38:24 +05:30
Kovid Goyal
0af48a4d05
Start work on implementing edit-in-kitty in kitty-tool 2022-11-17 17:05:25 +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
7e1380cc0d
Start work on giving GLFW a proper clipboard API 2022-09-08 12:45:34 +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
a420d9d19c
spacing is a clone safe option 2022-09-02 23:28:58 +05:30
Kovid Goyal
4b81e4936e
launch: Allow setting the margin and padding for the newly created window
Fixes #5463
2022-09-02 19:41:05 +05:30
pagedown
922ce5bdea
Docs: Put example commands in code blocks 2022-09-01 15:35:51 +08:00
pagedown
7f228bcbf5
Docs: Unify the list style of available values
Highlight the value and provide hyperlink in the description.
2022-08-24 13:30:52 +08:00
Kovid Goyal
3b77f3b4bc
Also hyperlink :term: 2022-08-20 15:40:39 +05:30
Kovid Goyal
da618584af
Fix some outdated docs 2022-08-19 15:48:17 +05:30
Kovid Goyal
6f6e23bf61
Update docs 2022-08-19 10:00:06 +05:30
Kovid Goyal
30df4e5de2
Improve formatting of --stdin-source 2022-08-19 09:34:52 +05:30
Kovid Goyal
3f4588c408
Improve formatting of launch --type help message 2022-08-19 09:30:22 +05:30
Kovid Goyal
2898a3ef8c
Some documentation cleanup 2022-08-17 06:48:33 +05:30
Kovid Goyal
a75235a260
rcp ars should be a sequnce not a set 2022-08-16 12:10:15 +05:30
Kovid Goyal
572e920466
Allow restricting the remote control actions in specific windows 2022-08-16 07:08:51 +05:30
Kovid Goyal
2a2256f7d9
... 2022-08-09 16:11:23 +05:30
Kovid Goyal
ed81a60065
Add keywords completion for --cwd and --config 2022-08-09 16:07:04 +05:30
Kovid Goyal
5ad55dd165
Allow using file completion for any type of command line arg 2022-08-09 15:57:01 +05:30
Kovid Goyal
33a3e3fb61
Add completion for kitty @ launch --logo 2022-08-09 14:30:13 +05:30
Kovid Goyal
1e49038747
Fix edit-in-kitty not working with editors that use file replace to save changes 2022-06-28 11:51:03 +05:30
pagedown
1411269187
Docs: Improve documentation for remote commands
Use text roles in the document to apply the style in the cli output.
Add more links.
Unify the text roles.
Use code blocks instead of quote blocks.
Use '+' to connect the shortcut key names.
2022-06-28 11:52:20 +08:00
Kovid Goyal
5a0a980648
Make getting cmdline of a PID a bit more convenient 2022-06-04 15:07:08 +05:30
Kovid Goyal
eefd4bb3e3
zsh: Completion for edit-in-kitty and clone-in-kitty 2022-05-30 08:12:09 +05:30