Commit graph

1431 commits

Author SHA1 Message Date
Kovid Goyal
461e63049a
Fix #8754 2025-06-26 21:30:43 +05:30
Kovid Goyal
324b95f825
Fix recursion into symlinks to dirs 2025-06-25 08:35:38 +05:30
Kovid Goyal
4a13c53438
Turn off focus tracking while doing tty remote control
Fixes #8733
2025-06-16 21:57:19 +05:30
Kovid Goyal
dea6e1da42
Special case parallel run with one worker 2025-06-06 16:02:31 +05:30
Kovid Goyal
5e6d4ea4c0
... 2025-06-06 13:32:46 +05:30
Kovid Goyal
7029a35df9
Port subseq tests to fzf 2025-06-06 13:28:58 +05:30
Kovid Goyal
ed45e1354b
Work on implementing the fzf algorithm for the choose files kitten
People are more used to that, and it is more optimized for use case of
finding files.
2025-06-06 12:29:35 +05:30
Kovid Goyal
3059c87bd0
Use a lock and channel free parallelization for subseq scoring 2025-06-06 06:39:09 +05:30
Kovid Goyal
3feea5b279
DRYer 2025-06-05 20:59:09 +05:30
Kovid Goyal
6880ecaa28
Work on save file name mode 2025-06-03 20:27:14 +05:30
Kovid Goyal
bd2d15406a
Use a better icon for home folder in results title 2025-06-01 13:20:38 +05:30
Kovid Goyal
7657b2b8c6
Get correct stacktraces for goroutine panics 2025-06-01 13:07:11 +05:30
Kovid Goyal
d1faccdd1c
Loop API print proper stack traces for panics in go routines 2025-06-01 12:51:59 +05:30
Kovid Goyal
ecb9c46b95
... 2025-06-01 12:35:23 +05:30
Kovid Goyal
b784dd4fba
Sort the lists 2025-05-21 22:40:55 +05:30
Kovid Goyal
f0537198e6
... 2025-05-21 22:29:05 +05:30
Kovid Goyal
646bf47a43
Icons for file matches 2025-05-21 22:16:22 +05:30
Kovid Goyal
ad03fa94b2
Update the list of nerd font names when updating other unicode data as well
No longer need to store the list of names in our source code
2025-05-21 13:19:27 +05:30
Kovid Goyal
cc500893f0
... 2025-05-21 12:16:25 +05:30
Kovid Goyal
b55013944e
More work on choose-files 2025-05-20 14:16:49 +05:30
Kovid Goyal
fbfdb38260
Start work on choose files kitten 2025-05-20 12:32:43 +05:30
Kovid Goyal
c94844b220
Start work on Linux desktop portal kitten 2025-05-19 08:52:18 +05:30
Kovid Goyal
e015ebefab
Implement focus tracking in kitten infrastructure 2025-05-16 12:48:21 +05:30
Kovid Goyal
4713cc29ad
make gofmt happy 2025-05-16 09:40:34 +05:30
Kovid Goyal
c861259e3b
Rename go module from kitty -> github.com/kovidgoyal/kitty
Makes the code more easily re-useable in other projects
2025-05-16 08:43:39 +05:30
Kovid Goyal
429cff0a52
Convenience method to access any member of a set 2025-05-15 21:40:06 +05:30
Kovid Goyal
7ec0085a0b
Also report panic via debugprintln 2025-05-14 12:06:01 +05:30
Kovid Goyal
123a115836
Make kitten main re-useable 2025-05-13 18:51:49 +05:30
Kovid Goyal
6a53897c17
change_font_size: allow multiplying/dividing the current font size in addition to incrementing it
Fixes #8616
2025-05-09 07:39:06 +05:30
Kovid Goyal
5683314784
Start work on quick-access-terminal kitten 2025-04-28 19:52:04 +05:30
Kovid Goyal
9854068a59
Start work on panel kitten wrapper in Go
Needed because we need to use a special exe on macOS.
2025-04-28 16:07:09 +05:30
Kovid Goyal
d7fb143ee0
Allow explicitly setting boolean options in Go cli parser
Matches C parser
2025-04-28 11:54:51 +05:30
Kovid Goyal
39bf612071
DRYer 2025-04-28 11:33:58 +05:30
Kovid Goyal
92c6d90132
Allow single char options to take =value in kittens
Matches kitty cli parsing behavior
2025-04-28 11:27:33 +05:30
Kovid Goyal
17876385c5
... 2025-04-23 18:52:40 +05:30
Kovid Goyal
796ee602de
... 2025-04-21 09:50:30 +05:30
Kovid Goyal
6f673929eb
Fix failure of tarfile extract when dest_path has symlinks 2025-04-21 09:46:30 +05:30
Kovid Goyal
4d69eea4af
Add test for tarfile extractall 2025-04-21 09:32:56 +05:30
Kovid Goyal
3daac6fb22
Remove unnecessary check 2025-04-20 23:38:16 +05:30
Kovid Goyal
50b830faa5
DRYer 2025-04-20 23:18:49 +05:30
Kovid Goyal
5a6c2d9f3b
skip illegal paths in tar archives rather than erroring on them 2025-04-20 23:12:17 +05:30
Kovid Goyal
d7f4d44d8e
More CodeQL fixes 2025-04-20 23:08:14 +05:30
Kovid Goyal
341df0dccb
More CodeQL fixes 2025-04-20 22:13:45 +05:30
Kovid Goyal
237bb35ee9
More CodeQL fixes 2025-04-20 21:53:11 +05:30
Kovid Goyal
adfcffa5d7
Various fixes to make CodeQL happy 2025-04-20 21:34:42 +05:30
Kovid Goyal
c84b894a89
Remove deprecated tar file type check 2025-04-20 15:59:20 +05:30
Kovid Goyal
ba46678a0d
Fix width test kitten descriptive text being erased 2025-04-12 15:20:07 +05:30
Kovid Goyal
357481900d
Add combining at line end test 2025-04-11 13:16:45 +05:30
Kovid Goyal
ed719d91ec
... 2025-04-11 12:24:46 +05:30
Kovid Goyal
cd4490b5ad
Test cursor position after individual graphemes 2025-04-11 12:21:40 +05:30
Kovid Goyal
66a2702631
... 2025-04-11 12:08:42 +05:30
Kovid Goyal
dbc88d8a3a
Document test description format 2025-04-11 12:03:06 +05:30
Kovid Goyal
342ac57e63
Allow restricting the tests run 2025-04-11 11:40:23 +05:30
Kovid Goyal
3a4d32b85b
Get basic full string width tests running 2025-04-11 10:45:39 +05:30
Kovid Goyal
cf6bb29ef7
Start work on width testing kitten 2025-04-11 09:34:21 +05:30
Kovid Goyal
203e9f6c58
Port wcswidth to use grapheme segmentation 2025-04-11 09:34:21 +05:30
Kovid Goyal
38a2c6eab0
Cleanup previous PR 2025-04-05 09:22:10 +05:30
3pleX-dev
1d93982424 fix reproducibility issues 2025-04-05 01:27:23 +01:00
Kovid Goyal
4c28200cab
Separate out the control chars when generating benchmark data 2025-04-03 09:33:55 +05:30
Kovid Goyal
e0efdaa3f0
... 2025-04-03 09:26:04 +05:30
Kovid Goyal
057dde35a7
Use a two stage lookup table for segmentation
Saves one extra array lookup at no cost in size
2025-04-01 14:25:24 +05:30
Kovid Goyal
d4d2ae969e
Use a branchless check for unicode range 2025-04-01 12:32:17 +05:30
Kovid Goyal
6ecd78d9db
Remove bounds checking for unicode table access in Go 2025-04-01 10:41:17 +05:30
Kovid Goyal
66856e7b52
Use a multi-stage lookup table for grapheme segmentation 2025-03-31 21:51:28 +05:30
Kovid Goyal
163b3de85b
Also forgot to add non-characters to invalid class 2025-03-30 10:44:26 +05:30
Kovid Goyal
a5a25fbd8c
Fix missed out some codepoints when porting is_non_rendered to unicode lookup table
Fixes #8495
2025-03-30 10:40:19 +05:30
Kovid Goyal
9e1601a9b5
Nicer way to include grapheme test data in Go tests 2025-03-27 03:20:27 +05:30
Kovid Goyal
7807e51e65
... 2025-03-26 22:06:17 +05:30
Kovid Goyal
305c1a25c5
More robust fetching of grapheme break test data in Go test 2025-03-26 21:56:52 +05:30
Kovid Goyal
fd2bbf57e3
Make unicode category data useable in other modules 2025-03-25 16:35:09 +05:30
Kovid Goyal
294de16898
Use ms table for remaining UCD lookups 2025-03-25 15:41:34 +05:30
Kovid Goyal
aad58cf703
Declare CharProps just once 2025-03-25 14:08:47 +05:30
Kovid Goyal
d429f732e1
DRYer 2025-03-25 13:45:56 +05:30
Kovid Goyal
b66a763ddf
Use a 3 stage table for Unicode properties
Halves the data size and reduces source code size by 50x
Shows no significant runtime performance effect.
Allows for easily adding more properties to the table in the future
2025-03-25 13:16:59 +05:30
Kovid Goyal
9f7643078c
Use unicode multi-table for remaining hot path lookups
Results in a 15% improvement in the unicode throughput benchmark
2025-03-24 15:04:33 +05:30
Kovid Goyal
3d0e45ace8
Use the new multi-stage unicode table for wcwidth 2025-03-24 14:20:40 +05:30
Kovid Goyal
7697a1650d
Add is_emoji_presentation_base to char props table 2025-03-24 13:55:49 +05:30
Kovid Goyal
f02245af79
Also run gofmt on kittens subdir in CI 2025-03-23 20:26:10 +05:30
Kovid Goyal
c73f5ab8a0
... 2025-03-23 19:37:23 +05:30
Kovid Goyal
16f7380cb0
Implement grapheme segmentation in Go 2025-03-23 19:24:12 +05:30
Kovid Goyal
aa8c32006f
Implement grapheme seg algo in Go 2025-03-22 14:54:58 +05:30
Kovid Goyal
7e780a2294
CharProps data for Go 2025-03-22 13:18:09 +05:30
Kovid Goyal
9663f935fb
... 2025-03-22 11:56:56 +05:30
Kovid Goyal
583a858769
Use a multistage lookup table for grapheme segmentation 2025-03-22 11:50:04 +05:30
Kovid Goyal
191ea16cd7
Confirm and run tool 2025-03-20 13:35:12 +05:30
Kovid Goyal
d82edad2be
... 2025-03-20 12:50:51 +05:30
Kovid Goyal
0afa6d5b3d
Fix shebang viewing of short scripts not working 2025-03-20 12:49:28 +05:30
Kovid Goyal
f3448cbbee
... 2025-03-20 12:31:02 +05:30
Kovid Goyal
ca1555d12e
Avoid spinning up the python interpreter just for running a shebang 2025-03-20 11:36:59 +05:30
Kovid Goyal
9c1c141775
Start work on grapheme segmentation algorithm 2025-03-13 11:19:54 +05:30
Kovid Goyal
98f9a568ce
Add Extended_Pictographic property 2025-03-13 10:01:41 +05:30
Kovid Goyal
039af78785
Add Indic Conjunct Break data 2025-03-13 09:18:42 +05:30
Kovid Goyal
1ee0b3369d
Fix GBP generation 2025-03-13 08:37:52 +05:30
Kovid Goyal
9cb56c2775
Run gofmt on grapheme-segmentation-data 2025-03-13 07:11:21 +05:30
Kovid Goyal
dc625c5e0c
Add grapheme break properties when generating wcwidth data 2025-03-13 07:06:46 +05:30
Kovid Goyal
812fe467c9
Report OSC 6/106 as ignored only once 2025-03-09 19:02:19 +05:30
Kovid Goyal
375583259a
Fix --hold always restoring cursor to block shape instead of respecting the value of cursor_shape 2025-02-18 20:21:07 +05:30
Kovid Goyal
f29bc638ce
Remote control: allow scrolling to prev/next prompt 2025-02-18 19:17:10 +05:30
Kovid Goyal
54a42b564e
More work on Go VT parser 2025-02-10 11:46:46 +05:30
Kovid Goyal
8bf383d1c4
DRYer: Use the existing unix package stat() 2025-02-09 15:01:05 +05:30
Kovid Goyal
3832e45a6f
Fix another incorrect use of unix.Stat_t 2025-02-09 14:22:08 +05:30
Kovid Goyal
8e4050b923
... 2025-02-09 14:12:46 +05:30
Kovid Goyal
a582de98dc
Fix building of kitten on other platforms 2025-02-09 14:11:14 +05:30
Kovid Goyal
b0c41a70bd
Start work on VT LineBuf in Go 2025-02-07 20:09:00 +05:30
Kovid Goyal
2f57d20153
Add hyperlink id to CellAttrs 2025-02-06 20:35:50 +05:30
Kovid Goyal
92e2b93e95
Start work on VT implementation in Go
Will be used by pager kitten
2025-02-06 12:31:32 +05:30
Kovid Goyal
8931062a70
hints kitten: Workaround for some broken light color themes that make the hints text color too low contrast to read
Fixes #7330
2025-01-17 20:22:10 +05:30
Kovid Goyal
0ffaaff8a7
Fix #8220 2025-01-16 13:21:31 +05:30
Kovid Goyal
1eeea70c7a
Allow dynamically generating configuration by running an arbitrary program using the new geninclude directive 2025-01-06 19:00:01 +05:30
Kovid Goyal
795bf7fb52
Dont use a global var for mocking 2025-01-05 20:58:33 +05:30
Kovid Goyal
86a6685446
Add mock for failing test 2025-01-05 20:36:32 +05:30
Kovid Goyal
2d02ff1c5f
Implement using effective kitty config options for kittens
Also centralise reading of kitty options
2025-01-05 20:16:43 +05:30
Kovid Goyal
334adf9c1a
Ensure temp files and other resources are cleaned up even if kitty crashes or is SIGKILLed 2025-01-05 12:51:59 +05:30
Kovid Goyal
25cb73511f
Implement atexit.rmtree 2025-01-05 11:04:23 +05:30
Kovid Goyal
0d5bcff353
Tool to implement robust cleanups even on process crash 2025-01-05 10:50:50 +05:30
Kovid Goyal
f3db7e7554
diff kitten: Automatically change colors on terminal color scheme change 2025-01-05 06:00:24 +05:30
Kovid Goyal
134271be93
diff kitten: Abort when run inside a terminal that does not support the kitty keyboard protocol
Fixes #8185
2025-01-03 21:34:38 +05:30
Kovid Goyal
fc463aaba5
Code to query terminal for capabilities 2025-01-03 21:30:05 +05:30
Kovid Goyal
35b3ae8edb
Revert "themes kitten: When using the Default theme as an auto switch theme include all the actual settings values"
This reverts commit 2abc0be844.
2024-12-20 12:54:47 +05:30
Kovid Goyal
2abc0be844
themes kitten: When using the Default theme as an auto switch theme include all the actual settings values
Fixes #8124
2024-12-16 15:32:32 +05:30
Kovid Goyal
d5356804c8
... 2024-11-23 12:06:39 +05:30
Kovid Goyal
a87ccbf8e5
Add some combining chars to the benchmark 2024-11-23 12:02:59 +05:30
Kovid Goyal
4cb190130f
Document why we explicitly turn off in band resize 2024-11-19 08:08:35 +05:30
Tim Culverhouse
4b354fbd30 tui: explicitly turn off in-band resize mode
Explicitly turn off in-band resize notifications if they were requested
as part of the loop. Kitty implicitly resets this mode when `XTRESTORE`
(`CSI ? r`) is seen, however some terminals implementing mode 2048
(eg foot and Ghostty) follow the xterm behavior of only restoring the
state of explicitly passed modes.

