Kovid Goyal
00dc5a8dc5
Fix a regression caused by rewrite of kittens to Go that made various kittens reset colors in a terminal when the colors were changed by escape code
...
Fixes #6708
2023-10-12 20:19:28 +05:30
Kovid Goyal
455d0a6048
Dont show hidden sub-commands during completion
2023-10-10 05:41:27 +05:30
Kovid Goyal
5d0dabe51c
completion: match exe on basename alone
2023-10-10 05:22:40 +05:30
Kovid Goyal
9e514df604
More linter fixes
2023-10-05 10:07:25 +05:30
Kovid Goyal
8865d3231a
Fix themes that dont define a background color incorrectly being classified as light
...
The default bg in kitty is dark
2023-10-05 09:36:59 +05:30
Kovid Goyal
59e4c6660e
run-shell: Allow specifying the cwd
2023-09-24 10:40:21 +05:30
Kovid Goyal
38be3e98a1
More linter fixes
2023-09-24 09:16:27 +05:30
Kovid Goyal
4af1a38507
More linter fixes
2023-09-24 09:06:15 +05:30
Kovid Goyal
c280a28155
Dont use os.Remove on failures in syscall_shm
...
Use shm_unlink instead
2023-09-23 11:16:30 +05:30
Kovid Goyal
24598b846c
...
2023-09-23 11:09:51 +05:30
Kovid Goyal
dc43f0d42f
...
2023-09-23 11:08:55 +05:30
Kovid Goyal
5fede41205
Always use fallocate() on Linux for SHM creation
2023-09-23 10:55:15 +05:30
Kovid Goyal
6619bf33b0
Using fcntl() based fallocate on darwin doesnt work with file descriptors returned by shm_open
2023-09-23 10:39:10 +05:30
Kovid Goyal
38bac98c12
Fix build of fallocate_darwin.go
2023-09-23 10:08:04 +05:30
Kovid Goyal
2e4f3dab41
Use fallocate() rather than truncate() when creating SHM memory
...
With truncate() the OS might not actually allocate the space leading to
a SIGBUS if /dev/shm runs out of space when actually using the mmap.
By using fallocate we ensure that once the SHM mmap is created it wont
fail
2023-09-23 09:53:17 +05:30
Kovid Goyal
911c80aa3b
More linter fixes
2023-09-22 12:20:37 +05:30
Kovid Goyal
fd85dfb417
DRYer
2023-09-22 12:13:17 +05:30
Kovid Goyal
c650bd0aac
icat: Dont open the controlling terminal to query for size if stdout is a terminal, use it instead
2023-09-22 12:10:21 +05:30
Kovid Goyal
fc1331cfdc
Dont call tcgetattr when no operations are specified
2023-09-22 09:37:48 +05:30
Kovid Goyal
fe4fdaefb9
Remove unused code
2023-09-22 09:25:21 +05:30
Kovid Goyal
704ae40dee
More linter fixes
2023-09-22 09:24:31 +05:30
Kovid Goyal
1a32e62ebf
More linter fixes
2023-09-18 21:07:39 +05:30
Kovid Goyal
7faf216f9e
More linter fixes
2023-09-18 20:59:47 +05:30
Kovid Goyal
6bafdedd65
Fix some linter issues
2023-09-18 20:38:08 +05:30
Kovid Goyal
bd036040a6
themes kitten: Allow absolute paths for --config-file-name
...
Fixes #6638
2023-09-18 20:31:30 +05:30
Kovid Goyal
863adb3e8d
Go: Fix parsing of nullable colors
...
Fixes #6629
2023-09-15 20:36:24 +05:30
Kovid Goyal
5c4efc0fd7
...
2023-09-14 08:24:43 +05:30
Kovid Goyal
93618842ae
Make a couple of other Set API functions nil-safe
2023-09-12 15:37:24 +05:30
Kovid Goyal
2d7bbf60cc
Fix #6615
2023-09-12 15:34:09 +05:30
Kovid Goyal
d1d888ce19
Remove unnecessary copy of the decoder array
2023-09-04 22:28:18 +05:30
Kovid Goyal
1f4386fd08
...
2023-09-04 21:44:46 +05:30
Kovid Goyal
34e5c7f8aa
Ensure efficient conversion for base85 string API
2023-09-04 21:39:03 +05:30
Kovid Goyal
541c0cdde4
Do not build decode table for base85 until it is actually needed
...
Also make the tests actual tests
2023-09-04 21:32:25 +05:30
Kovid Goyal
0107d1cb89
Import base85.go into tree
...
Upstream is not maintained last commit was six years ago and there
are various improvements to be had in the code
2023-09-04 20:29:20 +05:30
Kovid Goyal
4ffb22199b
Cleanup previous PR
2023-09-03 18:59:37 +05:30
Jake Stewart
8754d80832
add tests for go config parser
2023-09-03 16:39:27 +08:00
Jake Stewart
0aa4c850ba
add line break syntax to go config parser
2023-09-03 16:39:13 +08:00
Kovid Goyal
0be1295023
kitten run-shell: Make kitty terminfo database available if needed before starting the shell
2023-09-01 22:05:26 +05:30
Kovid Goyal
71a2d7359a
Function to extract terminfo
2023-09-01 19:41:46 +05:30
Kovid Goyal
9702f08698
kitten run-shell: Allow specifying env vars when running the shell
2023-08-30 14:12:10 +05:30
Eng Zer Jun
77563cebb0
cli/command: remove redundant nil check
...
From the Go specification:
"1. For a nil slice, the number of iterations is 0." [1]
Therefore, an additional nil check for before the loop is unnecessary.
[1]: https://go.dev/ref/spec#For_range
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2023-08-30 11:50:52 +08:00
Kovid Goyal
4f72bb9894
Replace utils.Once with stdlib sync.OnceValue
2023-08-09 12:08:42 +05:30
Kovid Goyal
49ea26968c
Bump go version to 1.21
...
Allows us to use the much faster builtin min/max functions
for two variable min/max
2023-08-09 11:58:16 +05:30
Kovid Goyal
696ef40e38
Remove already done TODO note
2023-08-08 21:20:16 +05:30
Kovid Goyal
f8b8f68e38
Make wait_for_write_complete more robust
...
It now actually waits for the expected sentinel id even when there are
no pending writes
2023-08-08 17:17:51 +05:30
Kovid Goyal
8bf5b92cd6
Merge branch 'master-1' of https://github.com/hezhizhen/kitty
2023-08-08 16:47:27 +05:30
Zhizhen He
47e130c4c0
Fix typo
2023-08-08 16:39:00 +08:00
Kovid Goyal
0e87e0c7de
Work on refactoring send kitten to fix various issues
2023-08-08 06:28:43 +05:30
Kovid Goyal
0971e8c630
strings.Title works better than cases.Title
2023-08-07 21:49:50 +05:30
Kovid Goyal
04febb20d5
...
2023-08-07 15:45:46 +05:30