Commit Graph

1105 Commits

Author SHA1 Message Date
Kovid Goyal
8b7cd98a0e When running a kitten that modifies the kitty config file if no config file exists create a commented out default config file and then modify it
Fixes #7991
2024-10-28 14:01:42 +05:30
Kovid Goyal
62d5e13cbd themes kitten: fix some keybaord shortcuts not working with weird IME systems on Linux that convert key events into text events 2024-10-15 09:51:52 +05:30
Koichi Murase
8a1f829653 Call _command_offset from bash-completion framework only if available 2024-10-14 15:40:43 +09:00
Kovid Goyal
af83d855de Add a framework for easily and securely using remote control from the main function of a custom kitten 2024-09-29 20:36:12 +05:30
Kovid Goyal
c1fb18a6ef Implement changing transparent background colors via remote control 2024-09-24 19:02:13 +05:30
Kovid Goyal
dbfeb8d6a4 Store transparent colors on ColorProfile
This will eventually allow them to be changed using remote control and
escape codes.
2024-09-24 19:02:13 +05:30
Kovid Goyal
31aa4bc96d Dont ignore err in close on atomicwrite 2024-09-10 21:53:49 +05:30
Kovid Goyal
8a607fa34c kitten run-shell: Forward KSI env var for no-rc
This is useless, since if you are doing manual shell integration
anyway there is no point in running via the run-shell kitten.
But, let's keep the pedants at bay.

Fixes #7809
2024-09-01 10:29:51 +05:30
Kovid Goyal
8eb0b556b7 diff kitten: Fix a regression that broke diffing against remote files
Fixes #7797
2024-08-28 11:00:42 +05:30
Kovid Goyal
fdc3c3d7c1 kitten @: Fix a regression connecting to TCP sockets using plain IP addresses rather than hostnames
Fixes #7794
2024-08-27 18:30:51 +05:30
Kovid Goyal
2ac26b0e6d Fix #7752 2024-08-20 17:27:13 +05:30
Kovid Goyal
e74188fcf0 Switch to using ps to get all processes
The Go process module is very slow to get Exe() on non-Linux systems
without CGO as it works by calling lsof on the pid. So we anyway have to
filter by command line first. So might as well just use ps in that case.
2024-08-19 20:54:54 +05:30
Kovid Goyal
9708959438 When reloading in all kitty instances, only use readlink on processes that contain "kitty" in the image name
Apparently there are some machines where a few hundred/thousand readlink calls
take 30 seconds! See #7744
2024-08-19 19:18:37 +05:30
Kovid Goyal
5c1af0fcb1 Start work on the notify kitten 2024-07-28 20:41:01 +05:30
Kovid Goyal
a50bf2c6bb move code into separate function for legibility 2024-07-26 22:43:13 +05:30
Kovid Goyal
bb3aecd2a5 kitten run-shell: Automatically add the directory containing the kitten binary to PATH if needed
Controlled via the --inject-self-onto-path option
2024-07-26 22:29:05 +05:30
Kovid Goyal
7e7050d30e DRYer 2024-07-23 13:53:02 +05:30
Kovid Goyal
cb84f56ef8 Insist on specifying an output format 2024-07-23 13:47:36 +05:30
Kovid Goyal
8201f0dd0e Move caching implementation to Python
Less code, more performant since the cache is used from Python.
And we can make the Go code a pure image format conversion filter.
2024-07-23 13:37:53 +05:30
Kovid Goyal
eaf71d1ccf Allow specifying permissions when creating anonymous temp files 2024-07-23 07:28:10 +05:30
Kovid Goyal
d08dcd92c7 Python wrapper to use image to RGBA Go code 2024-07-22 22:39:12 +05:30
Kovid Goyal
fb20c4acb6 Code to convert image at path into cached RGBA data 2024-07-22 21:39:38 +05:30
Kovid Goyal
1b6f74da65 fsync before rename for atomic write 2024-07-22 20:04:13 +05:30
Kovid Goyal
c906314974 change the atomic write functions to work with readers 2024-07-22 15:01:19 +05:30
Kovid Goyal
0cf9a79760 A new option second_transparent_bg
Makes a second background color semi-transparent via background_opacity.
Useful for things like cursor line highlight in editors.

Fixes #7646
2024-07-21 20:22:31 +05:30
Kovid Goyal
573058d861 Fix panic on empty style 2024-07-21 18:41:04 +05:30
Kovid Goyal
ff2baf9122 mouse demo redraw screen on window resize 2024-07-20 17:05:30 +05:30
Kovid Goyal
9c9041cf57 Dont need to reset inband resize since it is saved and restored on the private setting stack 2024-07-20 17:02:08 +05:30
Kovid Goyal
33131ff5eb ... 2024-07-20 14:06:39 +05:30
Kovid Goyal
95aeaa390f ... 2024-07-19 12:05:52 +05:30
Kovid Goyal
10bd0f71d8 Use inband resize events in kittens 2024-07-18 21:57:53 +05:30
Kovid Goyal
e45d518082 Remove use of syscall package for flock
It is provided by unix package these days
2024-07-09 08:24:57 +05:30
Kovid Goyal
da9a36d918 Fix reload of kitty config not working if kitty launched via symlink not named kitty 2024-07-04 19:07:15 +05:30
Kovid Goyal
b017cc0c1e Handle variable fonts like cascadia code that dont have a postfix variation prefix name for some of their faces 2024-06-24 07:54:17 +05:30
Kovid Goyal
f15eebec02 Refactor config patching code to make it re-useable 2024-06-24 07:54:17 +05:30
Kovid Goyal
345134c7d0 Get axis clicking working 2024-06-24 07:54:17 +05:30
Kovid Goyal
0028d7f04b More work on face fine tuning 2024-06-24 07:54:16 +05:30
Kovid Goyal
802ed976a9 Start work on faces panel 2024-06-24 07:54:15 +05:30
Kovid Goyal
5a189b1afe Fix graphics being freed instead of deleted in draw_screen() 2024-06-24 07:54:15 +05:30
Kovid Goyal
314b2444c7 Use KITTY_PID to find kitty exe when possible 2024-06-24 07:54:14 +05:30
Kovid Goyal
2be91d73dd Move the query_terminal implementation to Go 2024-06-24 07:54:14 +05:30
Kovid Goyal
b6e92dd79d Query font size and DPI from terminal 2024-06-24 07:54:13 +05:30
Kovid Goyal
f26b7533c6 Fix off by one in hyperlink extent 2024-06-24 07:54:13 +05:30
Kovid Goyal
27a2e3c488 Use correct pointer shape for hyperlinks 2024-06-24 07:54:13 +05:30
Kovid Goyal
96f8dbbbeb Get clicking on family names functional 2024-06-24 07:54:13 +05:30
Kovid Goyal
a0bed32614 ... 2024-06-24 07:54:13 +05:30
Kovid Goyal
f2d5631c47 Replace list_fonts with choose-fonts kitten 2024-06-24 07:54:13 +05:30
Kovid Goyal
405f5ce148 Use stdlib maps/slices 2024-06-24 07:54:13 +05:30
Kovid Goyal
e7ed5716a9 Use RenderLines.InRectangle 2024-06-24 07:54:13 +05:30
Kovid Goyal
51472e1e88 Infrastructure for simple internal hyperlink handling 2024-06-24 07:54:13 +05:30