Commit Graph

13898 Commits

Author SHA1 Message Date
Amos Bird
048ef3b317 Support --env argument for @ run 2024-05-14 22:23:36 +08:00
Kovid Goyal
dfb1ed6a08 ... 2024-05-14 17:08:36 +05:30
Kovid Goyal
8c1e365eb5 hints kitten: Allow clicking on matched text to select it in addition to typing the hint 2024-05-14 15:22:03 +05:30
Kovid Goyal
38fed8b391 kitten @ run: A new remote control command to run a process on the machine kitty is running on and get its output
Fixes #7429
2024-05-14 14:32:01 +05:30
Kovid Goyal
1a394d6a57 Allow rc commands to control the exit code 2024-05-14 14:31:31 +05:30
Kovid Goyal
f659342b48 notify with actual exception when launching background process fails 2024-05-14 14:21:48 +05:30
Kovid Goyal
cbe4e705db Allow at commands to specialize response handling 2024-05-14 13:14:21 +05:30
Kovid Goyal
8cb53cb5a6 Fix handling of streaming remote command via tty_io that doesnt actually stream anything 2024-05-14 13:13:17 +05:30
Kovid Goyal
8eb3267fb8 Make the API to run background processes more powerful
Supports death notification and can redirect stdout/stderr to an fd
2024-05-14 13:11:04 +05:30
Kovid Goyal
78416acd16 Handle + and ! combined in argspec 2024-05-14 12:36:48 +05:30
Kovid Goyal
6be75ce1c7 Dont hold lock while reporting reaped pids
Can lead to a deadlock if the python code calls something that tries to
acquire the same lock
2024-05-14 12:35:12 +05:30
Kovid Goyal
46fed6ffa9 Make remote_control_passwrods parsing code re-useable 2024-05-14 09:28:55 +05:30
Kovid Goyal
4d9b1b81ea Fix #7426 2024-05-13 08:35:17 +05:30
Kovid Goyal
1307c2345d Fix macOS binary build failing because of a test 2024-05-11 08:37:51 +05:30
Kovid Goyal
dc410fa0c7 Handle invalid UTF-8 reported cmdline more gracefully 2024-05-11 08:34:05 +05:30
Kovid Goyal
c17d7614e1 Allow showing a more useful error message when wait_till fails 2024-05-11 08:33:47 +05:30
Kovid Goyal
ab2a4f7de6 Simplify loop used to process input from child in test pty
This might surface better errors than Timeout on the occassional test
failure.
2024-05-10 09:29:27 +05:30
Kovid Goyal
38799f3173 ... 2024-05-10 09:24:10 +05:30
Kovid Goyal
1f3afd95f3 ... 2024-05-09 13:54:14 +05:30
Kovid Goyal
468d0c69a6 Add tests for cmdline reporting in shell integration 2024-05-09 13:46:19 +05:30
Kovid Goyal
00d6111d40 Fix unicode objects created by shlex in ansi c mode not in canonical representation 2024-05-09 13:18:53 +05:30
Kovid Goyal
4f26bada31 Fix typo in bash integration script caught by the test 2024-05-09 12:39:03 +05:30
Kovid Goyal
eb1d418358 Merge branch 'master' of https://github.com/its-izhar/kitty 2024-05-09 12:33:49 +05:30
Izhar Ameer Shaikh
483dd30e18 shell-integration/ssh: Support arch=arm64, for MacOS
On some Macs (e.g. M1, 2020), `uname` returns 'Darwin' and `uname -m`
retuns 'arm64', this case is not handled in shell-integration. As a
result, ssh kitten transfer fails with:

>> Unknown CPU architecture arm64

Fix this by adding the case for arch=arm64 in kitten and kitty
shell-integration scripts.