Some of the kittens have become very useful outside of just Kitty
(`show-key`, for example). Add an explicit reset of mode 2048 to support
the behavior of other terminal emulators.
2024-11-18 10:51:14 -06:00
Kovid Goyal
af8605dabf
bump unicode version to 16 2024-11-10 09:03:52 +05:30
Kovid Goyal
96c1a5c4d1
Get automatic theme switching working 2024-11-07 17:31:44 +05:30
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
Kovid Goyal
9e688720a6
Work on supporting mouse interactions via simple hyperlinks 2024-06-24 07:54:13 +05:30
Kovid Goyal
9dc8374d8b
Display all styles from STAT table 2024-06-24 07:54:13 +05:30
Kovid Goyal
d1ba421e8c
Work on getting styles from STAT table data 2024-06-24 07:54:13 +05:30
Kovid Goyal
3814e92f31
Work on listing available styles for a family 2024-06-24 07:54:12 +05:30
Kovid Goyal
3b80ee0981
Load font variable data on demand 2024-06-24 07:54:12 +05:30
Kovid Goyal
6baa915058
... 2024-06-24 07:54:12 +05:30
Kovid Goyal
71f7da1550
dont use a thread for I/O with kitten 2024-06-24 07:54:12 +05:30
Kovid Goyal
3fa768d7ef
get multiple JSON messages working 2024-06-24 07:54:12 +05:30
Kovid Goyal
26837ed6a4
List families asynchronously 2024-06-24 07:54:12 +05:30
Kovid Goyal
2bcd47227c
Wire up arrow keys for moving in family list 2024-06-24 07:54:12 +05:30
Kovid Goyal
0864c2728d
Wire up searching 2024-06-24 07:54:12 +05:30
Kovid Goyal
1d1998b4de
Start work on list-fonts kitten 2024-06-24 07:54:12 +05:30
Kovid Goyal
608a497421
forgot to port test to use new API 2024-06-15 16:41:11 +05:30
Kovid Goyal
f4bec5f4ab
Remote control: Fix empty password not working
Fixes #7538
2024-06-15 11:15:19 +05:30
Kovid Goyal
5dd737e991
... 2024-05-23 08:36:21 +05:30
Kovid Goyal
044782ee13
... 2024-05-22 17:25:37 +05:30
Kovid Goyal
3f6b1a9d81
launch --hold: Fix hold not working if kernel signals process group with SIGINT
Fixes #7466
2024-05-22 17:24:36 +05:30
Kovid Goyal
b3ea6526e7
Forgot to change min bg opacity in the kitten code 2024-05-22 11:34:37 +05:30
Kovid Goyal
dbeb31b7ad
... 2024-05-18 08:44:09 +05:30
Kovid Goyal
c72ff568c5
Micro-optimization
Start the background process immediately and use a zero timer only if
executing the process fails, thereby guaranteeing ordering without
imposing a delay on process start.
2024-05-18 08:34:01 +05:30
Kovid Goyal
a9924d2ab7
oops 2024-05-17 22:45:52 +05:30
Kovid Goyal
9e3b49ab84
Micro-optimization 2024-05-17 22:36:09 +05:30
Kovid Goyal
a661f00651
Fix the previous fix
Store pending responses since the parser can call HandleDCS multiple
times in a single Read()
2024-05-17 22:27:17 +05:30
Kovid Goyal
703068f884
Fix packet coalescing over network transport causing remote control run over socket not working reliably 2024-05-17 22:18:04 +05:30
Kovid Goyal
64870af53f
simplify logic 2024-05-17 20:05:24 +05:30
Kovid Goyal
8a175010e6
typo 2024-05-14 20:32:34 +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
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
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
3d98b33076
... 2024-04-09 08:39:42 +05:30
Kovid Goyal
a444b5eccb
Only use raw monotonic time on Linux and macOS 2024-04-09 08:21:20 +05:30
Kovid Goyal
6c64428be9
CLOCK_MONOTONIC_RAW support for Go 2024-04-09 08:04:15 +05:30
Kovid Goyal
55feef8663
Linter fixes 2024-03-22 11:16:02 +05:30
Kovid Goyal
3b74fcb88c
switch to a maintained fork of imaging 2024-03-22 10:38:22 +05:30
Kovid Goyal
e818f01ff2
Ensure palette is large enough to avoid panics with invalid images that have pixels refering to colors not in the palette 2024-03-22 10:01:20 +05:30
Kovid Goyal
e11081ac09
Use exiffix rather than imaging to handle EXIF rotation
exiffix works for more formats than just JPEG
2024-03-22 09:35:39 +05:30
Kovid Goyal
11882aef2d
Fix #7243 2024-03-21 17:16:09 +05:30
Kovid Goyal
924b87a16a
Convenience function to get terminfo data in kittens 2024-03-21 10:58:46 +05:30
Kovid Goyal
32f0da2e77
Ensure no frame is created for assembly functions 2024-03-15 07:58:09 +05:30
Kovid Goyal
65923b1aba
Add some benchamrking 2024-03-07 11:09:24 +05:30
Kovid Goyal
47fea26b62
Add an IndexByte implementation useful for benchmarking against stdlib SIMD implementation 2024-03-07 09:36:40 +05:30
Kovid Goyal
210c417d96
... 2024-03-06 10:41:39 +05:30
Kovid Goyal
c1af14c22a
Fix @ send-key not working to send keys to self over TTY 2024-03-05 13:09:07 +05:30
Kovid Goyal
63d974135b
Clean up linter warnings 2024-03-05 08:27:13 +05:30
Kovid Goyal
c19488f3be
Graphics protocol: Add a new delete mode for deleting images whose ids fall within a range
Useful for bulk deletion. See #7080
2024-02-25 09:57:44 +05:30
Kovid Goyal
b52af64ffe
Hide cursor during benchmark run 2024-02-25 09:57:43 +05:30
Kovid Goyal
a7c06b38e6
We dont actually need vzeroupper at start of function
GCC emits vzeroupper automatically when compiling with native
optimizations but we still need it otherwise
2024-02-25 09:57:43 +05:30
Kovid Goyal
16d36c46fe
Update to using math/rand/v2 2024-02-25 09:57:43 +05:30
Kovid Goyal
720618bc37
Use go 1.22 for building
It supports PCALIGN on non ARM arches as well
2024-02-25 09:57:43 +05:30
Kovid Goyal
2f727e6561
... 2024-02-25 09:57:43 +05:30
Kovid Goyal
b65a5f78fd
Fix regression causing shells in darwin to not run in login mode 2024-02-25 09:57:43 +05:30
Kovid Goyal
ede4d7fbca
... 2024-02-25 09:57:42 +05:30
Kovid Goyal
c01b959723
Fix Go unaligned index implementation 2024-02-25 09:57:42 +05:30
Kovid Goyal
7467307200
Add some alignment tests 2024-02-25 09:57:42 +05:30
Kovid Goyal
bbdb0b15f3
DRYer 2024-02-25 09:57:42 +05:30
Kovid Goyal
b5edd9ad57
Dont precalculate mask in loop body
No need since we dont shift. Avoids the extra mask instructions for the
not found case.
2024-02-25 09:57:42 +05:30
Kovid Goyal
f9fd6ffd46
Use only aligned loads for index funcs
Also obviates the necessity for safe slice wrappers
2024-02-25 09:57:41 +05:30
Kovid Goyal
31a5fcf297
DRYer 2024-02-25 09:57:41 +05:30
Kovid Goyal
561712090d
Fix cmplt implementation 2024-02-25 09:57:41 +05:30
Kovid Goyal
d9190ea675
DRYer 2024-02-25 09:57:41 +05:30
Kovid Goyal
57f4ea4d4a
Add some tests for broadcast from constant intrinsic 2024-02-25 09:57:41 +05:30
Kovid Goyal
9b0ae8d403
Dont use VEX encoded instructions for 128 bit ISA 2024-02-25 09:57:41 +05:30
Kovid Goyal
aed0611fb8
Avoid double trailing RET 2024-02-25 09:57:40 +05:30
Kovid Goyal
5a5e31c38b
Also zero upper at start of function 2024-02-25 09:57:40 +05:30
Kovid Goyal
db2e0e816d
Fix mixing of register types in the same function 2024-02-25 09:57:40 +05:30
Kovid Goyal
a298781b85
DRYer 2024-02-25 09:57:40 +05:30
Kovid Goyal
d5cd9ef2ca
... 2024-02-25 09:57:40 +05:30
Kovid Goyal
da31db3212
... 2024-02-25 09:57:40 +05:30
Kovid Goyal
601c4ad4df
Fix some typos 2024-02-25 09:57:40 +05:30
Kovid Goyal
68d800d4fa
make clean should clean generated asm as well 2024-02-25 09:57:40 +05:30
Kovid Goyal
9fc3db1dd1
Work on C0 index func 2024-02-25 09:57:40 +05:30