Tested this on Mac Pro (M1, 2020).
2024-05-08 23:44:35 -07:00
Kovid Goyal
219e53826b More efficient encoding for cmdline in the prompt marking escape code 2024-05-09 12:03:02 +05:30
Kovid Goyal
1e528fd299 DRYer 2024-05-09 11:55:17 +05:30
Kovid Goyal
098ed41716 Add support for ANSI-C quoted strings to shlex 2024-05-09 11:46:23 +05:30
Kovid Goyal
0d68a21be5 notify_on_cmd_finish: Show the actual command that was finished
Fixes #7420
2024-05-09 09:49:26 +05:30
Kovid Goyal
c50e38a080 Run clean + debug on branch switch for publish 2024-05-08 21:28:22 +05:30
Kovid Goyal
5cfa139189 ... 2024-05-08 21:26:12 +05:30
Kovid Goyal
fbeb8a5ebc Update changelog 2024-05-08 21:16:06 +05:30
Kovid Goyal
990bc22577 Merge branch 'placement-strategies' of https://github.com/jwueller/kitty 2024-05-08 21:16:02 +05:30
Johannes Wüller
7c8660a694 Extend placement_stragegy options
placement_strategy previously only accepted 'center' and 'top-left', but
others are potentially useful too. I personally like 'bottom-left'. The
new set of accepted values mirrors the window_logo_position option.
2024-05-08 16:33:04 +02:00
Kovid Goyal
bdf22f980c Another alternate kitty icon 2024-05-08 07:58:34 +05:30
Kovid Goyal
d519807df2 ... 2024-05-07 08:52:49 +05:30
Kovid Goyal
708a4c428c Remove __pycache__ only folders when switching to master to build a release 2024-05-07 08:43:06 +05:30
Kovid Goyal
8183e2f538 Merge branch 'dependabot/go_modules/all-go-deps-ec2417d3b3' of https://github.com/kovidgoyal/kitty 2024-05-06 09:17:10 +05:30
dependabot[bot]
0d018caf16 Bump the all-go-deps group with 3 updates
Bumps the all-go-deps group with 3 updates: [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil), [golang.org/x/image](https://github.com/golang/image) and [golang.org/x/sys](https://github.com/golang/sys).


Updates `github.com/shirou/gopsutil/v3` from 3.24.3 to 3.24.4
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](https://github.com/shirou/gopsutil/compare/v3.24.3...v3.24.4)

Updates `golang.org/x/image` from 0.15.0 to 0.16.0
- [Commits](https://github.com/golang/image/compare/v0.15.0...v0.16.0)

Updates `golang.org/x/sys` from 0.19.0 to 0.20.0
- [Commits](https://github.com/golang/sys/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: all-go-deps
- dependency-name: golang.org/x/image
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all-go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 03:40:36 +00:00
Kovid Goyal
65f06e8fdb Wayland: Fix crash on compositors that dont support the window activation protocol 2024-05-06 08:52:01 +05:30
Kovid Goyal
44ec3836af ... 2024-05-05 14:09:41 +05:30
Kovid Goyal
ce4237c45d DRYer 2024-05-05 14:09:18 +05:30
Kovid Goyal
04af71696a Make processing of input from child in test pty device a bit more robust 2024-05-05 14:05:51 +05:30
Kovid Goyal
849dcd424d Wayland: save energy by not rendering "suspended" windows on compositors that support that
Note that this breaks kitty on GNOME 45 which has a bug, but it fine on
GNOME 46.
2024-05-05 13:42:51 +05:30
Kovid Goyal
6e1df67e03 Use xdg-shell version 6
This gives us window "suspended" events. Theoretically these could be
used to implement glfwWindowIconified() and thereby not render suspended
OS windows. However let's wait a bit and see how this stabilizes. There
are all sorts of bugs around this currently, for example:

https://gitlab.gnome.org/GNOME/mutter/-/issues/3435
https://gitlab.gnome.org/GNOME/mutter/-/issues/3229
https://bugreports.qt.io/browse/QTBUG-124450
2024-05-05 13:24:45 +05:30
Kovid Goyal
a4c9cb6d28 Small performance increase in SIMD code
Use OpenMP annotations with simde as the simde docs recommend.
2024-05-04 09:47:02 +05:30
Kovid Goyal
e84d67170c Dont clear selections on erase in screen commands unless the erased region intersects a selection
Fixes #7408
2024-05-02 19:37:59 +05:30
Kovid Goyal
814412b8ac kitten @ send-key: Fix some keys being sent in kitty keyboard protocol encoding when not using socket for remote control
The @ kitten no longer changes keyboard mode unless actually needed.
2024-05-02 11:04:41 +05:30
Kovid Goyal
5e12c0b144 Fix #7405 2024-05-01 09:40:22 +05:30
Kovid Goyal
0cd476ae22 Add instructions for making desktop environments run kitty via xdg-terminal-exec
https://github.com/Vladimir-csp/xdg-terminal-exec
2024-04-30 21:23:48 +05:30
Kovid Goyal
aec7ed7fea Merge branch 'standardize_kitten_name' of https://github.com/nobe4/kitty 2024-04-30 17:07:49 +05:30