129186761c
Update patches from https://github.com/KittyPatch/kitty to work on current kitty
2023-05-12 21:06:00 -07:00
Kovid Goyal
491297ea1d
When asking for permission to exec a shebang script also add options to view or edit the script
2023-05-12 16:02:47 +05:30
Kovid Goyal
c101a6acb0
Implement a dedicated function for word matching rather than relying on a regex and being at the mercy of the vagaries of regex implementations
2023-05-12 15:43:56 +05:30
Kovid Goyal
65f8bb7397
hints kitten: Switch to using a regex engine that supports lookaround
...
Note that we loose unicode char matching for --type=word because of
https://github.com/dlclark/regexp2/issues/65 and of course user regexps
cant use \p{N} escapes any more. Hopefully regexp2 will add support for
these soon-ish. IMO lookaround is more important than \p.
Fixes #6265
2023-05-12 12:24:59 +05:30
Kovid Goyal
5b8b91b6a3
Add support for OSC 1337 SetUserVar
...
See https://github.com/kovidgoyal/kitty/discussions/6229
2023-05-11 17:57:45 +05:30
Kovid Goyal
6a2edfa847
Merge branch 'pr-fix-shade' of https://github.com/MithicSpirit/kitty
2023-05-10 09:56:59 +05:30
MithicSpirit
28b84a2d5b
Add support for 0x1fb90
...
Allocation in box_glyph_id is larger than necessary to account for the
addition of 0x1fb8c ... 0x1fb94 eventually, which are quite similar but
will require more work to add. Note that 0x1fb93 is not present in the
standard yet, but it is easy to guess what it will likely be from
context, so it should be kept in the allocation imo.
2023-05-09 22:19:03 -04:00
MithicSpirit
c247fe2336
Revert "Improve shade character appearance"
...
This reverts commit c883a024ba .
To maximize compatibility with the appearance in the standard.
2023-05-09 22:06:05 -04:00
MithicSpirit
c883a024ba
Improve shade character appearance
...
I was really unhappy with the previous checkerboard appearance, so I
changed it to supersampled diagonal lines. The fill ratios are still the
same, so it should still be compliant with the standard if I understood
it correctly.
Feel free to revert (or tell me to revert) this commit if you want the
previous look.
2023-05-09 16:08:02 -04:00
Kovid Goyal
0cc38e1086
...
2023-05-09 09:50:11 +05:30
Kovid Goyal
1777b87c45
Improve docs for reset the terminal
2023-05-09 09:44:05 +05:30
Kovid Goyal
e72975cc98
A new escape code that moves the current contents of the screen into the scrollback before clearing it
2023-05-09 09:32:39 +05:30
Kovid Goyal
8f15654985
Ensure kitty is rebuilt after publishing the nightly
2023-05-09 08:54:29 +05:30
Kovid Goyal
2408ccb635
...
2023-05-09 08:48:37 +05:30
Kovid Goyal
a0cf4214df
...
2023-05-09 08:44:51 +05:30
Kovid Goyal
07203c67ca
Add a note about why kitty terminfo does not have E3
...
See #6255
2023-05-09 08:28:54 +05:30
MithicSpirit
a36fe45181
Fix shade characters to follow unicode standard
...
- Light shade: 25% fill
- Medium shade: 50% fill
- Dark shade: 75% fill (implemented as inverse of light shade)
2023-05-08 18:46:24 -04:00
Kovid Goyal
061c444f20
...
2023-05-08 16:36:47 +05:30
Kovid Goyal
a1d791083b
ssh_kitten: Proper exit code for termination by SIGINT
2023-05-08 16:27:07 +05:30
Kovid Goyal
454acd4f5c
ssh kitten: Fix a regression in 0.28.0 that caused interrupt during setup to not be handled gracefully
...
Fixes #6254
2023-05-08 16:18:05 +05:30
Kovid Goyal
71189aee9f
Correct the type signature for callback
2023-05-08 16:03:27 +05:30
Kovid Goyal
23d7494e3a
Fix #6251
2023-05-08 08:04:20 +05:30
Kovid Goyal
404f83a277
Add a link to awrit in the integrations page
2023-05-07 10:06:37 +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
79cd6f38fe
...
2023-05-07 09:24:30 +05:30
Kovid Goyal
b7c3946f8f
...
2023-05-07 08:13:57 +05:30
Kovid Goyal
537cabca71
kitty +open: Ask for permission before executing script files that are not marked as executable
...
This prevents accidental execution of script files via MIME type
association from programs that unconditionally "open"
attachments/downloaded files via MIME type associations.
2023-05-07 08:11:39 +05:30
Kovid Goyal
79c19562b5
When publishing stash untracked files as well
2023-05-07 07:42:25 +05:30
Kovid Goyal
52afc79476
Fix re-using an image id for an animated image for a still image causing a crash
...
Fixes #6244
2023-05-06 09:37:55 +05:30
Kovid Goyal
877d8d7008
...
2023-05-04 10:36:02 +05:30
Kovid Goyal
ce70320a62
...
2023-05-04 10:26:18 +05:30
Kovid Goyal
3eb18a416a
Entry point for parsing theme metadata
2023-05-04 10:14:58 +05:30
Kovid Goyal
8ba7258db9
Merge branch 'fix-bash-intergration-var-leak' of https://github.com/syyyr/kitty
2023-05-04 08:05:33 +05:30
Václav Kubernát
a502e94950
bash_integration: Do not leak variable i
...
With shell-integration, the user would see the last value of this
variable (as set by the shell-integration script.
Fix this by making it local.
2023-05-03 18:35:30 +02:00
Kovid Goyal
ea5634b3fd
When parsing theme metadata ignore the name if it is the placeholder value from the template
2023-05-03 21:55:33 +05:30
Kovid Goyal
87943079fb
Fix #6238
2023-05-03 21:40:42 +05:30
Kovid Goyal
a77b2b20c2
Fix #6230
2023-05-03 18:25:07 +05:30
Kovid Goyal
8f96395f74
diff kitten: Fix a regression in 0.28.0 that broke using relative paths as arguments to the kitten
...
Fixes #6235
2023-05-03 08:34:46 +05:30
Kovid Goyal
1fc4e53bea
hints kitten: Fix a regression in 0.28.0 that broke using sub-groups in regexp captures
...
Fixes #6228
2023-04-30 21:16:24 +05:30
Kovid Goyal
f6ccd2ad2c
Dont apply linear2srgb in borders with bg image as the cell shader doesnt apply it then either
2023-04-30 10:19:35 +05:30
Kovid Goyal
bc2af4acf9
Update changelog
2023-04-30 09:09:09 +05:30
Kovid Goyal
07dbfaa297
Fix #6224
2023-04-30 08:28:02 +05:30
Kovid Goyal
8020d5823b
Fix #6225
2023-04-30 07:15:56 +05:30
Kovid Goyal
73f10aaf43
clipboard kitten: Fix a bug causing the last MIME type available on the clipboard not being recognized when pasting with arbitrary MIME types
2023-04-30 06:48:09 +05:30
Kovid Goyal
59c4d4a4bd
DRYer
2023-04-28 20:30:15 +05:30
Kovid Goyal
ef999c9024
Also show stderr from tmux on failure
2023-04-28 20:16:37 +05:30
Kovid Goyal
514888a274
Use FindExe to find the tmux executable and return a nicer error message when running tmux fails
2023-04-28 20:11:15 +05:30
Kovid Goyal
09ebdcd809
Allow using set_tab_title without a pre-filled title. Fixes #6217
2023-04-28 10:14:25 +05:30
Kovid Goyal
8ebe4084cc
Merge branch 'fix/6209-background_opacity_fringing' of https://github.com/m4rw3r/kitty
2023-04-28 09:28:09 +05:30
Martin Wernstål
9f41183628
fix: account for incorrect gamma-blending performed by compositor on transparent windows
...
Fixes #6209
2023-04-27 18:35:06 +02:00
Martin Wernstål
289957ef1c
style: use ifdef to be consistent with the other cases
2023-04-27 18:34:00 +02:00
Martin Wernstål
920b350ac9
feat: more exact sRGB approximation
2023-04-27 18:27:46 +02:00
Kovid Goyal
d14655f644
Merge pull request #6216 from jaseg/master
...
docs/basic.rst: Add resize window shortcut
2023-04-27 16:25:03 +05:30
jaseg
29583411e6
docs/basic.rst: Add resize window shortcut
2023-04-27 12:48:05 +02:00
Kovid Goyal
019359b219
show_key kitten: In kitty mode show the actual bytes sent by the terminal rather than a re-encoding of the parsed key event
...
Also port the kitten to Go
2023-04-26 21:48:53 +05:30
Kovid Goyal
7b6d11fd1e
Fix rendering of :doc: links with explicit titles in help text in the terminal
2023-04-26 16:46:20 +05:30
Kovid Goyal
bb33c66570
Fix #6213
2023-04-26 16:38:25 +05:30
Kovid Goyal
c2fc4eadc8
unicode_input: Only serialize favorites if no user config exists
2023-04-26 16:02:18 +05:30
Kovid Goyal
a7b4d07601
unicode_input kitten: Fix a regression in 0.28.0 that caused the order of recent and favorites entries to not be respected
...
Fixes #6214
2023-04-26 15:55:56 +05:30
Kovid Goyal
6a07435bb0
hints kitten: Fix regression causing editing of favorites to sometimes hang
2023-04-26 15:23:38 +05:30
Kovid Goyal
93a5107e79
Fix #6202
2023-04-21 21:35:59 +05:30
Kovid Goyal
6cc8e67580
Add example code to get screen size in Bash
2023-04-21 15:18:30 +05:30
Kovid Goyal
ccdb951716
Website: Fix optimization of social preview images
2023-04-21 14:19:36 +05:30
Kovid Goyal
07bcc5ba61
version 0.28.1
2023-04-21 13:10:01 +05:30
Kovid Goyal
6e90bc1996
...
2023-04-20 21:48:07 +05:30
Kovid Goyal
6269f78ed2
Make it clearer that exclude operates only on directories
2023-04-18 09:22:34 +05:30
Kovid Goyal
dd0e1cce9e
Bump versions of various go deps
2023-04-18 09:13:08 +05:30
Kovid Goyal
92e68a6e0c
Fix #6193
2023-04-18 09:05:28 +05:30
Kovid Goyal
e4baca6d97
Emphasize that names of custom theme conf files must actual builtin theme names to override them
2023-04-17 08:47:26 +05:30
Kovid Goyal
a09464dee9
Fix a regression in the previous release that broke usage of custom themes
...
Fixes #6191
2023-04-17 08:45:46 +05:30
Kovid Goyal
b966013a2b
Make Samefile interface a bit nicer for working with paths
2023-04-17 08:35:50 +05:30
Kovid Goyal
046fbb860b
themes kitten: ignore custom theme files if they are stdout
2023-04-17 08:02:41 +05:30
Kovid Goyal
91700b3e42
Fix a bug in the Go code of the CSI key event parser
...
Fixes #6189
2023-04-16 15:31:56 +05:30
Kovid Goyal
b314303787
pep8
2023-04-16 15:31:03 +05:30
Kovid Goyal
176cfe771c
Merge branch 'void_functions' of https://github.com/derekschrock/kitty
2023-04-16 11:06:35 +05:30
Derek Schrock
3b57acf03c
More cases of #5477 functions with empty argument lists
...
Building on macOS 13.3.1 (22E261) clang 14.0.3 (clang-1403.0.22.14.1)
running to errors like #5477 where functions without argument lists at
least need void.
Looking for possible suspect functions via:
git grep -E "^([A-Za-z_]+ )?[A-Za-z_]+\()" \*.c \*.m
2023-04-16 01:09:36 -04:00
Kovid Goyal
77e2572c5a
Optimize social preview images before publishing website
2023-04-15 21:49:32 +05:30
Kovid Goyal
39eff0fe8c
Fix a regression in the previous release that broke the remote file kitten
...
Fixes #6186
2023-04-15 21:04:30 +05:30
Kovid Goyal
12efff6d08
Fix #6185
2023-04-15 20:43:58 +05:30
Kovid Goyal
b81f457e9b
version 0.28.0
2023-04-15 11:17:36 +05:30
Kovid Goyal
35ebd32f4c
Merge branch 'fix-iplot-heredoc' of https://github.com/zaidhaan/kitty
2023-04-15 08:26:06 +05:30
Zaidhaan Hussain
63fff29621
Docs: fix heredoc issue in iplot snippet
2023-04-15 06:44:11 +08:00
Kovid Goyal
2f63f24e7d
log system color scheme changes
2023-04-13 13:29:03 +05:30
Kovid Goyal
66801b6b28
GLFW API to track system color scheme dark/light
...
Implemented only on macOS and Wayland.
2023-04-13 13:16:33 +05:30
Kovid Goyal
1392d8cdb7
Merge branch 'master' of https://github.com/Nogesma/kitty
2023-04-11 19:36:15 +05:30
Mano Ségransan
0d2a27968b
Add twitch-tui to the list of program that use the kitty graphics protocol
2023-04-11 15:25:32 +02:00
Kovid Goyal
912dcc0a6e
Nicer error message when the version of go on the system is too old
2023-04-10 11:31:53 +05:30
Kovid Goyal
d4c5b8c899
Keyboard input: Fix text not being reported as unicode codepoints for multi-byte characters in the kitty keyboard protocol
...
Fixes #6167
2023-04-09 22:57:40 +05:30
Kovid Goyal
6aa2a7f99d
...
2023-04-09 09:08:34 +05:30
Kovid Goyal
f250a93715
Fix #6165
2023-04-09 08:48:56 +05:30
Kovid Goyal
373c05943f
Allow specifying full layout specifications with options for goto_layout
...
Fixes #6163
2023-04-08 13:35:38 +05:30
Kovid Goyal
d9d2e31318
Another place where [:max_length] is used without checking
2023-04-07 18:08:38 +05:30
Kovid Goyal
3f943998c6
Note that the kitty keyboard protocol can be used in emacs
2023-04-07 08:22:33 +05:30
Kovid Goyal
1dd3490611
Fix #6160
2023-04-06 15:14:21 +05:30
Kovid Goyal
7803b07e7f
Ignore leading and trailing space around values when parsing config lines
2023-04-06 10:45:34 +05:30
Kovid Goyal
feb5da70a8
Clean up changelog a bit
2023-04-05 21:12:06 +05:30
Kovid Goyal
c3246051d4
...
2023-04-05 18:08:58 +05:30
Kovid Goyal
912aa17594
...
2023-04-05 08:08:54 +05:30
Kovid Goyal
708267d229
Fix parsing of actions in map directives in Go
2023-04-05 07:55:18 +05:30
Kovid Goyal
3ee77a3a57
Fix #6154
2023-04-04 21:18:27 +05:30
Kovid Goyal
6dcc7ad0c7
Add a HOWTO for adjusting text_composition_strategy
2023-04-03 17:40:15 +05:30
Kovid Goyal
e07f2df8d0
Fix rendering of file added/removed lines
2023-04-03 11:07:51 +05:30
Kovid Goyal
bca67cde6f
Fix default for syntax_aliases not being respected
2023-04-02 15:07:41 +05:30
Kovid Goyal
dfa41f01fd
Fix panic caused by incorrectly constructed empty line
...
Also be more defensive in draw_screen() about rendering lines.
2023-04-02 10:18:23 +05:30
Kovid Goyal
dae49d788e
...
2023-04-01 10:51:32 +05:30
Kovid Goyal
1b67fd2ec0
Merge branch 'patch-1' of https://github.com/carlmjohnson/kitty
2023-04-01 07:29:48 +05:30
Carl Johnson
0afcf5a26b
keyboard-protocol.rst: Add Helix
2023-03-31 14:07:09 -04:00
Kovid Goyal
e0cdc26e68
Fix placement of images in diff broken by new render layout
2023-03-30 11:21:28 +05:30
Kovid Goyal
e73282ceb0
Only send graphics protocol commands if there are actual images to diff
2023-03-30 11:06:44 +05:30
Kovid Goyal
9919767aef
Remove unused code
2023-03-30 10:26:39 +05:30
Kovid Goyal
57ef0e29c0
Wait for keypress on panic in alternate screen kittens
2023-03-30 08:26:45 +05:30
Kovid Goyal
c767f7b57f
...
2023-03-30 07:58:00 +05:30
Kovid Goyal
fa094b2697
Update changelog
2023-03-30 07:24:12 +05:30
Kovid Goyal
3da2a3f60f
Fix table alignment in docs
2023-03-29 21:36:31 +05:30
Kovid Goyal
266746c96e
Implement the trim_whitespace option
...
Needed for help text formatting
2023-03-29 21:28:47 +05:30
Kovid Goyal
34526517de
Allow passing multiple options to control how wrapping is done
2023-03-29 20:56:24 +05:30
Kovid Goyal
cb99fbd83c
Dont remove leading and trailing spaces when wrapping
...
Without this we lose some spaces and also there was a case where the
line could end up longer than the specified width.
2023-03-29 20:47:31 +05:30
Kovid Goyal
7169a89591
Add shortcuts for copying to clipboard
2023-03-29 19:56:08 +05:30
Kovid Goyal
37edc728a9
Implement drag scrolling for the diff kitten
2023-03-29 17:14:13 +05:30
Kovid Goyal
05e10d8066
Also parse negative numbers in CSI
2023-03-29 15:12:22 +05:30
Kovid Goyal
aebfdaa69a
Refactor diff mouse selection to use new render layout
2023-03-29 14:32:36 +05:30
Kovid Goyal
468168b9de
Refactor diff search to use new render layout
2023-03-29 13:22:34 +05:30
Kovid Goyal
3dbb830a0e
Refactor diff rendering
...
Dont store full rendered lines, instead fill them up at actual draw
time. Makes implementing mouse selection and searching more robust.
2023-03-29 11:55:03 +05:30
Kovid Goyal
e095a2ab43
Fix #6142
2023-03-28 21:06:39 +05:30
Kovid Goyal
7ed7e82637
Use a filler char other than space
2023-03-28 18:01:04 +05:30
Kovid Goyal
67a9def013
Get copy to primary selection working
2023-03-28 17:15:28 +05:30
Kovid Goyal
676f576ace
Adjust the bounds of the mouse selection taking starting half cell into account
2023-03-28 15:12:41 +05:30
Kovid Goyal
8867818dfe
DRYer
2023-03-28 11:55:08 +05:30
Kovid Goyal
00d4841304
Make the mouse selection code re-useable
2023-03-28 11:48:22 +05:30
Kovid Goyal
277dea647e
More work on mouse selection
2023-03-28 10:29:45 +05:30
Kovid Goyal
45c1e36de9
More work on mouse selection
2023-03-28 08:10:29 +05:30
Kovid Goyal
40ca46d8d8
Fix default generation for nullable colors
2023-03-28 08:09:37 +05:30
Kovid Goyal
0f59a2d543
Fix DECCARA in non-rectangular mode for a single line
2023-03-28 08:02:44 +05:30
Kovid Goyal
d19f28f2b4
More work on mouse selection in the diff kitten
2023-03-27 21:23:31 +05:30
Kovid Goyal
94db6053d5
Turn off atomic update during direct transmission
2023-03-27 20:54:03 +05:30
Kovid Goyal
80204c6056
Use join_half_lines in a few more places
2023-03-27 18:01:53 +05:30
Kovid Goyal
d33b83e6ea
More work on mouse selections
2023-03-27 17:56:00 +05:30
Kovid Goyal
a22933afbc
DRYer
2023-03-27 17:19:13 +05:30
Kovid Goyal
840caf5fd5
Start work on mouse handling in diff kitten
2023-03-27 17:06:56 +05:30
Kovid Goyal
6dfe823dfb
...
2023-03-27 17:05:57 +05:30
Kovid Goyal
71580a2a93
Fix wheel event detection
2023-03-27 16:35:29 +05:30
Kovid Goyal
e85473cee6
Linux Wayland: Fix animated images not being animated continuously
...
Fixes #6126
2023-03-27 13:43:37 +05:30
Kovid Goyal
6504dd15c1
Update folder README
2023-03-27 13:20:10 +05:30
Kovid Goyal
ff55121094
Move the kittens Go code into the kittens folder
2023-03-27 13:06:02 +05:30
Kovid Goyal
3f9579d61d
Port the removed walk test to Go
2023-03-27 12:34:31 +05:30
Kovid Goyal
a2aadd4756
Remove python diff tests as no longer needed
2023-03-27 11:54:34 +05:30
Kovid Goyal
70fd89caac
...
2023-03-27 11:49:11 +05:30
Kovid Goyal
d30091034a
Remove the python diff kitten
2023-03-27 11:46:22 +05:30
Kovid Goyal
fb9d95038d
Free images in kitty when quitting diff kitten
2023-03-27 11:13:04 +05:30
Kovid Goyal
a3f1d3e132
Get image display working
2023-03-27 11:00:21 +05:30
Kovid Goyal
9cc54978e6
Fix margin formatting for binary lines
2023-03-27 08:23:10 +05:30
Kovid Goyal
d66da811db
More work on getting images to display in diff
2023-03-27 07:53:57 +05:30
Kovid Goyal
cece795b16
More work on image support for diff
2023-03-27 07:53:57 +05:30
Kovid Goyal
9eedcc1d2a
Better struct name
2023-03-27 07:53:57 +05:30
Kovid Goyal
508a61bd1c
More work on diffing images
2023-03-27 07:53:57 +05:30
Kovid Goyal
c745961f47
Nicer error messages for failure to load with Magick
2023-03-27 07:53:57 +05:30
Kovid Goyal
be886f9bf9
Make code for loading images with ImageMagick re-useable
2023-03-27 07:53:57 +05:30
Kovid Goyal
404a775f4b
Start work on image support for new diff kitten
2023-03-27 07:53:57 +05:30
Kovid Goyal
18445e20ff
...
2023-03-27 07:53:57 +05:30
Kovid Goyal
7b16132b75
Fix searching in full title lines
2023-03-27 07:53:57 +05:30
Kovid Goyal
0a8fc3f17c
...
2023-03-27 07:53:57 +05:30
Kovid Goyal
d57e47349b
Make searches case insensitive
2023-03-27 07:53:57 +05:30
Kovid Goyal
ccf1dfabbc
Fix highlighting of center changes
2023-03-27 07:53:56 +05:30
Kovid Goyal
de9edb6ff5
Manually specify the closing SGR for a span
2023-03-27 07:53:56 +05:30
Kovid Goyal
6590be84a2
...
2023-03-27 07:53:56 +05:30
Kovid Goyal
ccfae228b9
Avoid panics while rendering
2023-03-27 07:53:56 +05:30
Kovid Goyal
3236a42cb7
...
2023-03-27 07:53:56 +05:30
Kovid Goyal
e774deaef1
Fix tabs and carriage returns being incorrectly sanitized
2023-03-27 07:53:56 +05:30
Kovid Goyal
b5c2d85837
Fix diffing dirs
2023-03-27 07:53:56 +05:30
Kovid Goyal
2d18529d05
Show a message for identical files
2023-03-27 07:53:56 +05:30
Kovid Goyal
2ac170c1b1
Allowing using the anchored diff from the Go stdlib as the diff implementation
2023-03-27 07:53:56 +05:30
Kovid Goyal
9c188096d0
Prevent panics incase highlighting leads to different number of lines
2023-03-27 07:53:56 +05:30
Kovid Goyal
09c6a68804
Fix syntax highlighting of multiline tokens
2023-03-27 07:53:56 +05:30
Kovid Goyal
4c9efb6ff2
Fix bold/dim handling when wrapping
2023-03-27 07:53:56 +05:30
Kovid Goyal
4bc9cf84a3
Micro-optimization
2023-03-27 07:53:56 +05:30
Kovid Goyal
14b58ba015
Fix overrides not being parsed correctly
2023-03-27 07:53:56 +05:30
Kovid Goyal
29a896f9d8
...
2023-03-27 07:53:56 +05:30
Kovid Goyal
f8c83519fe
Reset styles after half lines
2023-03-27 07:53:56 +05:30
Kovid Goyal
91eaa89b3e
Fix various off-by-ones in the search code
2023-03-27 07:53:55 +05:30
Kovid Goyal
1926db8ee8
Correct cursor shape when inputting search query
2023-03-27 07:53:55 +05:30
Kovid Goyal
c19c614d9e
DRYer
2023-03-27 07:53:55 +05:30
Kovid Goyal
f7f6df675f
Implement searching the diff
2023-03-27 07:53:55 +05:30
Kovid Goyal
88bd3ee9ca
New SGR codes to turn off bold/dim independently
...
Allows for robust patching of formatting into already formatted
text. Without this it is not possible to turn off bold without
affecting existing dim and vice versa.
2023-03-27 07:53:55 +05:30
Kovid Goyal
e46a7c39c3
Fix failing test
2023-03-27 07:53:55 +05:30
Kovid Goyal
5086c62a81
Implement changing of context lines
2023-03-27 07:53:55 +05:30
Kovid Goyal
15b0dbb71c
Code to insert SGR formatting into already formatted strings
2023-03-27 07:53:55 +05:30
Kovid Goyal
2a185575b2
Implement drawing of status bar
2023-03-27 07:53:55 +05:30
Kovid Goyal
cf5ea96126
Ensure scroll position is correct after resize
2023-03-27 07:53:55 +05:30
Kovid Goyal
e2edacb629
DRYer
2023-03-27 07:53:55 +05:30
Kovid Goyal
c2e549b79c
Implement syntax highlighting
2023-03-27 07:53:55 +05:30
Kovid Goyal
4d61ad87b3
Implement jumping to fixed locations
2023-03-27 07:53:55 +05:30
Kovid Goyal
2905744dad
Implement scrolling by lines
2023-03-27 07:53:55 +05:30
Kovid Goyal
ebcf85428c
More work on porting diff kitten
2023-03-27 07:53:55 +05:30
Kovid Goyal
425ab4f6d8
Start implementing shortcut handling
2023-03-27 07:53:55 +05:30
Kovid Goyal
924cd4cadd
Do not add a trailing newline when wrapping
2023-03-27 07:53:55 +05:30
Kovid Goyal
e42b4fd9a6
Decrease allocs when wrapping
2023-03-27 07:53:54 +05:30
Kovid Goyal
18b58c5cf9
Ensure wrapping never results in lines longer than the specified word
2023-03-27 07:53:54 +05:30
Kovid Goyal
6c503985ce
Dont run gen-config for diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
648925e83a
More work on porting diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
1c7d1094d4
More work on porting diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
4f5fc1000d
Allow multiple specifications of kwds,ext,mime in completion specs
2023-03-27 07:53:54 +05:30
Kovid Goyal
41ea5f0c63
Ensure unique image id in single session
2023-03-27 07:53:54 +05:30
Kovid Goyal
ef7f13d893
title lines are now displayed
2023-03-27 07:53:54 +05:30
Kovid Goyal
5d8b5ab720
More work on porting diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
ee82cb5a52
More work on porting diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
e4d936b5ed
More work on porting the diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
293c0ab845
More work on porting the diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
bf1f0c00f4
Port full MIME type guessing to Go
2023-03-27 07:53:54 +05:30
Kovid Goyal
3c550bcd28
More work on porting diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
d208670172
Abstract typical config file loading with path and cli overrides
2023-03-27 07:53:54 +05:30
Kovid Goyal
5329546f21
Implement parsing of map
2023-03-27 07:53:54 +05:30
Kovid Goyal
e4fbcb707f
Add lua mime type as a known text mime type
2023-03-27 07:53:54 +05:30
Kovid Goyal
44ff6bd1dd
Start work on porting diff kitten
2023-03-27 07:53:53 +05:30
Kovid Goyal
cb03168957
Merge branch 'patch-1' of https://github.com/piorrro33/kitty
2023-03-27 07:51:56 +05:30
Pierre GRASSER
ce7741c9a8
bootstrap-utils.sh: make grep silent
...
Prevents a print of "no-rc".
2023-03-26 20:31:37 +02:00
Kovid Goyal
5ff1dadf0d
Allow using --session=none to override startup_session
...
Fixes #6131
2023-03-25 10:44:34 +05:30
Kovid Goyal
f046884f23
Allow stopping of URL detection at newlines via url_excluded_characters
...
Fixes #6122
2023-03-21 08:04:42 +05:30
Kovid Goyal
856fddec3c
Tall/fat layout: When changing the number of full size windows, reset the main axis biases. Fixes #6123
2023-03-20 22:36:18 +05:30
Kovid Goyal
f61ddd62d1
Allow specifying an optional integer argument for next_layout. Fixes #6121
2023-03-20 19:49:37 +05:30
Kovid Goyal
1bed92bed1
Cleanup previous PR
2023-03-20 07:42:10 +05:30
Kovid Goyal
122ba17df6
Merge branch 'patch/getpwuid' of https://github.com/usertam/kitty
2023-03-20 07:37:27 +05:30
usertam
08fa7f19f7
kitty_tests, shell-integration: rework getpwuid() exceptions suppression
2023-03-20 03:31:23 +08:00
Kovid Goyal
5f9b520ca0
Bash integration: Dont fail if the user enabled failglob in their bashrc
...
BASH is by *far* the most buggy and least featureful of the three shells.
Fix #6119
2023-03-19 21:05:29 +05:30
Kovid Goyal
47d7e812a3
Cleanup previous PR
2023-03-19 17:20:09 +05:30
Kovid Goyal
9a8e92fade
Merge branch 'patch/getpwuid' of https://github.com/usertam/kitty
2023-03-19 17:18:29 +05:30
Samuel Tam
8a7491722f
shell-integration/ssh/bootstrap.py: suppress getpwuid() exceptions
...
Reference: 89e5ae28bb
2023-03-19 19:28:24 +08:00
Samuel Tam
31319f0b65
kitty_tests/ssh.py: skip login shell detection if getpwuid() fails
2023-03-19 18:45:47 +08:00
Kovid Goyal
fda2646dd3
Cleanup previous PR
2023-03-19 10:37:37 +05:30
Kovid Goyal
14dcf38e51
Merge branch 'xdg-sound-theme-option' of https://github.com/serebit/kitty
2023-03-19 10:20:06 +05:30
Kovid Goyal
e633677749
Run make debug before building static binaries
...
Ensures all deps are built in case make clean was run.
2023-03-19 09:51:57 +05:30
Campbell Jones
55fd885491
Add option to set XDG sound theme on Linux
2023-03-18 16:38:29 -04:00
Kovid Goyal
073b47a236
Revert #6114
...
Frozen kitty builds dont have python files (they are loaded from a
single mmmaped archive), so the test will prevent any
kittens from being found.
Have make clean remove leftover kittens directories
2023-03-18 15:26:33 +05:30
Kovid Goyal
bf773351ed
DRYer
2023-03-17 11:00:00 +05:30
Kovid Goyal
509a45b579
Dont request release events for most kittens
...
They are not needed and there is always a small risk that a release
event could be delivered after the kitten has stopped reading from the
tty, thereby leaking into the environment.
2023-03-17 10:50:10 +05:30
Kovid Goyal
de74b93b16
Update icon link
2023-03-17 09:19:11 +05:30
Kovid Goyal
e4611d0c81
...
2023-03-17 09:02:58 +05:30
Kovid Goyal
b0a4b932ad
...
2023-03-17 08:59:45 +05:30
Kovid Goyal
f7b735d5ab
ssh kitten: Fix failure when remote system has no base64 but does have openssl
2023-03-17 08:36:52 +05:30
Kovid Goyal
c8fe0712e6
Merge branch 'ccm/fix-uname-arch-freebsd' of https://github.com/chazmcgarvey/kitty
2023-03-16 07:53:40 +05:30
Charles McGarvey
4b818244be
Add "amd64" as a potential value for "uname -m"
...
This accommodates FreeBSD and perhaps others.
2023-03-15 19:05:30 -06:00
Kovid Goyal
99463ef492
Merge branch 'fix-build' of https://github.com/page-down/kitty
2023-03-16 06:12:30 +05:30
pagedown
97ef09b633
Fix empty folders being considered as kitten
...
When pulling a git commit that contains delete folder actions, the local
folders will not be deleted.
2023-03-16 08:20:05 +08:00
Kovid Goyal
e2fda5d1c4
...
2023-03-15 15:32:04 +05:30
Kovid Goyal
da38cb3254
Add support for more option types to Go conf file parsing
2023-03-15 15:17:38 +05:30
Kovid Goyal
3803d7e3c2
Use maps package for generic keys/values functions
2023-03-14 22:49:40 +05:30
Kovid Goyal
7ce83e7fd0
Use the generic contains/index from slices instead of our custom one
2023-03-14 22:40:20 +05:30
Kovid Goyal
5520a75bba
Dont rely on filesystem mtimes for test as they can be flaky
2023-03-14 21:13:14 +05:30
Kovid Goyal
e539035639
more useful test failure messages
2023-03-14 21:06:57 +05:30
Kovid Goyal
290b868193
forgot to close zip file
2023-03-14 20:42:36 +05:30
Kovid Goyal
c19ac531cf
Fix some failing tests
2023-03-14 20:40:12 +05:30
Kovid Goyal
f6d66b2336
...
2023-03-14 20:35:31 +05:30
Kovid Goyal
9443b0e361
Remove themes python code
2023-03-14 20:28:45 +05:30
Kovid Goyal
0805330b77
Finish port of themes kitten to Go
2023-03-14 20:24:21 +05:30
Kovid Goyal
0c20a4d980
Fix sort with key implementations
2023-03-14 12:54:35 +05:30
Kovid Goyal
21954937fb
More work on porting themes
2023-03-14 12:29:44 +05:30
Kovid Goyal
c4731771ac
Make style cache thread safe
2023-03-14 12:29:44 +05:30
Kovid Goyal
ffb3b073d7
Convenient loop API to print styled strings
2023-03-14 12:29:44 +05:30
Kovid Goyal
6794ec1de7
Wire up the new subseq match code
2023-03-14 12:29:44 +05:30
Kovid Goyal
29dd2438c9
Port the subseq matcher to Go
2023-03-14 12:29:44 +05:30
Kovid Goyal
b088ab91cf
Make code to convert rune offsets to byte offsets re-useable
2023-03-14 12:29:44 +05:30
Kovid Goyal
dd783c842f
More work on porting themes UI to Go
2023-03-14 12:29:44 +05:30
Kovid Goyal
f9b0b54ee5
Start work on porting themes kitten to Go
2023-03-14 12:29:44 +05:30
Kovid Goyal
3741d3d1be
hints: fix select by word broken while porting to Go
2023-03-14 12:27:33 +05:30
Kovid Goyal
c0c0fd8ac1
Merge branch 'fix-typo' of https://github.com/page-down/kitty
2023-03-14 12:20:35 +05:30
pagedown
2416122647
...
2023-03-14 14:30:11 +08:00
Kovid Goyal
626637c2ba
Merge branch 'icons' of https://github.com/eccentric-j/kitty
2023-03-12 12:09:00 +05:30
Jay
5d90544c9d
Updated faq with optimized alt icon preview urls
2023-03-12 01:27:34 -05:00
Kovid Goyal
dad9cfdf38
Merge branch 'icons' of https://github.com/eccentric-j/kitty
2023-03-12 11:03:31 +05:30
Jay
bea6fdc72e
Added new icons
2023-03-11 19:06:01 -05:00
Kovid Goyal
74c5692b78
Default permission for atomicupdate should be 0644
2023-03-11 10:04:43 +05:30
Kovid Goyal
83f25cd361
Fix #6105
2023-03-11 07:21:43 +05:30
Kovid Goyal
7acc6bdeb8
Move splitlines_like_git to a more appropriate home
2023-03-10 17:26:06 +05:30
Kovid Goyal
ffa8c1c498
Add debug print for focus change events
2023-03-10 17:09:11 +05:30
Kovid Goyal
34cbf5ceac
Get rid of prewarming
...
Don't need it anymore since all major UI kittens are ported to Go
and so don't have startup latency.
2023-03-10 13:22:10 +05:30
Kovid Goyal
48e7ebb838
make gofmt happy
2023-03-10 13:03:51 +05:30
Kovid Goyal
7f6ed72684
Nicer error message when custom processor produces invalid marks
2023-03-10 12:51:32 +05:30
Kovid Goyal
e78c398243
Fix offsets incorrect for non-ASCII chars when using custom processing
...
python gives us offsets in unicode characters. Go uses offsets in utf8
bytes. Translate.
2023-03-10 12:41:56 +05:30
Kovid Goyal
b76b0c61ed
Port custom processor for hints
2023-03-10 10:45:37 +05:30
Kovid Goyal
69916ca4e8
Remove python implementation of hints
2023-03-10 07:16:25 +05:30
Kovid Goyal
2e1eebd998
More work on porting hints
2023-03-10 06:58:10 +05:30
Kovid Goyal
5b3f5dd02d
Port all remaining hints matching tests
2023-03-09 20:53:46 +05:30
Kovid Goyal
0e5ed29d83
Fix generation of url regex for Go
2023-03-09 19:00:56 +05:30
Kovid Goyal
2aa9187428
More work on porting hints
2023-03-09 19:00:56 +05:30
Kovid Goyal
09ceb3c0be
Start work on porting hints kitten to Go
2023-03-09 19:00:56 +05:30
Kovid Goyal
bcd3802d3e
Merge branch 'refactor' of https://github.com/page-down/kitty
2023-03-09 19:00:29 +05:30
pagedown
6c182a00a8
fish integration: Remove newlines from the data in __ksi_transmit_data
...
Moving the operation of removing whitespace characters to the function
that transmits the data. This matches the implementation in zsh and bash
integration scripts.
2023-03-09 21:10:08 +08:00
Kovid Goyal
88443ef8a5
icat: allow specifying image ids
2023-03-09 10:17:53 +05:30
Kovid Goyal
a56f111f98
Add a comment explaining why we rescan even when the line is not dirty
2023-03-09 10:09:08 +05:30
Kovid Goyal
5058960a0e
Merge branch 'pr-redraw-on-upload' of https://github.com/sergei-grechanik/kitty
2023-03-09 10:08:16 +05:30
Sergei Grechanik
87ef5e4084
Always rerender unicode placeholders in the scrollback
2023-03-08 19:23:54 -08:00
Kovid Goyal
31d8a98a45
Fix kitty icat broken during the port to Go
2023-03-08 20:47:17 +05:30
Kovid Goyal
f42090766a
Use the new string scanner everywhere
2023-03-08 13:31:27 +05:30
Kovid Goyal
b8ce441453
A new string scanner thats faster than bufio.Scanner and has zero-allocation
2023-03-08 13:24:20 +05:30
Kovid Goyal
ebc1a0f0aa
Don't need to save/restore private mode values in icat when output unicode paceholder
...
Was originally there in case we turned off line wrapping. But didnt end
up doing that.
2023-03-08 10:33:43 +05:30
Sergei Grechanik
0be83c1bb6
Redraw old unicode placeholders when a virtual placement is added
2023-03-07 20:11:56 -08:00
Kovid Goyal
d6a073945d
Count LoC in tests and docs as well
2023-03-07 18:00:46 +05:30
Kovid Goyal
cd332eb2d5
DRYer
2023-03-07 17:15:21 +05:30
Kovid Goyal
f157882856
Finish porting of ask kitten to Go
2023-03-07 17:06:00 +05:30
Kovid Goyal
018bf46ddb
kitty @ shell: Integrate completions from history
2023-03-07 17:01:21 +05:30
Kovid Goyal
ef6693a239
Dont insert empty spaces when no completions are found
2023-03-07 17:00:40 +05:30
Kovid Goyal
d7b0aa48c9
Dont display empty match groups
2023-03-07 16:53:52 +05:30
Kovid Goyal
ea1842407d
Auto accept completion when only a single candidate is present
2023-03-07 16:48:53 +05:30
Kovid Goyal
0e73c01093
readline: Automatically do word completion based on history
2023-03-07 16:44:02 +05:30
Kovid Goyal
4cef83ffd0
show message even for password asks
2023-03-07 14:03:39 +05:30
Kovid Goyal
f4b0fbc61e
Fix invocation of wrapped UI kittens
2023-03-07 13:55:45 +05:30
Kovid Goyal
0da998ac53
Implement reading of password
2023-03-07 13:55:45 +05:30
Kovid Goyal
bb22990af9
...
2023-03-07 13:55:45 +05:30
Kovid Goyal
7ad5dc6a6f
Fix mouse CSI parsing
2023-03-07 13:55:44 +05:30
Kovid Goyal
0aa55fb755
Start work on porting the ask kitten
2023-03-07 13:55:44 +05:30
Kovid Goyal
672ecde68b
X11: Fix a crash if the X server requests clipboard data after we have relinquished the clipboard
...
Fixes #5650
2023-03-07 13:53:07 +05:30
Kovid Goyal
ecfebcd6af
...
2023-03-07 12:42:25 +05:30
Kovid Goyal
cd4b19918c
make the latest mypy happy
2023-03-07 12:02:08 +05:30
Kovid Goyal
2bbf9a4e9b
Wayland KDE: Fix selecting in un-focused OS window not working correctly
...
Every day, in every way, I fall deeper and deeper in love with Yayland!
Fixes #6095
2023-03-07 11:29:57 +05:30
Kovid Goyal
e043fef257
Synthesize click events in the loop
2023-03-07 07:57:14 +05:30
Kovid Goyal
5c87d7f84f
Cleanup ring buffer implementation
2023-03-07 07:43:53 +05:30
Kovid Goyal
37cebbc817
Implement decoding of mouse events in Go
2023-03-07 07:20:46 +05:30
Kovid Goyal
16c7681c7c
diff kitten: Speedup patch parsing by working with bytes rather than unicode
...
Also change the line split algorithm to only split on \n, \r and \r\n.
This is hopefully closer to what git/diff generate in their patch files.
I cant find any documentation specifying this however.
Fixes #6052
Fixes #6092
2023-03-06 09:55:55 +05:30
Kovid Goyal
99b23c5c66
...
2023-03-05 14:25:19 +05:30
Kovid Goyal
db972f3442
Cleanup parsing of single char options
2023-03-05 14:22:53 +05:30
Kovid Goyal
23d2293296
More tests for rg arg parsing
2023-03-05 14:09:04 +05:30
Kovid Goyal
716a048e6c
...
2023-03-05 14:02:19 +05:30
Kovid Goyal
a252ff1c7b
Merge branch 'hold-kp-enter' of https://github.com/page-down/kitty
2023-03-05 14:00:39 +05:30
pagedown
2ee30302fe
hold: Allow pressing the numeric keypad enter key to exit
2023-03-05 16:18:29 +08:00
Kovid Goyal
6660071d3a
Port the hyperlinked_grep kitten to Go
2023-03-05 13:41:57 +05:30
Kovid Goyal
a0d30f4dd8
DRYer
2023-03-05 13:41:36 +05:30
Kovid Goyal
c88a171b28
Map should use same order of arguments as pythons map
2023-03-05 12:19:03 +05:30
Kovid Goyal
e6d53a1921
Merge branch 'nerd-fonts' of https://github.com/page-down/kitty
2023-03-05 08:42:26 +05:30
Kovid Goyal
0e4b374b7b
Merge branch 'fix-which' of https://github.com/page-down/kitty
2023-03-05 08:41:04 +05:30
pagedown
0147ef467b
Import the missing which
2023-03-05 08:51:29 +08:00
pagedown
e9f5806dcd
Update to Nerd Fonts 2.3.3
2023-03-04 23:23:52 +08:00
Kovid Goyal
3cfb5441fc
Merge branch 'ime' of https://github.com/page-down/kitty
2023-03-04 13:48:32 +05:30
pagedown
823db08712
IME: Right align overlay when typing at the edge of the screen
...
When the cursor is at the right edge of the screen, push the overlay to
the left to display the pre-edit text just entered.
2023-03-04 16:11:29 +08:00
Kovid Goyal
a2887bb9e0
get rid of utils.Cut since we can now rely on strings.Cut instead
2023-03-04 13:37:55 +05:30
Kovid Goyal
defac0c061
Implement automatic tmux passthrough for icat
2023-03-04 13:01:23 +05:30
Kovid Goyal
8bd814444c
Fix active TMUX session detection
2023-03-04 12:50:07 +05:30
Kovid Goyal
1218a152bf
Implement unicode placeholders in icat
2023-03-04 11:54:22 +05:30
Kovid Goyal
ed8a88e009
Add new unicode placeholder and tmux passthrough options to icat
2023-03-03 22:06:35 +05:30
Kovid Goyal
5b160ea599
Use Once for CachedHostname
2023-03-03 15:20:35 +05:30
Kovid Goyal
e6662e11c3
Dont change the tmux allow-passthrough mode if it is already set
2023-03-03 15:06:49 +05:30
Kovid Goyal
1bf911a81b
Generate the rowcol diacrticis for Go as well
2023-03-03 14:39:38 +05:30
Kovid Goyal
a7ed47575e
Improve documentation for Unicode placeholders
2023-03-03 12:45:52 +05:30
Kovid Goyal
8add28de96
Merge branch 'pr-unicode-placeholders' of https://github.com/sergei-grechanik/kitty
2023-03-03 10:55:02 +05:30
Kovid Goyal
900111572e
Linux binary installer: Proceed via a staged tmpdir
...
Now installation on Linux and macOS is similar. installer is first
downloaded, then extracted, then copied to installation location.
2023-03-02 14:13:34 +05:30
Kovid Goyal
3f293db632
...
2023-03-02 13:34:42 +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
719fe9ea04
Fix deletion of assets from nightly release on GitHub
...
The derived asset URL was wrong. Instead use the URL supplied in the
JSON asset description.
2023-03-02 11:28:05 +05:30
Kovid Goyal
294d36f2d3
Merge branch 'hints-kitten' of https://github.com/page-down/kitty
2023-03-02 08:04:06 +05:30
pagedown
4c9d90efbb
hints kitten: Perform copy action with --program when matching linenum
2023-03-02 10:30:17 +08:00
Kovid Goyal
fccd776732
Fix overlay windows not inheriting the per-window padding and margin settings of their parents
...
Fixes #6063
2023-03-01 21:45:17 +05:30
Kovid Goyal
66804dafe8
Fix a regression that broke drawing of images below non-default cell backgrounds
...
Fixes #6061
2023-03-01 21:13:48 +05:30
Kovid Goyal
6d73306198
Fix for GitHub releases API not returning all assets when querying the assets URL due to pagination
...
Use the assets list from the release result when available as it is
not paginated. Otherwise request 64 items per page which is more than
enough for our 30 odd assets
2023-03-01 21:02:25 +05:30
Kovid Goyal
eb6d777790
...
2023-03-01 20:34:09 +05:30
Kovid Goyal
81f8ed6b45
Use @ rather than # for named buffers prefix char
...
Matches existing use of @ for clipboard. Also @ doesnt need to be quoted
in most shells.
2023-03-01 19:54:03 +05:30
Kovid Goyal
8ad39332c9
Merge branch 'hints-kitten-copy-to-buffer' of https://github.com/page-down/kitty
2023-03-01 19:49:52 +05:30
Kovid Goyal
c94401729a
Add protocol docs for async and streaming requests
2023-03-01 19:46:29 +05:30
pagedown
854529c443
hints kitten: Allow copying matches to named buffers
2023-03-01 22:10:24 +08:00
Kovid Goyal
bd32019b91
Fix error display when remote control mapping fails
2023-03-01 17:45:57 +05:30
Kovid Goyal
004aaf3291
Fix setting background image and logo via remote control key mapping not working
2023-03-01 17:42:55 +05:30
Kovid Goyal
22f6728fed
Do not buffer PNG data to disk when setting window background or logo images
2023-03-01 17:34:38 +05:30
Kovid Goyal
f0aacbd437
Remove unused code
2023-03-01 16:54:06 +05:30
Kovid Goyal
1bf180f354
Allow loading window background images from memory
2023-03-01 16:11:38 +05:30
Kovid Goyal
bf79940a13
When reloading config also reload all GPU data
...
Fixes some config options such as text_composition_strategy not being
reloaded.
2023-03-01 11:14:03 +05:30
Kovid Goyal
0616f9e077
Fix background image not changing when reloading config
2023-03-01 10:50:33 +05:30
Kovid Goyal
cbf3b5860b
Merge branch 'png' of https://github.com/page-down/kitty
2023-03-01 10:21:52 +05:30
pagedown
3d50c1ea5a
Fix cursor misalignment after displaying detailed traceback
2023-03-01 12:04:04 +08:00
pagedown
08c0321fc4
Don't use the deprecated imghdr module
2023-03-01 12:03:56 +08:00
Kovid Goyal
cd8bb462c3
Add KITTY_VCS_REV for release builds as well
2023-02-28 19:41:28 +05:30
Kovid Goyal
5b46d990a2
Add Read/Write to the MMap interface
2023-02-28 19:01:15 +05:30
Kovid Goyal
944e036611
DRYer
2023-02-28 15:48:04 +05:30
Kovid Goyal
1b2fe90ed1
Fix askpass.go on shm_syscall based systems
2023-02-28 14:11:27 +05:30
Kovid Goyal
ba1ce996bb
Fix WriteWithSize() on shm_syscall
2023-02-28 13:50:06 +05:30
Kovid Goyal
327cefbfda
Make test more robust
2023-02-28 13:44:29 +05:30
Kovid Goyal
ce12fd3515
Fix ReadWithSizeAndUnlink on systems that have syscall based mmap
2023-02-28 13:44:09 +05:30
Kovid Goyal
4d3ce47813
...
2023-02-28 13:19:51 +05:30
Kovid Goyal
8729717229
Dont create SHM files in the bootstrap limit and related tests
2023-02-28 13:16:00 +05:30
Kovid Goyal
935a36f5a8
Allow specifying VCS revision on the build command line
2023-02-28 13:05:43 +05:30
Kovid Goyal
1ddb1dc5e1
...
2023-02-28 13:00:19 +05:30
Kovid Goyal
9135ba138e
Merge branch 'ssh'
2023-02-28 12:45:51 +05:30
Kovid Goyal
00b3437a05
Remove python implementation of SSH kitten
2023-02-28 12:42:30 +05:30
Kovid Goyal
3558d1c274
Finish porting support for color schemes to SSH kitten
2023-02-28 12:08:55 +05:30
Kovid Goyal
8302e5d74b
Merge branch 'james/typo' of https://github.com/jamesbvaughan/kitty
2023-02-28 08:13:23 +05:30
James Vaughan
a5a0d5acb9
Fix typo in overview doc
2023-02-27 16:53:44 -08:00
Kovid Goyal
c877b2a5cb
Code to dump basic colors from a theme as escape codes
2023-02-27 08:02:22 +05:30
Kovid Goyal
c1791c8d2b
Function to load theme code
2023-02-26 22:09:07 +05:30
Kovid Goyal
22150e13fd
Add tests for cache file downloading
2023-02-26 21:56:03 +05:30
Kovid Goyal
7ce64fcde0
Support include when loading themes from dirs
2023-02-26 21:16:29 +05:30
Kovid Goyal
0b09d18b36
Port theme loading code to Go
2023-02-26 20:40:59 +05:30
Kovid Goyal
4eea2fd4fc
Port code to download themeball to Go
2023-02-26 15:21:49 +05:30
Kovid Goyal
c113ad6f56
Code to parse ISO8601 timestamps at least semi-robustly
2023-02-26 13:32:35 +05:30
Kovid Goyal
64cb9c9542
More work on porting ssh kitten
2023-02-26 11:26:28 +05:30
Kovid Goyal
4a5c6ad47f
Functions to punch DCS escapes through tmux
2023-02-26 11:11:42 +05:30
Kovid Goyal
6de77ce987
Clean up exclude pattern handling
2023-02-26 09:12:12 +05:30
Kovid Goyal
5cc3d3cbfe
Fix remaining failing tests
2023-02-26 08:01:04 +05:30
Kovid Goyal
dc938cf3dd
More test fixes
2023-02-26 08:01:04 +05:30
Kovid Goyal
22ea33182a
Fix various test failures
2023-02-26 08:01:04 +05:30
Kovid Goyal
3f417b26b2
Wire up the new ssh kitten into the python ssh kitten tests
2023-02-26 08:01:04 +05:30
Kovid Goyal
e4002b5691
Switch to a more capable glob implementation that supports **
2023-02-26 08:01:04 +05:30
Kovid Goyal
77c04107f3
Add test for tarfile exclusion
2023-02-26 08:01:03 +05:30
Kovid Goyal
a5cf66b334
Stable constants generation
2023-02-26 08:01:03 +05:30
Kovid Goyal
525caff938
Move get_connection_data to utils module as it is not needed for the actual kitten
2023-02-26 08:01:03 +05:30
Kovid Goyal
e02ba7f389
Port bootstrap script length limit
2023-02-26 08:01:03 +05:30
Kovid Goyal
9870c94007
More work on porting the SSH kitten
2023-02-26 08:01:03 +05:30
Kovid Goyal
6b71b58997
Add write API to shm objects
2023-02-26 08:01:03 +05:30
Kovid Goyal
43bcb41a2a
Nicer Set constructor
2023-02-26 08:01:03 +05:30
Kovid Goyal
1df3ef648c
Clean up getting runtime dir on darwin
2023-02-26 08:01:03 +05:30
Kovid Goyal
4d8ccd8e94
...
2023-02-26 08:01:03 +05:30
Kovid Goyal
f40380b05a
More useful Set methods
2023-02-26 08:01:03 +05:30
Kovid Goyal
3703b4dbef
API to conveniently generate secure tokens
2023-02-26 08:01:03 +05:30
Kovid Goyal
907a51c99c
Code to read needed options from kitty.conf in a kitten
2023-02-26 08:01:03 +05:30
Kovid Goyal
0614c63966
Handle XDG_CONFIG_DIRS in Go as well
2023-02-26 08:01:03 +05:30
Kovid Goyal
a84b688038
Embed the data files needed for the ssh kitten into the Go binary
2023-02-26 08:01:03 +05:30
Kovid Goyal
b4b8943e64
Replace some more uses of sync.Once
2023-02-26 08:01:03 +05:30
Kovid Goyal
587d06b295
Replace use of sync.Once
2023-02-26 08:01:03 +05:30
Kovid Goyal
fa0773d9d2
Use a struct to store connection related data
2023-02-26 08:01:03 +05:30
Kovid Goyal
d656017f27
Move SSH askpass implementation into kitten
2023-02-26 08:01:02 +05:30
Kovid Goyal
6f4d89045a
A nicer implementation of sync.Once
...
Doesnt require storing the result of the function in a dedicated global
variable with a dedicated getter function
2023-02-26 08:01:02 +05:30
Kovid Goyal
fbaaca1be9
Function to create symlinks atomically
2023-02-26 08:01:02 +05:30
Kovid Goyal
fa45324d39
Port code to read cloned env
2023-02-26 08:01:02 +05:30
Kovid Goyal
88077fdbcd
Allow Stat() for MMap objects
2023-02-26 08:01:02 +05:30
Kovid Goyal
5a8d903a4d
Go SHM API to read simple data with size from SHM name
2023-02-26 08:01:02 +05:30
Kovid Goyal
3f829ccdde
Handle invalid args and passthrough
2023-02-26 08:01:02 +05:30
Kovid Goyal
06bfa671d9
Allow specifying the paths to search in Which()
2023-02-26 08:01:02 +05:30
Kovid Goyal
97b9572bec
Port parsing of ssh args
2023-02-26 08:01:02 +05:30
Kovid Goyal
12c8af60dc
String repr for Set
2023-02-26 08:01:02 +05:30
Kovid Goyal
57839b4e03
Port function to get ssh cli options by running ssh binary
2023-02-26 08:01:02 +05:30
Kovid Goyal
407555c6c8
Get completion working for kitten ssh
2023-02-26 08:01:02 +05:30
Kovid Goyal
590c1bd7ad
dont parse args for the ssh kitten as it will do so itself
2023-02-26 08:01:02 +05:30
Kovid Goyal
46367bceed
...
2023-02-26 08:01:02 +05:30
Kovid Goyal
041c646d46
Fix parsing of copy args
2023-02-26 08:01:02 +05:30
Kovid Goyal
d98504e1a6
Finish porting SSH config file parsing
2023-02-26 08:01:02 +05:30
Kovid Goyal
07f4adbab5
Also add tests for bad lines
2023-02-26 08:01:02 +05:30
Kovid Goyal
7b4738125b
Move config code into its own package
2023-02-26 08:01:02 +05:30
Kovid Goyal
2b7d6d45df
Finish up config parser port
2023-02-26 08:01:01 +05:30
Kovid Goyal
747411be00
Finish implementation of config file parsing
...
Still needs tests
2023-02-26 08:01:01 +05:30
Kovid Goyal
70086451e7
Port parsing of env instructions
2023-02-26 08:01:01 +05:30
Kovid Goyal
32aa580984
Store parsed multi option values on the config object
2023-02-26 08:01:01 +05:30
Kovid Goyal
1470b11024
Dont parse default values
2023-02-26 08:01:01 +05:30
Kovid Goyal
5822bb23f0
Work on porting config file parsing to Go
2023-02-26 08:01:01 +05:30
Kovid Goyal
6f63d9c5d4
Start work on porting the SSH kitten to Go
2023-02-26 08:01:01 +05:30
Kovid Goyal
3d3bfe6c75
...
2023-02-26 08:00:50 +05:30
Kovid Goyal
d550aef792
Fix #6056
2023-02-25 08:49:49 +05:30
Kovid Goyal
0d0f74a131
Note that we use tabs for indent in *.go files in editorconfig
2023-02-25 08:33:51 +05:30
Kovid Goyal
ed64899b83
Merge branch 'indent_style_space' of https://github.com/ornicar/kitty
2023-02-25 08:24:40 +05:30
Thibault Duplessis
098530ad38
fix typo in .editorconfig
...
According to https://editorconfig.org/#file-format-details :
> indent_style: set to tab or space to use hard tabs or soft tabs respectively.
Apologies if this is known and the previous `spaces` syntax is preferred.
In that case of course just close the PR.
Thanks for kitty 🐱
2023-02-24 19:03:47 +01:00
Kovid Goyal
b0f552c332
Fix upload to github not aborting for uploads that fail with protocol errors rather than failure responses
2023-02-24 20:34:46 +05:30
Kovid Goyal
f7f4384876
Also log start of upload
2023-02-24 20:29:51 +05:30
Kovid Goyal
7dd20d4c79
Dont output empty brackets for release versions which dont have KITTY_VCS_REV
2023-02-24 20:11:09 +05:30
Kovid Goyal
7ab0c3013e
Merge branch 'fix-macos' of https://github.com/page-down/kitty
2023-02-24 17:31:37 +05:30
pagedown
4f44945c07
macOS: Restore pre-edit text after inserting text from the service
...
Add comments to explain how to get the methods to be called.
2023-02-24 19:57:09 +08:00
pagedown
f8b53df5c2
macOS: Fix resize_in_steps being applied when double-clicking on the
...
title bar to maximize the window
2023-02-24 19:56:51 +08:00
Kovid Goyal
c5149dec24
...
2023-02-23 22:19:45 +05:30
Kovid Goyal
e41897f93f
Also clean *_generated.bin files
2023-02-23 21:24:59 +05:30
Kovid Goyal
5ce85292b7
Cleanup previous PR
...
1) Fix a text_len leaking
2) No need to re-decode overlay_text
3) get_ime_cursor_position should not change the current global callback OS window
2023-02-23 21:19:30 +05:30
Kovid Goyal
dba8d278cb
Merge branch 'ime' of https://github.com/page-down/kitty
2023-02-23 20:50:25 +05:30
Kovid Goyal
79e99f7e3a
Dont pass PWD to go build
...
Fixes #6051
2023-02-23 14:31:30 +05:30
pagedown
9a598237c6
macOS: Allow IME to actively get the cursor position in real time
...
IME will automatically get the display position when needed, which keeps
it consistent with the overlay as much as possible.
Fix the issue that when IME is activated after mouse click, it is
displayed at the wrong position.
2023-02-22 22:36:20 +08:00
pagedown
126aaddccb
IME: Render overlay at the last visible cursor position with a separate cursor
...
Fix the problem caused by wrong cursor coordinates. No more messing with
the main cursor, instead the cursor is saved when receiving a pre-edit
text update and used for drawing later.
Update the overlay to the last visible cursor position before rendering
to ensure it always moves with the cursor. Finally, draw the overlay
after line rendering is complete, and restore the line buffer after
updating the rendered data to ensure that the line text being read is
correct at all times.
This also improves performance by only rendering once when changes are
made, eliminating the need to repeatedly disable and draw after various
commands and not even comprehensively.
2023-02-22 22:36:06 +08:00
Kovid Goyal
de188faf55
Fix #6048
2023-02-22 19:51:33 +05:30
Sergei Grechanik
d63eeada73
Image placement using Unicode placeholders
...
This commit introduces the Unicode placeholder image placement method.
In particular:
- Virtual placements can be created by passing `U=1` in a put command.
- Images with virtual placements can be displayed using the placeholder
character `U+10EEEE` with diacritics indicating rows and columns.
- The image ID is indicated by the foreground color of the placeholder.
Additionally, the most significant byte of the ID can be specified via
the third diacritic.
- Underline color can be optionally used to specify the placement ID.
- A bug was fixed, which caused incomplete image removal when it was
overwritten by another image with the same ID.
2023-02-21 18:23:16 -08:00
Kovid Goyal
1f84e2d4e5
Merge branch 'pr-fix-screen-switching' of https://github.com/sergei-grechanik/kitty
2023-02-21 10:20:32 +05:30
Sergei Grechanik
6edf145b73
Fix image distortion when switching between screens
2023-02-20 19:46:25 -08:00
Kovid Goyal
fbfb779a19
Clarify what pygments style does
2023-02-20 16:38:22 +05:30
Kovid Goyal
71b07090c2
End APC and PM escape code on BEL as well as ST
2023-02-19 15:24:23 +05:30
Kovid Goyal
6619804df0
...
2023-02-18 17:23:50 +05:30
Kovid Goyal
24b2802619
Merge branch 'fix-os-window-state' of https://github.com/page-down/kitty
2023-02-18 17:22:43 +05:30
pagedown
b0c28148b1
macOS: Fix window not taking up full height when the title bar is hidden
...
When the remembered window size is the full screen height, the window
height decreases after hiding the title bar.
2023-02-18 19:35:01 +08:00
pagedown
75a4f45a23
...
2023-02-18 17:43:45 +08:00
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
1b76cee9b4
Merge branch 'dependabot/go_modules/golang.org/x/image-0.5.0' of https://github.com/kovidgoyal/kitty
2023-02-17 20:18:02 +05:30
dependabot[bot]
aad3704803
Bump golang.org/x/image from 0.3.0 to 0.5.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/golang/image/releases )
- [Commits](https://github.com/golang/image/compare/v0.3.0...v0.5.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-02-17 14:44:32 +00:00
Kovid Goyal
00e2c66ea3
Add a link to the pets nvim plugin
2023-02-17 10:41:03 +05:30
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
c73c165be1
Cleanup change_os_window_state
2023-02-16 16:10:19 +05:30
Kovid Goyal
e6e25c4ece
Merge branch 'patch-1' of https://github.com/jle64/kitty
2023-02-15 22:01:17 +05:30
Jonathan Lestrelin
9ce11499de
Add x-scheme-handler/ssh to mimetypes
...
Add x-scheme-handler/ssh to mimetypes so that kitty open can be used to open ssh links by default.
2023-02-15 16:24:47 +00:00
Kovid Goyal
ac5298ce76
Finish porting unicode input
2023-02-15 17:42:31 +05:30
Kovid Goyal
1321a96ae7
More work on porting unicode input
2023-02-15 17:14:09 +05:30
Kovid Goyal
2b87a601a0
More work on porting unicode input
2023-02-15 10:48:54 +05:30
Kovid Goyal
73a3366d53
Fix atomic write not working when file does not exist
2023-02-15 10:46:47 +05:30
Kovid Goyal
7223fdaa38
API to set the text at the prompt
2023-02-15 10:16:25 +05:30
Kovid Goyal
67436a48cd
New API to suspend a loop
2023-02-14 22:27:41 +05:30
Kovid Goyal
9aaca33f15
...
2023-02-14 22:27:10 +05:30
Kovid Goyal
a5eac42d92
More work on unicode input
2023-02-14 21:33:21 +05:30
Kovid Goyal
fb66cbc792
Forgot to exclude some control chars from unicode name based searching
2023-02-14 21:33:21 +05:30
Kovid Goyal
311a0cbfe9
More work on porting unicode input
2023-02-14 21:33:21 +05:30
Kovid Goyal
53e33a80ba
Start work on porting unicode input kitten to Go
2023-02-14 21:33:21 +05:30
Kovid Goyal
a2e4efbb14
API to save/restore cursor position
2023-02-14 21:33:21 +05:30
Kovid Goyal
1aa9f1e62d
Allow faint as an alias for dim
2023-02-14 21:33:21 +05:30
Kovid Goyal
32e0a56a94
Some more useful generic slice utilities
2023-02-14 21:33:21 +05:30
Kovid Goyal
601a333b0e
Atomically update cached values file
2023-02-14 21:33:21 +05:30
Kovid Goyal
cc5107d0db
Convenient way to load/save JSON data
2023-02-14 21:33:20 +05:30
Kovid Goyal
bee853cc6a
ignore *.bin files in version control
2023-02-14 21:33:09 +05:30
Kovid Goyal
ec375ad3c6
Dont strip title for tabs to allow for leading and trailing whitespace. Fixes #6013
2023-02-14 21:31:23 +05:30
Kovid Goyal
5a7abd6214
CodeQL does not work for Go code
2023-02-14 11:15:44 +05:30
Kovid Goyal
3399f40de5
Merge branch 'go-version' of https://github.com/page-down/kitty
2023-02-14 11:15:02 +05:30
Kovid Goyal
31b804d8fb
Merge branch 'add-python-typing-for-send_mouse_event' of https://github.com/trygveaa/kitty
2023-02-14 10:00:16 +05:30
Kovid Goyal
5219044519
Merge branch 'reload-mime-types' of https://github.com/page-down/kitty
2023-02-14 09:55:22 +05:30
Kovid Goyal
d6aecf172d
Merge branch 'fix-macos-fullscreen' of https://github.com/page-down/kitty
2023-02-14 09:49:19 +05:30
Trygve Aaberge
8a3376261e
Add send_mouse_event to fast_data_types.pyi
2023-02-13 21:52:41 +01:00
pagedown
cc18a4c192
transfer kitten: Use guess_type with custom MIME
2023-02-12 17:34:09 +08:00
pagedown
4141872290
When reloading configuration, also reload mime.types
2023-02-12 17:28:42 +08:00
pagedown
c41b65af97
macOS: Update window button visibility after toggling full screen
2023-02-12 13:45:27 +08:00
pagedown
dcddaf33e0
...
2023-02-11 20:43:42 +08:00
pagedown
e388326929
...
2023-02-11 20:36:25 +08:00
pagedown
d1e54a1d3b
CI: Bump versions of the deprecated github actions to the latest
2023-02-11 20:33:29 +08:00
pagedown
3c7df680cf
Get go version from go.mod
...
No need to update multiple places when bumping the go version.
2023-02-11 20:33:08 +08:00
Kovid Goyal
64fe9f82ed
Add chr and ord to safe_builtins
2023-02-11 05:51:24 +05:30
Kovid Goyal
74a5b26967
...
2023-02-11 05:48:01 +05:30
Kovid Goyal
2307892b50
Cleanup previous PR getting kitty working on macOS
...
Do not reduce the required OpenGL version on macOS. There is no point
anyway.
Fixes #2790
2023-02-10 11:03:25 +05:30
Kovid Goyal
a09dda27dc
Merge branch 'master' of https://github.com/marcan/kitty
2023-02-10 10:55:41 +05:30
Kovid Goyal
ca1a5dcf5e
Update design philosophy to mention Go code
2023-02-10 10:51:16 +05:30
Kovid Goyal
1d21b54d23
Merge branch 'docs' of https://github.com/page-down/kitty
2023-02-10 10:46:46 +05:30
pagedown
0d51adaa2c
gitignore: Remove duplicate ignore rules and add ruff cache directory
2023-02-10 12:47:05 +08:00
pagedown
81a221460a
Docs: Remind users to remove macos_thicken_font in changelog
2023-02-10 12:46:50 +08:00
pagedown
f8644682f9
...
2023-02-10 12:46:40 +08:00
pagedown
c172e0158c
Docs: Minor configuration docs improvements
...
Add some text roles.
Revise the cases of some words.
Manually wrap lines to make the generated commented config file and
source code a bit neater.
2023-02-10 12:46:31 +08:00
pagedown
c41a0c0290
Docs: Generate commented default configuration files
...
Provides the same sample config files as the locally generated ones.
2023-02-10 12:44:10 +08:00
Kovid Goyal
1b580e8323
Update Changelog for last PR
2023-02-10 09:28:33 +05:30
Kovid Goyal
94ab58343a
Merge branch 'fix-ime' of https://github.com/page-down/kitty
2023-02-10 09:27:19 +05:30
pagedown
947dc2ff75
IME: Fix IME commit text and update pre-edit at the same time
...
Correctly update the overlay position when cursor visibility changes.
Restore the overlay line only when the cursor is visible.
Clear the saved overlay when drawing new pre-edit text.
Also update the cursor position when screen size changes.
Use four spaces to indent instead of two.
2023-02-10 10:50:32 +08:00
Kovid Goyal
439a997e5d
Add a note to macos_thicken_font pointing to the new text_composition_strategy
2023-02-09 19:59:09 +05:30
Kovid Goyal
befd5a65c3
A generic Set implementation
2023-02-09 18:00:04 +05:30
Kovid Goyal
8d0452d375
Allow specifying initial capacity when splitting lines
2023-02-09 12:59:40 +05:30
Kovid Goyal
44f46afb2a
Merge branch 'patch_function_prototype' of https://github.com/hellobbn/kitty
2023-02-09 11:42:22 +05:30
Luofan Chen
130315ce8d
Use strict function prototypes
...
Fixes clang error:
error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2023-02-09 13:16:00 +08:00
Kovid Goyal
07bab5253e
Update Unicode data
2023-02-09 09:45:42 +05:30
Kovid Goyal
3b861d5f79
Better fix for OGP social cards build failure
2023-02-09 09:45:10 +05:30
Kovid Goyal
679862aa94
When changing the cursor text color via escape codes or remote control to a fixed color, do not ignore cursor_text_color
...
Fixes #5994
2023-02-08 21:01:00 +05:30
Kovid Goyal
1d2a8288ee
...
2023-02-08 20:45:41 +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
Kovid Goyal
244507336b
Function to change the remote command in an ssh kitten cmdline
2023-02-08 16:34:33 +05:30
Kovid Goyal
237a5d17c0
Fix a regression in 0.27.0 that broke kitty @ set-font-size 0
...
Fixes #5992
2023-02-08 14:21:56 +05:30
Kovid Goyal
4dfd4d4972
sRGB glyph composition: Use default values that give "close to native" rendering. Also use only a single option to control it.
2023-02-08 13:49:53 +05:30
Kovid Goyal
8433f1d731
Update changelog for last PR
2023-02-08 13:03:25 +05:30
Kovid Goyal
2849eadd47
Minor cleanups
2023-02-08 12:51:18 +05:30
Kovid Goyal
28af786209
DRYer
2023-02-08 12:09:14 +05:30
Kovid Goyal
d53cb97aa1
Mark SRGB LUT table as generated
2023-02-08 11:29:18 +05:30
Kovid Goyal
e0e7917eaa
Use builtin clamp() rather than min() + max()
2023-02-08 11:29:04 +05:30
Kovid Goyal
b5b070aade
Merge branch 'linear-gamma-blending' of https://github.com/m4rw3r/kitty
2023-02-08 11:22:35 +05:30
Kovid Goyal
45d8a2a630
...
2023-02-07 18:27:16 +05:30
Kovid Goyal
dd07a8c4a4
Changes to make updated mypy happy
2023-02-07 18:10:43 +05:30
Kovid Goyal
9e35d26188
Disable OGP social cards as building them breaks
2023-02-07 17:21:07 +05:30
Kovid Goyal
17e4995e93
version 0.27.1
2023-02-07 16:10:29 +05:30
Kovid Goyal
e161b5a4de
Merge branch 'completion' of https://github.com/page-down/kitty
2023-02-04 13:35:58 +05:30
pagedown
52b643b6c6
Completion: Handle kitty +complete setup fish2
...
Provide the currently supported fish completion script when requesting
version 2.
2023-02-04 15:55:22 +08:00
Kovid Goyal
9bdb647454
kitty @ shell: Fix global options being ignored
...
Also no need to exec a separate process for every command
2023-02-04 12:54:49 +05:30
Kovid Goyal
0cabc3e109
Indicate when caps lock is on while reading password
2023-02-04 11:06:24 +05:30
Kovid Goyal
d06d6d7646
Add the command that can be used to get the default config file
2023-02-03 19:29:45 +05:30
Kovid Goyal
f1dc072045
Clean up previous PR
2023-02-03 16:14:24 +05:30
Kovid Goyal
9adc474e3c
Merge branch 'completion' of https://github.com/page-down/kitty
2023-02-03 16:03:03 +05:30
pagedown
370aa3aaa6
Completion: Delegate kitty +complete to kitten
...
Implement `kitten __complete__ setup` in Go.
Fix zsh completion script to check `kitten`.
2023-02-03 18:16:04 +08:00
Kovid Goyal
bed4f33be8
Remove unused code
2023-02-03 09:51:54 +05:30
Kovid Goyal
8ce80d8962
Switch to using Go stdlib for ECDH crypto
2023-02-03 09:50:42 +05:30
Kovid Goyal
27ae9104ac
Bump required Go version to 1.20
...
This allows us to use the stdlib for ECDH crypto used by remote control.
Fixes #5976
2023-02-03 09:32:56 +05:30
Kovid Goyal
331f1b7f2b
Merge branch 'ksi' of https://github.com/page-down/kitty
2023-02-03 09:30:14 +05:30
pagedown
df1a99a974
Shell integration: More builtin commands
2023-02-03 10:56:19 +08:00
Kovid Goyal
7ea4270c88
...
2023-02-03 08:02:28 +05:30
Kovid Goyal
a8480a4ca6
Update changelog for previous PR
2023-02-02 17:51:25 +05:30
Kovid Goyal
783bfb2823
Merge branch 'master' of https://github.com/shimt/kitty
2023-02-02 17:50:02 +05:30
Shinichi MOTOKI
a88164e3a2
Fix function key definitions in terminfo/termcap
2023-02-02 20:01:56 +09:00
Martin Wernstål
3676e6651d
feat: additional contrast on text as a function of luminance difference
2023-02-02 10:18:15 +01:00
Martin Wernstål
e64affe3f7
feat: simulate gamma-incorrect blending
2023-02-02 09:53:39 +01:00
Martin Wernstål
9a1155721c
refactor: cell_fragment blending functions
2023-02-02 09:53:39 +01:00
Martin Wernstål
8ece895774
feat: Use sRGB LUT for cells
2023-02-02 09:53:39 +01:00
Martin Wernstål
b10c18b8fe
feat: Use sRGB LUT for borders
2023-02-02 09:53:39 +01:00
Martin Wernstål
2bc03852a1
feat: sRGB colors to shaders
2023-02-02 09:53:39 +01:00
Martin Wernstål
be61b4e95e
feat: sRGB lookup table
2023-02-02 09:53:39 +01:00
Martin Wernstål
02d1a3c1c3
feat(srgb): swap textures and framebuffers to SRGB
2023-02-02 09:53:39 +01:00
Kovid Goyal
a7cbe3776d
Wayland GNOME: Fix for ibus not working when using XWayland
...
See 8ce25208c3
I dont know what it is with GNOME. Every single release they break
backward compatibility somewhere, somehow. They must have special
talents.
Fixes #5967
2023-02-02 10:25:33 +05:30
Kovid Goyal
78d0cc40a3
Fix readSelectionFromPasteboard not actually inserting the text
2023-02-02 06:14:34 +05:30
Kovid Goyal
01720a8d4f
Fix typo seems to have no actual effect, but...
2023-02-02 06:07:30 +05:30
Kovid Goyal
1d45cf4f91
Use crypto/rand rather than math/rand
...
Who knows how random math/rand actually is
2023-02-02 06:04:17 +05:30
Kovid Goyal
a9da57d9b3
Forgot to use builtin for alias
2023-02-01 19:27:39 +05:30
Kovid Goyal
a280328731
kitty->kitten typo
2023-02-01 19:11:39 +05:30
Kovid Goyal
17d2315d0c
Merge branch 'docs' of https://github.com/page-down/kitty
2023-02-01 19:11:13 +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
960f5ff065
Merge branch 'docs' of https://github.com/page-down/kitty
2023-02-01 15:46:51 +05:30
pagedown
8fe936882d
Docs: Improve usage and help documents for kitten
2023-02-01 17:14:54 +08:00
Kovid Goyal
682428fb54
Optimize the services implementation
...
Dont construct the selection string when we are merely checking if a
selection exists.
2023-02-01 12:46:19 +05:30
Kovid Goyal
1c6bae636b
Only accept service requests when we actually have a selection
2023-02-01 12:17:59 +05:30
Kovid Goyal
c201bac900
...
2023-02-01 12:17:15 +05:30
Kovid Goyal
5eaa935ede
icat: Dont try to further compress PNG images when using stream based transmission
2023-02-01 11:45:01 +05:30
Kovid Goyal
a73f09cf89
Clarify that a=f is needed for chunked transmission of animation frame data
2023-02-01 11:43:15 +05:30
Kovid Goyal
092dc3d01f
...
2023-02-01 11:28:52 +05:30
Kovid Goyal
5c0d477a18
icat kitten: Fix transmission of frame data in direct mode
...
Sometimes frame data is > 2048 but does not compress smaller, which
broke the if statement checking for first loop.
Fixes #5958
2023-02-01 10:51:59 +05:30
Kovid Goyal
414ca86e3f
Remaining fixes from #5962
...
Fixes #5962
2023-02-01 10:26:53 +05:30
Kovid Goyal
fbbfb25702
Better fix for kitten not being in PATH
...
Add it to PATH just as we add the kitty dir to PATH. Ensures the correct
kitten is in PATH, corresponding to the correct kitty.
2023-02-01 10:16:50 +05:30
Kovid Goyal
6ea812679f
Fix modify_font not working for strikethrough position
...
Fixes #5946
2023-02-01 08:14:54 +05:30
Kovid Goyal
5a997a5f7a
grammar
2023-01-31 21:02:58 +05:30
Kovid Goyal
47641456da
Ensure edit-in-kitty works even if kitten is not in PATH
...
Still needs to be implemented for fish shell
2023-01-31 20:41:39 +05:30
Kovid Goyal
077f71cad5
Another place to update that talks about symlinking to PATH
2023-01-31 20:31:33 +05:30
Kovid Goyal
8f71f6112a
Update installation instructions to note that kitty and kitten both need to be added to PATH
2023-01-31 20:29:41 +05:30
Kovid Goyal
8bdd4d0596
ssh kitten: Install kitty bootstrap on systems other than linux/darwin as now we have kitten which works on more types of systems
2023-01-31 20:16:20 +05:30
Kovid Goyal
df45a4e759
Add a note that --detach is not available on macOS
2023-01-31 17:52:36 +05:30
Kovid Goyal
70111d130e
version 0.27.0
2023-01-31 10:48:56 +05:30
Kovid Goyal
ce6dacd0d4
Also build 32-bit kitten for Linux
2023-01-31 10:48:56 +05:30
Kovid Goyal
f3c434b7c1
Now that we are releasing 0.27.0 dont need to fetch release version to download latest kitten
2023-01-31 10:48:56 +05:30
Kovid Goyal
54b6344985
Add a note that --spacing is ignored for overlay windows
2023-01-30 12:00:41 +05:30
Kovid Goyal
18fc8dad37
Instead of calling insertText duplicate some of its code so we arent limited in the size of text we can insert
2023-01-29 19:56:53 +05:30
Kovid Goyal
9b5034f904
macOS: Integrate with system services
2023-01-29 19:47:50 +05:30
Kovid Goyal
f2c8819d25
Add an example for displaying a PNG with bash
2023-01-29 10:27:03 +05:30
Kovid Goyal
53482f4c84
Show bad length in base64 decode error message
2023-01-29 10:17:00 +05:30
Kovid Goyal
e1c50cf124
Merge branch 'revert' of https://github.com/page-down/kitty
2023-01-27 21:12:53 +05:30
pagedown
aacb4db2dc
Remote control: Improve create-marker error messages
...
No more missing color errors when text/regex are missing.
Use `mark group` in error messages instead of `color`.
2023-01-27 23:31:06 +08:00
pagedown
8638e42135
Revert "Fix #5937 "
...
This reverts commit 4b322560c3 .
Only two arguments are required to create a marker.
2023-01-27 23:15:13 +08:00
Kovid Goyal
4b322560c3
Fix #5937
2023-01-27 15:15:47 +05:30
Kovid Goyal
0a4ad1fe12
Merge branch 'indent' of https://github.com/page-down/kitty
2023-01-27 11:19:54 +05:30
pagedown
907f658fcc
...
2023-01-27 13:40:31 +08:00
pagedown
1e7e10f96f
Docs: Fix mixed tab and space indentation in the example code
2023-01-27 13:39:27 +08:00
Kovid Goyal
5338fcdc1e
Add a note about why we play with file descriptors
2023-01-26 21:50:10 +05:30
Kovid Goyal
f8991ce3c8
ask kitten: Get readline to work even when stdout is redirected
2023-01-26 21:47:43 +05:30
Kovid Goyal
b408abe304
Move compile_commands.json to build directory
2023-01-26 14:25:22 +05:30
Kovid Goyal
084671b26e
Also preread STDIN when using /dev/stdin as the source
2023-01-26 12:57:12 +05:30
Kovid Goyal
1cc69b3edd
Move pre-read code into a separate function for clarity
2023-01-26 12:49:21 +05:30
Kovid Goyal
d88105319d
clipboard kitten: Allow STDIN to be connected to a program that itself uses the tty directly
...
Read in STDIN first, and only then start terminal IO, hopefully allowing
the other program to finish its terminal IO before we start.
Fixes #5934
2023-01-26 12:40:08 +05:30
Kovid Goyal
eb50fac8de
Add a test for creation of anonymous tempfiles
2023-01-26 11:51:02 +05:30
Kovid Goyal
4185e30d73
Code to more securely create anonymous temp files on Linux
2023-01-26 11:41:01 +05:30
Kovid Goyal
3a126ffa9d
Restore permissions check on pwfile
...
just use RW instead of R as the expected mode
2023-01-26 08:48:35 +05:30
Kovid Goyal
4f5e3f6cf1
Fix ruff invocation in ALE
2023-01-26 08:44:16 +05:30
Kovid Goyal
dd6e206f9b
Remove unused import
2023-01-26 08:29:37 +05:30
Kovid Goyal
ea920ffdf9
Merge branch 'master' of https://github.com/schlomie/kitty
2023-01-26 08:21:16 +05:30
Loren Schlomer
366d65f592
Fixes the ssh kitten
...
kovidgoyal@5e645a7 fixes the password file creation, allowing it to be
unlinked, but read_data_from_shared_memory/1 rejects the shared object
if it is not read only, and will break the ssh kitten for all
platforms.
This change removes the read only check, relying only on the file
ownership check.
This fully fixes #5928
Signed-off-by: Loren Schlomer <me@schlomie.com >
2023-01-25 11:14:12 -08:00
Kovid Goyal
5e645a7be7
Fix ssh kitten not working on FreeBSD
...
Apparently on FreeBSD one cannot unlink shared mem if it is not created
with write permissions.
Adding IWRITE to the permissions when creating the shared memory is
harmless. It means any process running as the user can either write to
the file or delete it. Deleting was already possible except on FreeBSD.
As for writing, it's needed on FreeBSD for shared memory to be useable
at all, and since processes running as the user can already completely
access all their data, kitty config files, tty pipes, etc. allowing them
to write to the SHM used here doesnt grant any significant new
capability, since they could just write to ssh.conf in the kitty config
folder to get the ssh kitten to do whatever they like.
Fixes #5928
2023-01-25 23:34:31 +05:30
Kovid Goyal
e3040a9c91
Make the various path finding functions thread safe and cache their results
2023-01-25 16:24:27 +05:30
Kovid Goyal
a01d68ed85
...
2023-01-25 16:12:47 +05:30
Kovid Goyal
f070b17fee
Also load ~/.config/kitty/mime.types in Go code
2023-01-25 16:08:12 +05:30
Kovid Goyal
22d562ca41
DRYer
2023-01-25 15:38:23 +05:30
Kovid Goyal
102197fabe
Merge branch 'mime-types' of https://github.com/page-down/kitty
2023-01-25 15:28:40 +05:30
pagedown
83f505e209
Update known textual mimes to Python
...
Also add default aliases for JavaScript and XML in Go.
2023-01-25 16:42:15 +08:00
Kovid Goyal
5a86bc2411
Add default aliases for YAML and TOML
2023-01-25 11:54:09 +05:30
Kovid Goyal
b9c324586e
Also recognize a few well known MIME types as being textual
2023-01-24 18:30:46 +05:30
Kovid Goyal
41fb3c79c5
DRYer
2023-01-24 18:26:01 +05:30
Kovid Goyal
5066623089
better fix for file completion in Go
...
When neither extensions for mime are specified assume we want to match
all files.
2023-01-23 18:01:17 +05:30
Kovid Goyal
8e98b4123e
Fix completion for --password-file not completing file names
2023-01-23 17:58:31 +05:30
Kovid Goyal
8f88aab9d2
remove unused code
2023-01-23 17:51:10 +05:30
Kovid Goyal
d8bbb16d5e
Make the single instance data type checked
2023-01-23 17:45:11 +05:30
Kovid Goyal
60791bb57b
Session files: Expand environment variables
2023-01-23 17:34:53 +05:30
Kovid Goyal
11f98592f7
We still need full keyboard protocol for @ send-text
2023-01-23 16:33:08 +05:30
Kovid Goyal
97467acb1f
kitten @ cmd: Dont generate key release events
...
We dont need them and they sometimes can spill over into the prompt if
the command is very fast.
2023-01-23 16:18:46 +05:30
Kovid Goyal
cc1f0bc3fe
Function to drain controlling tty
2023-01-23 16:07:00 +05:30
Kovid Goyal
a009d6b258
kitty shell: Add completion for help and exit commands
2023-01-23 15:34:45 +05:30
Kovid Goyal
0903ae7b4d
Do not use prewarming for wrapped kittens
2023-01-23 15:21:04 +05:30
Kovid Goyal
35c1ebd3f9
Merge branch 'fix-open-actions-shell' of https://github.com/page-down/kitty
2023-01-23 14:03:54 +05:30
pagedown
352f940010
Fix SHELL env var in open-actions.conf and launch-actions.conf
...
Only the executable path is used when expanding `$SHELL`.
Also fix the non-working example `{SHELL}` in the documentation.
2023-01-23 14:15:27 +08:00
Kovid Goyal
1f00c27097
Also create an automatic text/plain alias when reading from clipboard
2023-01-22 22:04:53 +05:30
Kovid Goyal
6b2d37366f
Add trailing newline when printing available MIME types
2023-01-22 21:57:17 +05:30
Kovid Goyal
a4075ff041
X11: Fix a crash when listing clipboard MIME types and the clipboard is owned by self
...
Fixes #5920
2023-01-22 21:19:03 +05:30
Kovid Goyal
7a526d9588
clipboard kitten: When copying, automatically add a text/plain alias if there is at least one text/* MIME and no actual text/plain MIME
2023-01-22 20:41:37 +05:30
Kovid Goyal
5b4e4f032d
ask kitten: Output JSON when used standalone
2023-01-22 11:48:51 +05:30
Kovid Goyal
0a1b399447
...
2023-01-22 08:58:14 +05:30
Kovid Goyal
6a64df1afb
Abort show_error kitten if stdin is a tty
2023-01-22 08:48:55 +05:30
Kovid Goyal
dc1851acdb
Add some messages to kitten help for kittens that are not meant to be run by end users.
2023-01-22 08:46:29 +05:30
Kovid Goyal
096c1e328e
Improve progress printout
2023-01-22 08:41:38 +05:30
Kovid Goyal
1a44c2117b
GitHub requires a User-Agent
2023-01-22 08:00:29 +05:30
Kovid Goyal
bd13238d9b
Should only return ENOTSUPP if SHM_DIR doesnt exist, not the fil we are trying to open
2023-01-21 17:46:37 +05:30
Kovid Goyal
b1c27d4c2f
...
2023-01-21 17:42:50 +05:30
Kovid Goyal
dc0093cb51
SHM FS: Return a not supported error if SHM_DIR does not exist
2023-01-21 17:40:59 +05:30
Kovid Goyal
b1934ce267
kitten: When guessing MIME types use a builtin list as a fallback, generated from the MIME type definitions available on the build system
2023-01-21 17:35:41 +05:30
Kovid Goyal
16f767de7e
Remove unneeded code
2023-01-21 13:20:29 +05:30
Kovid Goyal
93e9332474
Use separate connections for every request to github
...
GitHub has been flaking out a lot of late with SSL errors when re-using
connections. Also allows us to get rid of the dependency on requests.
2023-01-21 12:56:00 +05:30
Kovid Goyal
81cc09aa61
Increase number of retries when uploading to github as it is getting flakier than ever
2023-01-20 07:11:52 +05:30
Kovid Goyal
e5bc7255b2
...
2023-01-20 07:07:28 +05:30
Kovid Goyal
75048d56bc
...
2023-01-19 07:54:03 +05:30
Kovid Goyal
19f853c29f
Add a note about all the things wrong with modifyOtherKeys
2023-01-18 22:57:56 +05:30
Kovid Goyal
26ca3f9bad
Simplify code
2023-01-18 16:16:11 +05:30
Kovid Goyal
bf7d27691c
Also add the EINTR fix from previous commit to writing to loop
2023-01-18 16:09:19 +05:30
Kovid Goyal
22532b4805
kitten @: Fix occasional hang until key is pressed while waiting for response from terminal
...
Fixes #5890
2023-01-18 16:07:42 +05:30
Kovid Goyal
68a006444e
Ensure that marking a child for removal works even when the child is still in the queue to be added
...
Fixes #5895
2023-01-18 15:43:41 +05:30
Kovid Goyal
2d846f53a1
...
2023-01-18 14:44:40 +05:30
Kovid Goyal
63077e5432
Dont do extremely small reads
2023-01-18 10:13:07 +05:30
Kovid Goyal
5edb1e2d6b
micro-optimization
2023-01-18 09:58:29 +05:30
Kovid Goyal
0c7b4df6fc
Ensure we are not using iterators when closing
2023-01-18 09:40:31 +05:30
Kovid Goyal
03abbb315a
Fix using cursor=none not working on text that has reverse video
...
Fixes #5897
2023-01-18 09:23:49 +05:30
Kovid Goyal
dc03c14af2
Fix #5896
2023-01-18 08:51:17 +05:30
Kovid Goyal
821f52a748
...
2023-01-17 12:39:41 +05:30
Kovid Goyal
750f2fa4d0
Use go 1.20 facilities for unsafe string <-> bytes
2023-01-17 12:38:54 +05:30
Kovid Goyal
009fd6418c
Fix #5894
2023-01-17 12:05:23 +05:30
Kovid Goyal
ce161e610f
...
2023-01-17 11:52:06 +05:30
Kovid Goyal
b1b9c3704b
Merge branch 'patch-2' of https://github.com/eltociear/kitty
2023-01-17 08:38:57 +05:30
Ikko Eltociear Ashimine
fd245e894b
Fix typo in overview.rst
...
specifed -> specified
2023-01-17 12:05:46 +09:00
Kovid Goyal
59170a3627
Add a note to CONTRIBUTING.md about bug management
2023-01-16 17:16:58 +05:30
Kovid Goyal
61143557a9
Re-organize the terminfo FAQ entries into a single one
2023-01-16 16:32:35 +05:30
Kovid Goyal
9a77fdcd04
A new option undercurl_style to control the rendering of undercurls
...
Fixes #5883
2023-01-16 14:23:10 +05:30
Kovid Goyal
0c8ec3c57b
Cleanup previous PR
2023-01-15 13:01:43 +05:30
Jake(Jaehak Song)
b799eba81e
Save the overlay when DECTCEM is turned off and restore it when turned on.
2023-01-15 13:01:43 +05:30
Jake(Jaehak Song)
9d1de50bf9
shell.nix: add a missing dependency 'UniformTypeIdentifiers' for macOS
2023-01-15 13:01:43 +05:30
Kovid Goyal
d55a9b582b
Use ruff for import sorting
2023-01-15 11:07:10 +05:30
Kovid Goyal
865fc24975
When reporting unused activity in a window, ignore activity that occurs soon after a window resize
...
Fixes #5881
2023-01-15 09:09:07 +05:30
Kovid Goyal
45b0788f28
Dont rely on existence of sh to report exec failure
2023-01-14 16:03:34 +05:30
Kovid Goyal
bc73273cb3
...
2023-01-14 15:58:26 +05:30
Kovid Goyal
dd5cfe38b7
Update README
2023-01-14 15:56:03 +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
60310ced05
Also build 32-bit ARM kitty-tool for Linux
2023-01-14 11:20:31 +05:30
Kovid Goyal
f61b007645
...
2023-01-11 11:53:43 +05:30
Kovid Goyal
d4e34a4c31
themes kitten: Nicer error message when no internet connection is present
...
Fixes #5877
2023-01-11 09:00:58 +05:30
Kovid Goyal
15524ee0fb
...
2023-01-10 19:41:46 +05:30
Kovid Goyal
58a4b4218e
...
2023-01-10 17:35:15 +05:30
Kovid Goyal
ac67d9c72d
Allow dumping bytes sent to child for debugging
2023-01-10 15:39:56 +05:30
Kovid Goyal
b9692d480a
Allow passing memoryview to paste()
2023-01-10 10:56:03 +05:30
Kovid Goyal
3a2da22509
DRYer
2023-01-10 09:35:15 +05:30
Kovid Goyal
bf8d0c9732
Fix a bug when copying large amounts of text with OSC 52 introduced by the new multi-format clipboard support
2023-01-10 09:29:54 +05:30
Kovid Goyal
836b652f4d
Enable checks for unused noqa
2023-01-09 17:28:35 +05:30
Kovid Goyal
69255f7525
broadcast kitten: Allow pressing a key to stop echoing of input into the broadcast window itself
2023-01-09 17:19:35 +05:30
Kovid Goyal
6e41409a3f
Dont run isort on generated conf files
2023-01-09 16:51:59 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
f15d27bb62
Use ruff on CI
2023-01-09 15:55:45 +05:30
Kovid Goyal
a068e3e655
Fix issues reported by ruff
2023-01-09 15:54:41 +05:30
Kovid Goyal
d248d5ad75
Move to pyproject.toml and ruff
2023-01-09 15:49:49 +05:30
Kovid Goyal
44866a6e79
Add sample Go code to get screen size
2023-01-07 15:00:51 +05:30
Kovid Goyal
1fe84f6057
Update icat kitten docs
2023-01-07 14:37:32 +05:30
Kovid Goyal
41207aa830
kitty @ get-colors: Report the current tab bar colors for the active OS window rather than configured values. Fixes #5865
2023-01-07 13:56:36 +05:30
Kovid Goyal
66a2e6f80d
...
2023-01-06 22:06:58 +05:30
Kovid Goyal
397ac36011
Also mention terminal multiplxers can cause graphics to fail
2023-01-06 16:36:39 +05:30
Kovid Goyal
02063a5a6a
Make some variables local no need for them to be global
2023-01-06 16:35:17 +05:30
Kovid Goyal
b3926ae9e7
Remove unused code
2023-01-06 16:32:04 +05:30
Kovid Goyal
3743ae50e7
Simplify icat code and write to STDOUT rather than the terminal device
...
The terminal device is now used only for detection.
2023-01-06 16:16:15 +05:30
Kovid Goyal
2205bf4426
add a comment
2023-01-06 14:42:14 +05:30
Kovid Goyal
def35078d1
...
2023-01-06 14:26:15 +05:30
Kovid Goyal
1b5fac3189
Cleanup previous PR
2023-01-06 14:25:21 +05:30
Kovid Goyal
dab7f71d2f
Merge branch 'master' of https://github.com/TrellixVulnTeam/kitty_864P
2023-01-06 14:17:38 +05:30
TrellixVulnTeam
1223130ef7
Adding tarfile member sanitization to extractall()
2023-01-06 08:07:51 +00:00
Kovid Goyal
4e90ae68a4
...
2023-01-06 11:33:47 +05:30
Kovid Goyal
e16e3c1582
Clarify the common use case for --config-file-name
2023-01-06 10:42:46 +05:30
Kovid Goyal
ddf36383b4
Dont need to fetch the current version since GitHub provides a redirecting constant download URL
2023-01-05 20:09:32 +05:30
Kovid Goyal
77a3916f6f
We need go >= 1.19
2023-01-05 19:41:42 +05:30
Kovid Goyal
5d42d1f955
Remove the old python icat implementation
...
Keep the python backend code as it is used by the diff kitten to display
image diffs.
2023-01-05 19:34:12 +05:30
Kovid Goyal
a2c68a927e
icat: When using --place ensure screen doesnt scroll by leaving cursor at top-left corner of image.
2023-01-05 19:15:13 +05:30
Kovid Goyal
cab7856495
Finish resize handling for the magick engine
2023-01-05 19:15:13 +05:30
Kovid Goyal
c317c934f3
More work on ImageMagick
2023-01-05 19:15:13 +05:30
Kovid Goyal
4d21be9eb5
Port python's shutil.which()
2023-01-05 19:15:13 +05:30
Kovid Goyal
fd71d2035d
Start work on rendering with ImageMagick
2023-01-05 19:15:13 +05:30
Kovid Goyal
7ebb281855
Allow controlling num of CPUs for images operations
2023-01-05 19:15:13 +05:30
Kovid Goyal
2d3da1db6d
Dont scan all pixels of JPEG images when EXIF rotated to check for opacity
2023-01-05 19:15:13 +05:30
Kovid Goyal
458adf967a
Dont use extra memory for mirror operations
2023-01-05 19:15:13 +05:30
Kovid Goyal
eec4c6b802
Dont transmit animation control commands for non-animated images
2023-01-05 19:15:13 +05:30
Kovid Goyal
0b9b207513
Implement scaling for GIF as well
2023-01-05 19:15:13 +05:30
Kovid Goyal
7e8017604e
Copy comment explaining min gap and set it to the correct value
2023-01-05 19:15:13 +05:30
Kovid Goyal
520b935cd3
...
2023-01-05 19:15:12 +05:30
Kovid Goyal
9cb83a6ec2
...
2023-01-05 19:15:12 +05:30
Kovid Goyal
7c2317d301
Fix divide by zero
2023-01-05 19:15:12 +05:30
Kovid Goyal
7237e5cf9c
Get GIF basically working
2023-01-05 19:15:12 +05:30
Kovid Goyal
cd5dab581b
DRYer
2023-01-05 19:15:12 +05:30
Kovid Goyal
481cebbd29
Transmission format should be per frame
2023-01-05 19:15:12 +05:30
Kovid Goyal
4623f580b9
Get 24 bit RGB transmission working
2023-01-05 19:15:12 +05:30
Kovid Goyal
6291d0d400
Code to check if an image is Opaque
2023-01-05 19:15:12 +05:30
Kovid Goyal
36d82267bb
...
2023-01-05 19:15:12 +05:30
Kovid Goyal
f9feb4954a
Wire up pasting to RGB
2023-01-05 19:15:12 +05:30
Kovid Goyal
d192dcb0d7
Code to convert images to NRGB
2023-01-05 19:15:12 +05:30
Kovid Goyal
143fd6e4dd
Start work on transmitting RGB images
2023-01-05 19:15:12 +05:30
Kovid Goyal
df06578c2d
Implement --scale-up and --place
2023-01-05 19:15:12 +05:30
Kovid Goyal
73a055fe12
Fix failing test
2023-01-05 19:15:12 +05:30
Kovid Goyal
1fa1a478d9
Get --background working
2023-01-05 19:15:12 +05:30
Kovid Goyal
5a3a547c65
Work on adding support for rendering transforms
2023-01-05 19:15:12 +05:30
Kovid Goyal
373ab95f14
Basic go based rendering
2023-01-05 19:15:11 +05:30
Kovid Goyal
7f866b2b1f
Start work on rendering images with Go
2023-01-05 19:15:11 +05:30
Kovid Goyal
24db38ba7e
Set data size for SHM transmission as on some platforms the actual SHM size is not equal to the requested size
2023-01-05 19:15:11 +05:30
Kovid Goyal
efdfaaec30
...
2023-01-05 19:15:11 +05:30
Kovid Goyal
d694f48c91
Get the other two transmission modes working as well
2023-01-05 19:15:11 +05:30
Kovid Goyal
5562a4d52f
Get file mode transmission working for unmodified PNG
2023-01-05 19:15:11 +05:30
Kovid Goyal
ce4c71c465
Start work on the transmit backend
2023-01-05 19:15:11 +05:30
Kovid Goyal
31df90a64e
Dont allow abort while waiting for query response
2023-01-05 19:15:11 +05:30
Kovid Goyal
22d69d24d0
Fix panic when no timers are left after dispatch
2023-01-05 19:15:11 +05:30
Kovid Goyal
d76e0850ae
More work on porting icat
2023-01-05 19:15:11 +05:30
Kovid Goyal
b520882b62
...
2023-01-05 19:15:11 +05:30
Kovid Goyal
79acab1547
More work on porting icat
2023-01-05 19:15:11 +05:30
Kovid Goyal
4690f3c7c0
...
2023-01-05 19:15:11 +05:30
Kovid Goyal
cf1d9eb303
Parse more icat cli flags
2023-01-05 19:15:11 +05:30
Kovid Goyal
ba2a3f228d
Implement --detect-timeout
2023-01-05 19:15:11 +05:30
Kovid Goyal
a757587ea2
Fix SHM on OpenBSD
2023-01-05 19:15:10 +05:30
Kovid Goyal
ea756db544
Get transmission medium detection working
2023-01-05 19:15:10 +05:30
Kovid Goyal
2d1a2c30bf
MMap.Name() should return the SHM name not the full filesystem path
2023-01-05 19:15:10 +05:30
Kovid Goyal
6ace082bc2
Add openbsd and dragonfly support to shm
2023-01-05 19:15:10 +05:30
Kovid Goyal
7e161ea94b
Get syscall based SHM working
2023-01-05 19:15:10 +05:30
Kovid Goyal
d01d5297b8
Start work on a SHM implementation in Go
2023-01-05 19:15:10 +05:30
Kovid Goyal
7a1140cd03
Start work on porting icat to Go
2023-01-05 19:15:10 +05:30
Kovid Goyal
aab81c2d32
Turn off hyperlink target display by default
...
I find it too intrusive for limited benefit. Most the hyperlinks I
click come from trusted programs anyway.
2023-01-05 15:30:43 +05:30
Kovid Goyal
49418c2f53
Show the hyperlink target bar on the top more often than the bottom. This is because the text cursor is usually closer to the bottom.
2023-01-05 15:28:02 +05:30
Kovid Goyal
a548e3eb4d
Fix some animations pausing before starting
2023-01-04 11:18:17 +05:30
Kovid Goyal
779a7b7deb
...
2023-01-04 11:15:47 +05:30
Kovid Goyal
c83a8b0773
zsh completion; Fix leading ~ in filenames being quoted on insertion into commandline
2023-01-04 11:07:56 +05:30
Kovid Goyal
035c3de4bb
Add completion for file args to clipboard kitten
2023-01-04 10:39:24 +05:30
Kovid Goyal
e2543e8968
Fix #5852
2023-01-04 08:20:04 +05:30
Kovid Goyal
bc2492c212
dont show URL targetbar when mouse is hidden
2023-01-01 12:11:19 +05:30
Kovid Goyal
c03310b5e5
Cleanup previous PR
2022-12-31 14:03:16 +05:30
Kovid Goyal
bd33cef092
Merge branch 'sequence' of https://github.com/ppwwyyxx/kitty
2022-12-31 13:38:37 +05:30
Yuxin Wu
832506d785
move is_modifier_key to glfw.c and expose in Python
2022-12-30 23:32:46 -08:00
Yuxin Wu
13b09346b9
reset current window after processing sequence
2022-12-30 23:07:50 -08:00
Yuxin Wu
1c10c5fcc4
replay modifier key as well
2022-12-30 23:07:50 -08:00
Yuxin Wu
510c5bd73b
handle release
2022-12-30 23:07:49 -08:00
Yuxin Wu
774fdd7e94
Send sequence events to child if they don't match kitty.
2022-12-30 23:07:36 -08:00
Kovid Goyal
58497161c0
X11: When pasting text/plain try UTF8_STRING first then text/plain/charset=utf-8
...
Fixes #5842
Also fixes pasting from GTK+2 applications like leafpad.
2022-12-30 22:20:43 +05:30
Kovid Goyal
f831c34813
Update the FAQ on vim with a comprehensive set of settings needed to get it to work with modern terminals
2022-12-30 13:52:08 +05:30
Kovid Goyal
456af90ad2
Remote control: Allow matching for self window even over sockets when run inside a kitty window
...
Have kitty-tool send the value of KITTY_WINDOW_ID if present.
2022-12-30 12:17:31 +05:30
Kovid Goyal
c18bff7821
Remote control: Allow matching the parent of an overlay window
2022-12-30 11:29:05 +05:30
Kovid Goyal
080d1bf935
Fox object lifetime management
2022-12-30 10:08:49 +05:30
Kovid Goyal
4f9ed6546a
Pass key events mapped to scroll actions to the program running in the terminal when the terminal is in alternate screen mode
...
Fixes #5839
2022-12-30 08:54:31 +05:30
Kovid Goyal
c76bbeabd6
...
2022-12-30 08:34:58 +05:30
Kovid Goyal
0f24ce60f8
Fix @ send-text --stdin always assuming STDIN is a tty
2022-12-30 08:29:30 +05:30
Kovid Goyal
6a06769931
...
2022-12-29 17:27:57 +05:30
Kovid Goyal
468b6fab02
Also use sanitized URL for allow_hyperlinks=ask
2022-12-29 17:05:18 +05:30
Kovid Goyal
306f9e5735
Prettify URLs before displaying them to the user
2022-12-29 17:04:02 +05:30
Kovid Goyal
f4ac03b791
Show the target of terminal hyperlinks when hovering over them with the mouse
...
Fixes #5830
2022-12-29 16:43:45 +05:30
Kovid Goyal
b8abdd2b50
Retry failed deletes from github
2022-12-29 12:50:16 +05:30
Kovid Goyal
e673747ef4
readline: add alt+arrow to move by word default binding. Common on macOS
2022-12-27 10:59:13 +05:30
Kovid Goyal
6e4376e44e
A few more wrapping serialization tests
2022-12-27 09:11:15 +05:30
Kovid Goyal
f6801d48d1
Add a test to ensure \n does not change wrapping status
2022-12-27 08:48:26 +05:30
Kovid Goyal
ca57198927
Merge branch 'patch-1' of https://github.com/eltociear/kitty
2022-12-26 21:00:33 +05:30
Ikko Ashimine
e78000c879
Fix typo in iqsort.h
...
comparision -> comparison
2022-12-27 00:27:16 +09:00
Kovid Goyal
68cf9f7514
Switch to tracking linewrap on the last cell in a line
...
This allows us to have newline not affect the wrap status of a line.
Now a lines wrapping status is changed only when the last cell
in the line is changed. This actually matches the behavior of many other
terminal emulators so is probably a good thing from a ecosystem
compatibility perspective.
The fish shell expects this weird behavior of newline not changing
wrapping status, for unknown reasons, which is the actual motivation for
doing all this work.
Fixes #5766
2022-12-26 20:26:21 +05:30
Kovid Goyal
4556f5b8f1
Merge branch 'pr-fix-image-scrolling' of https://github.com/sergei-grechanik/kitty
2022-12-26 09:51:22 +05:30
Sergei Grechanik
32d8aac808
Fix scrolling images within margins
...
This commit fixes an off-by-one error in image scrolling that caused
images to not be scrolled or to be cropped at the wrong line.
2022-12-25 15:34:54 -08:00
Kovid Goyal
2e81d00c92
make go fmt happy
2022-12-24 10:53:17 +05:30
Kovid Goyal
cd92d50a0d
Keyboard protocol: Remove CSI R from the allowed encodings of the F3 key as it conflicts with the *Cursor Position Report* escape code
2022-12-24 10:32:28 +05:30
Kovid Goyal
155dd426c5
Merge branch 'ssh-kitten' of https://github.com/page-down/kitty
2022-12-24 10:04:58 +05:30
pagedown
a8f2816ac2
ssh kitten: Compile terminfo with tic coming from pkgsrc under NetBSD
2022-12-24 11:53:52 +08:00
pagedown
0ddc5d030c
ssh kitten: Fall back to using openssl when base64 does not exist
2022-12-24 11:53:45 +08:00
Kovid Goyal
a2c2d81373
Cleanup readline prompt rendering
2022-12-23 15:23:42 +05:30
Kovid Goyal
307ce1cf87
Remove not needed wrapper function since now we use a struct to set attrs
2022-12-23 13:50:55 +05:30
Kovid Goyal
61ceb12e07
Merge branch 'singlekey-endian' of https://github.com/jamessan/kitty
...
Fixes #5802
2022-12-23 08:12:23 +05:30
James McCoy
b45dc20693
Define SingleKey bitfields according to endianness
...
Closes #5802
2022-12-22 15:07:54 -05:00
Kovid Goyal
bcedbe5ec1
Revert "Change the terminfo entry for cud1 to not alter text to comply with the terminfo man page"
...
This reverts commit d8284befd3 .
See https://github.com/kovidgoyal/kitty/issues/5766#issuecomment-1363025173
2022-12-22 21:49:32 +05:30
Kovid Goyal
038639e2d3
Bump bundled zlib
2022-12-22 19:26:34 +05:30
Kovid Goyal
c857492f37
Merge pull request #5803 from jamessan/runtime-dir
...
tests: Use tempdir for XDG_RUNTIME_DIR
2022-12-22 11:07:44 +05:30
Kovid Goyal
42923ab673
...
2022-12-22 10:19:34 +05:30
James McCoy
9afd0309fc
tests: Use tempdir for XDG_RUNTIME_DIR
2022-12-21 22:21:48 -05:00
Kovid Goyal
b9d098de2d
Update mpv support link to point to the actual merged commit
2022-12-22 07:16:53 +05:30
Kovid Goyal
09e6f740de
Merge branch 'macos-shortcuts' of https://github.com/page-down/kitty
2022-12-21 16:41:43 +05:30
pagedown
1023084eb9
macOS: Allow to customize Hide, Minimize, and Quit global menu shortcuts
...
All previously hard-coded shortcuts under macOS can be configured now.
2022-12-20 21:08:26 +08:00
Kovid Goyal
aa9679e56b
Fix typo in key definition
2022-12-20 15:01:40 +05:30
Hector Martin
84aebae6a8
Downgrade OpenGL version requirement to 3.1
...
There are only a few features required from newer versions, and they
can be achieved via extensions. This significantly improves compatibility.
2022-12-20 16:22:05 +09:00
Kovid Goyal
d8284befd3
Change the terminfo entry for cud1 to not alter text to comply with the terminfo man page
...
Fixes #5766
2022-12-20 09:16:05 +05:30
Kovid Goyal
e4ee2cf995
Move the alt+left/right binding into zsh integration
...
It works OOTB in bash and fish already.
2022-12-19 11:25:12 +05:30
Kovid Goyal
e3f6f47f10
...
2022-12-19 05:35:18 +05:30
Kovid Goyal
e5941b1b44
Add a link for the vim t_ut issue
2022-12-18 22:32:20 +05:30
Kovid Goyal
65c64d8745
macOS: Bind :kbd:option+left and :kbd:option+right to :kbd:alt+b and :kbd:alt+f. This mimics the default bindings in Terminal.app
...
Fixes #5793
2022-12-18 20:34:42 +05:30
Kovid Goyal
40093a4702
Add tests for GraphicsCommand serialization
2022-12-18 11:56:30 +05:30
Kovid Goyal
3815cba8f3
Add stringer interface to GraphicsCommand
2022-12-17 15:34:43 +05:30
Kovid Goyal
7410cd62f9
remove unused code
2022-12-17 09:00:44 +05:30
Kovid Goyal
ae0a8e73d2
...
2022-12-17 08:59:56 +05:30
Kovid Goyal
8f3a8c828f
Add an APC to GraphicsCommand parser
2022-12-16 21:05:17 +05:30
Kovid Goyal
6efb5dc2c2
Auto-create an OS Window if none exists on new_tab
2022-12-16 19:34:37 +05:30
Kovid Goyal
bb33f6c0ac
Start work on graphics support in kitty-tool
2022-12-16 18:06:52 +05:30
Kovid Goyal
d34284ee1c
Merge branch 'docs' of https://github.com/page-down/kitty
2022-12-16 13:06:20 +05:30
pagedown
74cae7b787
...
2022-12-16 14:27:02 +08:00
Kovid Goyal
c6360537e5
Try to fix tests failing on Python 3.11
2022-12-16 10:05:05 +05:30
Kovid Goyal
7d28d7413f
Merge branch 'patch-1' of https://github.com/lodisy/kitty
2022-12-16 09:41:10 +05:30
Michael
d3f3e9ec38
docs: fix overview.rst
...
add missing `be`, L88
2022-12-16 12:06:25 +08:00
Kovid Goyal
928becece4
Fix #5773
2022-12-14 15:45:43 +05:30
Kovid Goyal
80db167abb
Add mpv to the list of things that speak the graphics protocol
2022-12-14 10:31:56 +05:30
Kovid Goyal
a5a6880a19
Respect enable_audio_bell when a layout action fails
2022-12-14 06:53:14 +05:30
Kovid Goyal
da13d03b98
Merge branch 'rc-launch' of https://github.com/page-down/kitty
2022-12-13 20:32:20 +05:30
pagedown
0a5c409a12
Remote control: Add the missing option value overlay-main
2022-12-13 22:48:46 +08:00
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
2b66775f45
explicitly ignore a few errors
2022-12-13 16:19:46 +05:30
Kovid Goyal
3f65ce0e71
Make sizes explicit in a few reallocs
2022-12-13 12:11:37 +05:30
Kovid Goyal
d235b673d1
also test \ is escaped
2022-12-13 10:21:19 +05:30
Kovid Goyal
0ab618c2dc
Fix #5767
2022-12-13 10:20:02 +05:30
Kovid Goyal
fefafda9a0
Fix #5764
2022-12-12 21:26:54 +05:30
Kovid Goyal
902373ed20
Also make lists and dicts of strings escape code safe
2022-12-12 19:24:44 +05:30
Kovid Goyal
aac57550c9
rc protocol: Encode strings values in an escape code safe way
...
Go emits UTF-8 encoded JSON not ascii encoded JSON. Still need to fix
lists and dicts of strings
2022-12-12 18:48:54 +05:30
Kovid Goyal
95e05ce9ec
Fix #5761
2022-12-12 16:49:18 +05:30
Kovid Goyal
b6c6316b7b
Merge branch 'rc-ls' of https://github.com/page-down/kitty
2022-12-12 10:32:51 +05:30
pagedown
91576cc42f
Remote control: Keep the same naming style for ls command output
2022-12-12 12:53:58 +08:00
Kovid Goyal
032e01ebf7
...
2022-12-11 20:55:06 +05:30
Kovid Goyal
bd70100e09
Fix typo in FAQ
2022-12-10 13:00:09 +05:30
Kovid Goyal
ff6d2e3c10
Merge branch 'kitten-hyperlink-grep' of https://github.com/page-down/kitty
2022-12-10 12:58:57 +05:30
pagedown
2f292bb5d2
DRYer
2022-12-10 15:13:19 +08:00
pagedown
52cf443daf
Docs: rg --no-heading has been handled
2022-12-10 15:12:32 +08:00
Kovid Goyal
f03a665e09
Remote control: When matching windows allow using negative id numbers to match recently created windows
...
Fixes #5753
2022-12-10 11:17:55 +05:30
Kovid Goyal
66e7919171
Add a FAQ entry about not being able to use a keybinding in a terminal program
...
I am tired of people asking this same question endlessly. At least now I
can just point them to this link.
2022-12-08 14:16:01 +05:30
Kovid Goyal
1289dd2ff0
Cleanup previous PR
2022-12-08 13:30:54 +05:30
Kovid Goyal
fa50e0d6cc
Merge branch 'kitten-hyperlinked-grep' of https://github.com/page-down/kitty
2022-12-08 13:26:28 +05:30
pagedown
8c7a5288ae
hyperlinked_grep kitten: Handle more rg command line options
...
Skip for unsupported options.
2022-12-08 14:51:13 +08:00
Kovid Goyal
7fe5c79d53
Also mask signals when SIGNALFD is not available
...
This makes behavior across platforms consistent.
Fixes #4636
2022-12-07 12:25:14 +05:30
Kovid Goyal
ea5ffa4304
...
2022-12-07 10:18:15 +05:30
Kovid Goyal
89b32e4545
Update changelog with clipboard kitten new features
2022-12-07 10:04:02 +05:30
Kovid Goyal
879b27a045
...
2022-12-07 06:48:19 +05:30
Kovid Goyal
9cb0e4d09d
Block handled signals early in startup before glfw is initialized to ensure that if the graphics libraries start a thread behind our backs, that threads defaults to haveing the signals blocked unless the library explicitly unblocks them. See #4636
2022-12-07 06:35:18 +05:30
Kovid Goyal
94410f2866
Handle EBUSY as well
2022-12-06 12:20:20 +05:30
Kovid Goyal
a3ba8647ba
Document the new OSC 5522 protocol
2022-12-06 12:18:55 +05:30
Kovid Goyal
f35ee1bb40
Fix using primary selection with the extended protocol
2022-12-06 11:15:52 +05:30
Kovid Goyal
23b3b171fa
Merge branch 'conf' of https://github.com/page-down/kitty
2022-12-05 17:54:10 +05:30
pagedown
30b25709d2
Fix the base path for envinclude
2022-12-05 14:53:26 +08:00
pagedown
9c488bb877
Docs: Remove extra backslashes from commented config
...
Update docs to use \e in the example.
2022-12-05 14:27:40 +08:00
Kovid Goyal
14a33dbd94
Put the non-boilerplate functions in their proper place
2022-12-05 08:07:50 +05:30
Kovid Goyal
e37ee422b6
...
2022-12-05 07:53:30 +05:30
Kovid Goyal
d7d96c2e7b
When using the include directive in kitty.conf make the environment variable KITTY_OS available for OS specific config
2022-12-04 21:03:24 +05:30
Kovid Goyal
fda4aa21a1
When drawing the tab bar have the default left and right margins drawn in a color matching the neighboring tab
...
Fixes #5719
2022-12-04 20:51:41 +05:30
Kovid Goyal
3cbca4955e
...
2022-12-04 20:48:15 +05:30
Kovid Goyal
8e0e70e2d6
Simplify passing colors to the borders shader
2022-12-04 16:08:32 +05:30
Kovid Goyal
7a348d6ef1
Store updated tab bar edge colors on every tab bar redraw
2022-12-04 14:38:56 +05:30
Kovid Goyal
cf8f904720
Function to guess the effective color at the edge of the current screen line
2022-12-04 14:23:21 +05:30
Kovid Goyal
fe53555dba
Document the additions to the clipboard kitten
2022-12-04 11:37:02 +05:30
Kovid Goyal
b644a42a48
Allow using wildcard mime types when copying from clipboard
2022-12-03 14:06:16 +05:30
Kovid Goyal
5c9c9a67bc
Fix make asan
...
Suppress leak detection when running gen-go-code.py otherwise it fails
since python always leaks
2022-12-03 12:34:32 +05:30
Kovid Goyal
76f6288e69
...
2022-12-03 12:25:23 +05:30
Kovid Goyal
6422b323c6
Implement MIME aliases for clipboard
2022-12-03 12:20:03 +05:30
Kovid Goyal
a622a149f6
Allow arbitrary bytes in the mime metadata key
2022-12-03 09:21:36 +05:30
Kovid Goyal
fa6527cdf3
add note about how MIME types are detected
2022-12-03 08:35:58 +05:30
Kovid Goyal
0b293428c4
X11: Fix reading list of available mime types
2022-12-03 08:16:59 +05:30
Kovid Goyal
26e8a5186a
Avoid extra roundtrip when only reading clipboard mime types
2022-12-03 08:06:48 +05:30
Kovid Goyal
bde737fa38
Finish implementation of clipboard writing
2022-12-03 08:02:27 +05:30
Kovid Goyal
71e09ba1fb
Fix show_key kitten showing incorrect CSI encoding for F3
2022-12-01 23:33:08 +05:30
Kovid Goyal
3e69cf81af
DRYer
2022-12-01 22:40:47 +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
38a7fa73e3
Simplify filter mode operation
...
Dont need channels and goroutines as writing in the loop is already
asnychronous
2022-12-01 19:54:57 +05:30
Kovid Goyal
fdd42d5f19
Implement kitty side write OSC 5522
2022-12-01 18:18:06 +05:30
Kovid Goyal
fe75493c37
Better error messages
2022-12-01 18:17:53 +05:30
Kovid Goyal
e187265d04
Dont truncate the output file just to get tis permission bits
2022-12-01 14:13:28 +05:30
Kovid Goyal
0a985134e2
Ensure permissions are correct when using atomic writes
2022-12-01 14:04:52 +05:30
Kovid Goyal
e555d963b1
DRYer
2022-12-01 13:58:06 +05:30
Kovid Goyal
3601488b26
Add a generic Values()
2022-12-01 13:47:06 +05:30
Kovid Goyal
f29ce19097
Reading arbitrary MIME from clipboard now works
2022-12-01 13:35:44 +05:30
Kovid Goyal
f6ab641b00
Clarify the action of CSI < u in Quickstart
2022-11-30 16:28:34 +05:30
Kovid Goyal
722a1020fa
Cleaner implementation of max_tab_title_length
...
Ensures that tab decorations are not affected
2022-11-29 23:20:39 +05:30
Kovid Goyal
fbd19f3bde
Merge branch 'docs' of https://github.com/page-down/kitty
2022-11-29 22:10:57 +05:30
Kovid Goyal
3cf874f6e9
Work on implementing read support in the clipboard kitten
2022-11-29 22:07:51 +05:30
pagedown
02b206eeb8
Docs: Slightly adjust the description of tab_title_max_length
...
Note the associated GitHub PR ID in the changelog.
2022-11-30 00:20:32 +08:00
Kovid Goyal
5c50e3869c
Change the new option to limit tab title lengths to apply to the length of the title, as documented, nit the full tab
2022-11-29 17:41:27 +05:30
Kovid Goyal
6f66bbd424
...
2022-11-29 15:15:01 +05:30
Kovid Goyal
2697ddaec3
Dont ask for permission when reading only the mime types available in the clipboard
2022-11-29 15:09:01 +05:30
Kovid Goyal
d6dcdf0751
Merge branch 'tab_max_length' of https://github.com/fratajczak/kitty
2022-11-29 14:59:18 +05:30
Kovid Goyal
11724c8a5f
Terminal end of OSC 5522 read requests
2022-11-29 14:55:40 +05:30
Ferdinand Ratajczak
b6792a6d71
Add option to limit length of tab titles
2022-11-29 09:50:32 +01:00
Kovid Goyal
f0d61c2de9
Add debug output for key encoding state modifications
2022-11-29 11:20:19 +05:30
Kovid Goyal
35ae689818
Improve debug encoded key output
2022-11-29 08:06:07 +05:30
Kovid Goyal
1305199bdf
Output the bytes sent to the child in --debug-input
2022-11-29 07:56:06 +05:30
Kovid Goyal
c62c31f776
More mypy bugs
...
It cant handle putting a ClipboardTyple fielf on ReadRequest. SO just
use a bool as we really only have two types anyway.
2022-11-28 22:03:04 +05:30
Kovid Goyal
defef3f88c
Make mypy happy
2022-11-28 21:05:10 +05:30
Kovid Goyal
3ee9f723f2
The legacy osc 52 protocol now works with the new clipboard requests manager class
2022-11-28 20:53:56 +05:30
Kovid Goyal
a8725d6307
Start work on a new clipboard protocol to allow terminal programs to access more than just text/plain content from the clipboard
2022-11-28 14:23:03 +05:30
Kovid Goyal
4c72f92939
Wayland GNOME: Workaround for latest mutter release breaking full screen for semi-transparent kitty windows
...
Destroy the CSD surfaces when window goes full screen.
Fixes #5677
2022-11-28 14:19:13 +05:30
Kovid Goyal
2150f261ee
Merge branch 'ksi-fish-cwd' of https://github.com/page-down/kitty
2022-11-27 11:46:42 +05:30
pagedown
f720bc9fab
Shell integration: Report cwd on the fish prompt event
2022-11-27 14:07:19 +08:00
Kovid Goyal
d92f89e47f
ZSH integration: Report cwd on every new prompt draw
...
Handles the case of a command reporting a different cwd to the terminal.
2022-11-27 10:09:25 +05:30
Kovid Goyal
c54a4021ef
Update docs to use \e instead of \x1b for esc since we now support it
2022-11-27 10:06:04 +05:30
Kovid Goyal
375fa73826
Delegate kitty +kitten clipboard to kitty-tool
2022-11-26 20:09:43 +05:30
Kovid Goyal
5eb2142d70
Use a define rather than a generated file for wrapped kittens
2022-11-26 16:16:45 +05:30
Kovid Goyal
00223c5bba
Merge branch 'hostname' of https://github.com/page-down/kitty
2022-11-26 15:43:46 +05:30
Kovid Goyal
aa9080d375
Add a note about using single quotes when passing arguments with backslash escapes to send-text
...
One could of course also use double quotes and escape the backslash or
just escape the backslash but I dont think we need to explain shell
quoting fully here.
2022-11-26 15:38:22 +05:30
Kovid Goyal
8d45f5011b
Add support for the 🔗 role to prettify
2022-11-26 15:34:20 +05:30
Kovid Goyal
b3f096b03b
kitty shell: Fix pressing enter while cursor is not at end of line causes line to be truncated visually
2022-11-26 15:30:49 +05:30
Kovid Goyal
a721ffeb7d
Finish porting clipboard kitten to Go
2022-11-26 15:15:30 +05:30
pagedown
6a1b456bac
DRYer: Get hostname
2022-11-26 16:08:40 +08:00
Kovid Goyal
63a08dc6cc
kitty-tool @: Fix extra newline being printed when a command returns no response
2022-11-26 05:02:32 +05:30
Kovid Goyal
4969611bdb
Handle backslash escapes in :code: blocks
2022-11-25 22:03:13 +05:30
Kovid Goyal
5d3a9f2628
Use base64 for args in old rc code as well
2022-11-25 21:12:59 +05:30
Kovid Goyal
15a7aeff4d
Fix kitty-tool @ send-text not processing ANSI escapes
2022-11-25 21:09:51 +05:30
Kovid Goyal
f9a22d0bc7
Port ANSI escape code parser to Go
2022-11-25 21:03:09 +05:30
Kovid Goyal
402c8b6803
Use ANSI C escapes rather than python string literals
2022-11-25 19:10:15 +05:30
Kovid Goyal
ac60715ee2
Merge branch 'docs' of https://github.com/page-down/kitty
2022-11-25 17:34:46 +05:30
Kovid Goyal
cfc6bd4da5
Native code implementation for expanding ANSI escape codes
2022-11-25 17:33:41 +05:30
Kovid Goyal
4d3f3b5e91
Start moving clipboard kitten to kitty-tool
2022-11-25 12:58:10 +05:30
pagedown
55b5a45e27
Docs: Fix missing backslashes
2022-11-25 12:03:34 +08:00
Kovid Goyal
fbce5e7524
Merge branch 'patch-1' of https://github.com/zeertzjq/kitty
2022-11-24 10:16:56 +05:30
zeertzjq
daeb1b6c50
Add note about Vim's support for kitty keyboard protocol
2022-11-24 11:30:40 +08:00
Kovid Goyal
8fb2c209a9
Query for existing assets and then delete
2022-11-23 07:53:14 +05:30
Kovid Goyal
2b676b63b1
sleep defaults to one second
2022-11-22 21:56:10 +05:30
Kovid Goyal
c0d06adcb5
New sleep action
...
useful in combine based mappings to make kitty sleep before executing the next action
2022-11-22 21:45:19 +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
4fc91dcc03
There should be no trailing space when completing directories for a file match based on patterns
2022-11-21 11:05:36 +05:30
Kovid Goyal
3c0667afd6
add some motivation for background_tint_gaps
2022-11-21 10:19:25 +05:30
Kovid Goyal
03dc24f913
Merge branch 'background-tint-gaps' of https://github.com/page-down/kitty
2022-11-21 10:17:36 +05:30
pagedown
73b5857916
Keep two blank lines between each version in the changelog
2022-11-21 12:21:13 +08:00
pagedown
08d74a6c56
Add an option to control background image tinting for window gaps
2022-11-21 12:21:06 +08:00
Kovid Goyal
4290a8f9ba
Change the Accept header to current github api recommedation
2022-11-20 07:22:00 +05:30
Kovid Goyal
c6dd6ccc68
Apparently github's deletion api is flakey, retry
2022-11-20 07:18:38 +05:30
Kovid Goyal
fd7cc66689
Increase wait timeout before retry
2022-11-20 07:15:31 +05:30
Kovid Goyal
1c19fc77f1
...
2022-11-20 06:55:22 +05:30
Kovid Goyal
4080a09748
More upload code cleanup
2022-11-19 11:31:43 +05:30
Kovid Goyal
b91eaa3b2a
Cleanup the asset upload code
2022-11-19 11:23:31 +05:30
Kovid Goyal
bdb25831a7
Merge branch 'refactor-cursor-shape' of https://github.com/page-down/kitty
2022-11-19 11:08:17 +05:30
pagedown
a131f9a82e
Refactor: Use a consistent name for beam cursor shape
2022-11-19 10:34:50 +08:00
Kovid Goyal
ffefd0f581
Cleanup previous PR
2022-11-18 10:42:06 +05:30
Kovid Goyal
43c0e0f586
Merge branch 'unicode' of https://github.com/page-down/kitty
2022-11-18 10:40:50 +05:30
pagedown
76669ad14d
Note the Unicode version in the generated files
...
Files generated from the same Unicode version will be consistent
regardless of the date they were built.
2022-11-18 13:01:32 +08:00
Kovid Goyal
a9bb341e43
Add an option to control max file size for edit-in-kitty
2022-11-18 10:24:38 +05:30
Kovid Goyal
0757fcc451
Dont fail on github responses without JSON payloads
2022-11-18 10:16:29 +05:30
Kovid Goyal
dd4051bfd5
Allow getting the exe name of the active foreground process in the tab title template
2022-11-17 22:06:06 +05:30
Kovid Goyal
a6dcbe9c1d
...
2022-11-17 20:51:01 +05:30
Kovid Goyal
efaf9faa38
Implement edit-in-kitty using kitty-tool
...
Fixes #5546
Fixes #5630
2022-11-17 20:48:20 +05:30
Kovid Goyal
36631ddc49
...
2022-11-17 20:25:35 +05:30
Kovid Goyal
e5e8cc72c6
Make the Unicode database version used available
2022-11-17 20:11:50 +05:30
Kovid Goyal
38547c9e7a
Documentation: distinguish between examples and default values for multi-valued options
2022-11-17 17:20:40 +05:30
Kovid Goyal
e00a5ce911
Merge branch 'master' of https://github.com/ppwwyyxx/kitty
2022-11-17 17:06:56 +05:30
Kovid Goyal
0af48a4d05
Start work on implementing edit-in-kitty in kitty-tool
2022-11-17 17:05:25 +05:30
Yuxin Wu
c0d80f9a47
[docs]: don't show config codeblocks that only has a name
2022-11-17 00:05:50 -08:00
Kovid Goyal
d2dabc7d57
...
2022-11-17 11:10:17 +05:30
Kovid Goyal
81db5eb82f
Use nightly to get kitty-tool until 0.27 is released
2022-11-17 11:05:46 +05:30
Kovid Goyal
1addfea261
Avoid an extra HTTP request to set the uploaded file description
...
Also delete partial asset when receiving 502 errors
2022-11-17 10:44:52 +05:30
Kovid Goyal
e5be31ee14
build in non-interactive mode while publishing
2022-11-17 10:27:53 +05:30
Kovid Goyal
9cef714078
Merge branch 'pr-end-iter' of https://github.com/sergei-grechanik/kitty
2022-11-17 10:03:01 +05:30
Kovid Goyal
a5a4a1bf8f
Increase timeout in test
2022-11-17 10:02:44 +05:30
Kovid Goyal
281ad13f6b
Retry uploading file to Github
2022-11-17 08:45:26 +05:30
Kovid Goyal
5ad2ac259b
When truncating descriptions for completion truncate at word boundaries
2022-11-17 08:29:01 +05:30
Kovid Goyal
a2f022d166
Add support for the repeat escape code to TruncatetoVisualLength()
2022-11-17 08:17:11 +05:30
Sergei Grechanik
4df6c172a3
Define END_ITER to prevent brace imbalance
...
Otherwise some editors/plugins get confused
2022-11-16 09:54:49 -08:00
Kovid Goyal
9db1d581f7
DRYer
2022-11-16 22:37:27 +05:30
Kovid Goyal
b3bc5a5565
...
2022-11-16 22:35:59 +05:30
Kovid Goyal
fc20e8d04b
Fix spurious EOF error when select for reading from the tty fails with a temporary error
2022-11-16 22:32:35 +05:30
Kovid Goyal
86af1d5c16
Wrap EOF errors when doing terminal I/O
2022-11-16 22:23:00 +05:30
Kovid Goyal
d8574f8f85
Fix another bug in readline cursor position tracking
2022-11-16 21:28:36 +05:30
Kovid Goyal
bdd04f37d6
Better error message for kitty shell when running unknown command
2022-11-16 20:53:08 +05:30
Kovid Goyal
a4e43b3925
Use a pager for the help interactive command as well
2022-11-16 20:44:13 +05:30
Kovid Goyal
5e880b92f5
Ensure active hyperlink is cleared when truncating output for completion descriptions
2022-11-16 20:32:42 +05:30
Kovid Goyal
d4c103e53e
zsh breaks when there are escape codes in completion descriptions
2022-11-16 19:32:16 +05:30
Kovid Goyal
3e4df7d812
...
2022-11-16 19:06:22 +05:30
Kovid Goyal
3b18f90319
Merge branch 'completion' of https://github.com/page-down/kitty
2022-11-16 19:05:58 +05:30
Kovid Goyal
e31587ec1e
Ensure auto-generated entries such as --help are present for completion by calling Validate()
2022-11-16 18:05:27 +05:30
pagedown
5dc97af4d5
Add completion for kitty +list-fonts
2022-11-16 20:23:58 +08:00
Kovid Goyal
81916d0f02
Finish implementation of update-self
2022-11-16 17:44:21 +05:30
Kovid Goyal
ae93d95bbe
Get progress bar rendering working
2022-11-16 16:35:15 +05:30
Kovid Goyal
dd1fcf6855
Support the repeat prev char escape code when calculating the width of a string
2022-11-16 16:25:16 +05:30
Kovid Goyal
4b05822474
Merge branch 'ksi-completion-fish' of https://github.com/page-down/kitty
2022-11-16 14:00:28 +05:30
Kovid Goyal
337f1fad3f
fix double signatures
2022-11-16 13:45:27 +05:30
Kovid Goyal
463c9debe7
More work on update-self
2022-11-16 13:41:58 +05:30
pagedown
9225919112
Fix completion for fish
2022-11-16 16:03:07 +08:00
Kovid Goyal
e70c021371
Some basic TUI widgets ported to Go
2022-11-16 12:48:47 +05:30
Kovid Goyal
f3b3d6c0ef
Workaround for mypy bug
2022-11-15 22:47:53 +05:30
Kovid Goyal
0c0b9e6b9c
Fix deadlock in update-self
2022-11-15 22:33:23 +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
d54fe3c16a
Start work on a command to self update kitty-tool
2022-11-15 21:29:11 +05:30
Kovid Goyal
36dd5b2d00
More minor loop API additions
2022-11-15 21:00:19 +05:30
Kovid Goyal
87108a18ef
Add a callback for wakeups
2022-11-15 18:01:21 +05:30
Kovid Goyal
234274c1df
...
2022-11-15 16:54:14 +05:30
Kovid Goyal
b42677b343
Utility function to download a URL to a file path with progress reporting
2022-11-15 16:53:43 +05:30
Kovid Goyal
c03af4d294
Build static binaries on CI
2022-11-15 15:07:33 +05:30
Kovid Goyal
8d12e60f62
Set a flag available at runtime when cross compiling kitty-tool
2022-11-15 15:04:28 +05:30
Kovid Goyal
5a71b8c209
Merge branch 'macos-custom-icon' of https://github.com/page-down/kitty
2022-11-15 13:28:03 +05:30
Kovid Goyal
16775c5539
ssh kitten: Add a kitty-tool wrapper script to auto-download and use kitty-tool
...
Needs testing.
2022-11-15 13:26:48 +05:30
pagedown
8b8263d0ff
macOS: Failure to set custom app icon should not prevent launch
...
When running `kitty/launcher/kitty` and no bundle path is provided,
the icon of `kitty/launcher/kitty.app` should be changed instead of
the `launcher` folder.
2022-11-15 15:21:40 +08:00
Kovid Goyal
9ddd7d070e
Add a note to changelog about kitty @ speed improvements
2022-11-15 12:05:59 +05:30
Kovid Goyal
780d5400cb
Use full kitty-tool exe name in github description
2022-11-15 12:01:55 +05:30
Kovid Goyal
63d7b2a80b
Shutdown macOS build VM after building
2022-11-15 11:32:34 +05:30
Kovid Goyal
1958d67847
Sign kitty-tool on macOS
2022-11-15 11:32:12 +05:30
Kovid Goyal
737919505d
Update docs to mention kitty-tool
2022-11-14 20:58:24 +05:30
Kovid Goyal
d60ecfa8a6
Install go 1.18 for codeql build
2022-11-14 20:35:41 +05:30
Kovid Goyal
e3b22a87e4
Upload static kitty-tool builds when publishing
2022-11-14 17:07:32 +05:30
Kovid Goyal
c7d47a59f1
When running kitty-tool without arguments show usage
2022-11-14 16:36:05 +05:30
Kovid Goyal
7eae176b88
Code to build static versions of kitty-tool
2022-11-14 16:27:19 +05:30
Kovid Goyal
9361c62a1c
Linux: Use a separate thread to play the beep sound
...
This is because on misconfigured systems canberra hangs while queueing a
sound to play. And these misconfigured systems are quite common in
Linux-land. See for example #5646
Sigh. Even playing a simple sound is failure prone on Linux.
2022-11-14 15:42:09 +05:30
Kovid Goyal
018811c96c
Remove unused code
...
Completion and remote control have moved into kitty-tool
2022-11-14 15:42:09 +05:30
Kovid Goyal
129646c199
Use kitty-tool for all kitty @ incovations
2022-11-14 15:42:09 +05:30
Kovid Goyal
1881f4582e
...
2022-11-14 15:42:09 +05:30
Kovid Goyal
a5d05a2954
...
2022-11-14 15:42:09 +05:30
Kovid Goyal
59b43ee844
prettify :option:--xyz> better
2022-11-14 15:42:09 +05:30
Kovid Goyal
29bde6c72c
Improve formatting of completion entries with descriptions
2022-11-14 15:42:09 +05:30
Kovid Goyal
a7ce642a00
Fix rendering in cells
2022-11-14 15:42:08 +05:30
Kovid Goyal
723a9c91b5
Get completion basically working
2022-11-14 15:42:08 +05:30
Kovid Goyal
9e2c96653f
More work on readline completion
2022-11-14 15:42:08 +05:30
Kovid Goyal
4974219e0f
Add function to shlex for completion
...
Also remove the google header since we have diverged from
the original a fair bit. Add a link to the original for credit.
2022-11-14 15:42:08 +05:30
Kovid Goyal
a4de4b7c6f
Report stream start position for tokens
2022-11-14 15:42:08 +05:30
Kovid Goyal
eae4899df4
Use a string builder instead of appending to a slice
2022-11-14 15:42:08 +05:30
Kovid Goyal
87b4800fdf
Get rid of comment parsing from shlex
...
POSIX does not define comments
2022-11-14 15:42:08 +05:30
Kovid Goyal
64156fd6e6
Have the shlex tokenizer return space tokens as well
2022-11-14 15:42:08 +05:30
Kovid Goyal
1485981b11
Have the shlex tokenizer track position in stream and return defined error types
2022-11-14 15:42:08 +05:30
Kovid Goyal
8d76cf8d32
Import the google shlex package as we need more sophisticated parsing
2022-11-14 15:42:08 +05:30
Kovid Goyal
7c23536bfe
Start work on readline completions
2022-11-14 15:42:08 +05:30
Kovid Goyal
f919efcd42
Move basic multi key shortcut handling into its own package
2022-11-14 15:42:08 +05:30
Kovid Goyal
388e47a2df
DRYer
2022-11-14 15:42:08 +05:30
Kovid Goyal
dc787a6529
Allow pretty printing members of the Action enum
2022-11-14 15:42:08 +05:30
Kovid Goyal
cfb6d93dc0
Move cursor to end of input when traversing history list
2022-11-14 15:42:08 +05:30
Kovid Goyal
1523fef000
tests for history searching
2022-11-14 15:42:08 +05:30
Kovid Goyal
31dcb13836
cursor_y should be zero when resetting
2022-11-14 15:42:07 +05:30
Kovid Goyal
0c82832356
more work on history search
2022-11-14 15:42:07 +05:30
Kovid Goyal
ffea66357a
Start work on incremental history search
2022-11-14 15:42:07 +05:30
Kovid Goyal
6b48624b81
Reset keyboard state when resetting text
2022-11-14 15:42:07 +05:30
Kovid Goyal
5a425ccaad
Implement number args for repeats
2022-11-14 15:42:07 +05:30
Kovid Goyal
2f2dbfb45f
Cleanup prompt handling
2022-11-14 15:42:07 +05:30
Kovid Goyal
13a266aa42
Map ctrl+c to abort the current line
2022-11-14 15:42:07 +05:30
Kovid Goyal
67b12159f4
make clean should also clean go caches
2022-11-14 15:42:07 +05:30
Kovid Goyal
8ad55f7562
Add some tests for history
2022-11-14 15:42:07 +05:30
Kovid Goyal
e1ab2383b3
Add basic history operations
2022-11-14 15:42:07 +05:30
Kovid Goyal
f77d07259a
Fix mutable default value in dataclass
2022-11-14 15:42:07 +05:30
Kovid Goyal
2e07f90baf
...
2022-11-14 15:42:07 +05:30
Kovid Goyal
8574e136cd
Store cwd in history
2022-11-14 15:42:07 +05:30
Kovid Goyal
c8e8cb5ad5
Add some tests for yanking
2022-11-14 15:42:07 +05:30
Kovid Goyal
f127523ae9
Get rid of the unneccessary swap on first configure
...
Instead use the new flag to indicate the surface should not be committed
till the next swap.
2022-11-14 15:42:07 +05:30
Kovid Goyal
22f7145e34
Add yank actions
2022-11-14 15:42:07 +05:30
Kovid Goyal
1f115870bb
Need to install x11-xcb-dev explicitly in jammy
2022-11-14 15:42:06 +05:30
Kovid Goyal
3237db00fc
Implement word killing actions
2022-11-14 15:42:06 +05:30
Kovid Goyal
ea583f60b3
Start work on kill ring
2022-11-14 15:42:06 +05:30
Kovid Goyal
b7816d26be
Implement clear screen c-l binding
2022-11-14 15:42:06 +05:30
Kovid Goyal
19bf07abd9
Use the more efficient cell iterator api for single char horizontal cursor movement as well
2022-11-14 15:42:06 +05:30
Kovid Goyal
a008c627e3
Implement bindings for moving by simple word
2022-11-14 15:42:06 +05:30
Kovid Goyal
0068ae8f66
An easy to use iterator to iterate over the cells in a string
2022-11-14 15:42:06 +05:30
Kovid Goyal
5436408463
Fix the escape code parser not preserving complete utf-8 state between calls to ParseBytes()
...
Also allow it to be driven byte-by-byte
2022-11-14 15:42:06 +05:30
Kovid Goyal
d260d2f480
Add some test for vertical movement
2022-11-14 15:42:06 +05:30
Kovid Goyal
00ef9c1955
Implement vertical cursor movement
2022-11-14 15:42:06 +05:30
Kovid Goyal
5509673ff3
More tests
2022-11-14 15:42:06 +05:30
Kovid Goyal
3c4a411cad
Rewrite the readline redraw code to make the screen lines explicit
2022-11-14 15:42:06 +05:30
Kovid Goyal
f945ef8ee8
handle ctrl-c better when interrupting go test
2022-11-14 15:42:06 +05:30
Kovid Goyal
260249491d
Avoid Querying screen size on every resize
2022-11-14 15:42:05 +05:30
Kovid Goyal
595a78c956
DRYer
2022-11-14 15:42:05 +05:30
Kovid Goyal
cbbf8a2d34
Port output of active window and tab ids at shell startup
2022-11-14 15:42:05 +05:30
Kovid Goyal
88567f69b2
Start work on history support for readline
2022-11-14 15:42:05 +05:30
Kovid Goyal
fe91af5e09
Go stdlib doesnt even have a way to lock files
2022-11-14 15:42:05 +05:30
Kovid Goyal
5e2255591c
Dont send invalid kitty-cmd escape code over tty
2022-11-14 15:42:05 +05:30
Kovid Goyal
01969cae1a
More useful PARSE ERROR msg for unknown @ commands
2022-11-14 15:42:05 +05:30
Kovid Goyal
b89dfc6d1d
Actually run the remote control commands from the shell
2022-11-14 15:42:05 +05:30
Kovid Goyal
59edf1d349
Code to show help
2022-11-14 15:42:05 +05:30
Kovid Goyal
9419fbc77c
Fix rendering when line wraps
2022-11-14 15:42:05 +05:30
Kovid Goyal
d27cf045e5
...
2022-11-14 15:42:05 +05:30
Kovid Goyal
f7d44330a2
remove unused code
2022-11-14 15:42:05 +05:30
Kovid Goyal
834385baff
Improve performance when pasting large amounts of text into readline by not redrawing on every char
2022-11-14 15:42:05 +05:30
Kovid Goyal
c0f17c279e
Add a generic ring buffer
...
Go's stdlib is very anemic
2022-11-14 15:42:05 +05:30
Kovid Goyal
7264bea8c9
Fix selector incorrectly marking fd as ready on EINTR
2022-11-14 15:42:04 +05:30
Kovid Goyal
1058c999c8
...
2022-11-14 15:42:04 +05:30
Kovid Goyal
bf7dd1c369
Fix multiline prompts
2022-11-14 15:42:04 +05:30
Kovid Goyal
936a7a5f97
Dont write escape code for zero movement
2022-11-14 15:42:04 +05:30
Kovid Goyal
350060e0f6
...
2022-11-14 15:42:04 +05:30
Kovid Goyal
430bd23870
Fix decoding of letter trailer CSI key event
2022-11-14 15:42:04 +05:30
Kovid Goyal
9f2b2eac85
More work on shell
2022-11-14 15:42:04 +05:30
Kovid Goyal
fd36435262
Add some default readline bindings
2022-11-14 15:42:04 +05:30
Kovid Goyal
27418eed88
Beep when action could not be performed
2022-11-14 15:42:04 +05:30
Kovid Goyal
48f1690913
Wire up key event handling
2022-11-14 15:42:04 +05:30
Kovid Goyal
eff239a195
Code to erase character ranges
2022-11-14 15:42:04 +05:30
Kovid Goyal
5e5cae8391
Code to move cursor right
2022-11-14 15:42:04 +05:30
Kovid Goyal
57310a772a
Code to move cursor left
2022-11-14 15:42:04 +05:30
Kovid Goyal
066465bce7
Some tests for add_text
2022-11-14 15:42:04 +05:30
Kovid Goyal
1792c2268a
Start writing tests for readline internal functions
2022-11-14 15:42:04 +05:30
Kovid Goyal
32059dba7e
More work on readline
2022-11-14 15:42:03 +05:30
Kovid Goyal
c8296a44eb
More work on readline
2022-11-14 15:42:03 +05:30
Kovid Goyal
565526624f
Start work on porting kitty shell to Go
2022-11-14 15:42:03 +05:30
Kovid Goyal
f57832f501
Fix spurious rebuilds of generated go code
2022-11-14 15:42:03 +05:30
Kovid Goyal
e536ef7844
Suggestions for sub command names as well
2022-11-14 15:42:03 +05:30
Kovid Goyal
0dab006733
Allow un-ambiguous prefixes for command names
2022-11-14 15:42:03 +05:30
Kovid Goyal
75ead358a2
Show suggestions for options based on levenshtein distance
2022-11-14 15:42:03 +05:30
Kovid Goyal
654bd23109
DRYer
2022-11-14 15:42:03 +05:30
Kovid Goyal
6b04c42730
update wcswidth go version to match unicode 15 update in master
2022-11-14 15:42:03 +05:30
Kovid Goyal
8f5302a650
Hook up kitty-tool completions with shell integration
2022-11-14 15:42:03 +05:30
Kovid Goyal
74b1cac344
Allow using unabiguous long option prefixes
2022-11-14 15:42:03 +05:30
Kovid Goyal
7d5849cc17
...
2022-11-14 15:42:03 +05:30
Kovid Goyal
d2a2af9672
Add completion for kitty-tool
2022-11-14 15:42:02 +05:30
Kovid Goyal
2633356842
No need to use a map
2022-11-14 15:42:02 +05:30
Kovid Goyal
3bd4fd999a
All completion tests pass again
2022-11-14 15:42:02 +05:30
Kovid Goyal
262e2fb7a3
Various fixes from the completion merge
2022-11-14 15:42:02 +05:30
Kovid Goyal
97716fea8b
More work on merging completions with parse tree
2022-11-14 15:42:02 +05:30
Kovid Goyal
bf74413c1f
Work on merging completion tree with parse tree
2022-11-14 15:42:02 +05:30
Kovid Goyal
79ca0408e7
split up types.go
2022-11-14 15:42:02 +05:30
Kovid Goyal
97acb60981
Move completion package into cli
2022-11-14 15:42:02 +05:30
Kovid Goyal
3662efdf80
Nicer handling of python for typecheck
2022-11-14 15:42:02 +05:30
Kovid Goyal
e608a945de
Output version information at bottom of help
2022-11-14 15:42:02 +05:30
Kovid Goyal
5771bd0c01
Make adding subcommands a bit nicer
2022-11-14 15:42:02 +05:30
Kovid Goyal
4396dede85
Get rid of the cobra dependency
2022-11-14 15:42:02 +05:30
Kovid Goyal
cbc569af64
Remove no_response from json specs
2022-11-14 15:42:02 +05:30
Kovid Goyal
90c1745976
Fix parsing of list options
2022-11-14 15:42:02 +05:30
Kovid Goyal
c4ab964d09
Tests for CLI parsing
2022-11-14 15:42:02 +05:30
Kovid Goyal
04022ed363
Various fixes to CLI parsing
2022-11-14 15:42:02 +05:30
Kovid Goyal
79cfc1e70a
Move kitty-tool __complete__ to use the new CLI framework
2022-11-14 15:42:01 +05:30
Kovid Goyal
e7c14c78d0
Work on outputting help for commands
2022-11-14 15:42:01 +05:30
Kovid Goyal
cb2389efa5
Use the standard library deque
...
Drops a dependency
2022-11-14 15:42:01 +05:30
Kovid Goyal
49f5f25fb9
Run tests in the writeable src dir as the generated go files are present there
2022-11-14 15:42:01 +05:30
Kovid Goyal
ff4353b209
...
2022-11-14 15:42:01 +05:30
Kovid Goyal
c07dc220a8
Fix frozen builds
2022-11-14 15:42:01 +05:30
Kovid Goyal
4316018966
...
2022-11-14 15:42:01 +05:30
Kovid Goyal
a0bf6177e2
Use a LRUCache rather than an Unbounded one
2022-11-14 15:42:01 +05:30
Kovid Goyal
3078b9074a
Also report submatch positions
2022-11-14 15:42:01 +05:30
Kovid Goyal
dffb87ced9
Make the cache re-useable
2022-11-14 15:42:01 +05:30
Kovid Goyal
4adea5b7fe
Make ReplaceAll re-useable
2022-11-14 15:42:01 +05:30
Kovid Goyal
317b108497
Allow using :role:'payload' in addition to :role:payload as the former can be used in Go `` string literals
2022-11-14 15:42:01 +05:30
Kovid Goyal
7c41737370
Couple more errors found by linting
2022-11-14 15:42:01 +05:30
Kovid Goyal
4b6bae576d
configure staticcheck
2022-11-14 15:42:01 +05:30
Kovid Goyal
8221713995
Allow defining options using a struct
2022-11-14 15:42:01 +05:30
Kovid Goyal
ef49634353
Fix some issues reported by staticcheck
2022-11-14 15:42:01 +05:30
Kovid Goyal
d6f42a11d7
Run go vet on CI
2022-11-14 15:42:00 +05:30
Kovid Goyal
800dbf1f4d
extra message when tests have failed
2022-11-14 15:42:00 +05:30
Kovid Goyal
b1e08adbce
Utility function to sort with key
2022-11-14 15:42:00 +05:30
Kovid Goyal
e7f38929d9
DRYer
2022-11-14 15:42:00 +05:30
Kovid Goyal
d0e133885c
Install Go 1.18 on CI
2022-11-14 15:42:00 +05:30
Kovid Goyal
2cacd7a64a
get rid of interface{} since we now require Go 1.18
2022-11-14 15:42:00 +05:30
Kovid Goyal
a44c89504b
More convenient interface for sorting
2022-11-14 15:42:00 +05:30
Kovid Goyal
8807f6d539
Code to get exe name for usage message
2022-11-14 15:42:00 +05:30
Kovid Goyal
2f83bbdc85
command validation
2022-11-14 15:42:00 +05:30
Kovid Goyal
41a841c83d
Validate string slice fields
2022-11-14 15:42:00 +05:30
Kovid Goyal
0cf8876f8a
Validate count struct fields
2022-11-14 15:42:00 +05:30
Kovid Goyal
a3a89b3e21
More efficient multi line scanning
2022-11-14 15:42:00 +05:30
Kovid Goyal
2ddbe2a2bc
Automatically camel-case destination
2022-11-14 15:42:00 +05:30
Kovid Goyal
707963b694
Code to conveniently read option values into a struct
2022-11-14 15:42:00 +05:30
Kovid Goyal
1811949706
Implement cloning of commands
2022-11-14 15:42:00 +05:30
Kovid Goyal
bc38bd75fd
Start work on getting rid of the cobra dependency
...
Command line parsing is easy and I can do it better.
2022-11-14 15:42:00 +05:30
Kovid Goyal
54ec486d3a
Now completion for hyperlinked_grep is automatic thanks to delegation
...
Also fix delegation for zsh when the command being completed differs
from the current command.
2022-11-14 15:42:00 +05:30
Kovid Goyal
5666b1b0fd
Implement completion for fish
2022-11-14 15:41:59 +05:30
Kovid Goyal
ef9b765f81
Dont count bash's idiotic option equals as arguments
2022-11-14 15:41:59 +05:30
Kovid Goyal
a2bb360eec
Dont output escape strings in descriptions
2022-11-14 15:41:59 +05:30
Kovid Goyal
e3b8de1ac0
Update test for new exe search
2022-11-14 15:41:59 +05:30
Kovid Goyal
4cbd2a0ee0
...
2022-11-14 15:41:59 +05:30
Kovid Goyal
7cf9b21fc0
Show local executables for kityt command completion even without ./
2022-11-14 15:41:59 +05:30
Kovid Goyal
454c2e32e7
...
2022-11-14 15:41:59 +05:30
Kovid Goyal
53dc079c10
Use compopt to manage files and spaces
2022-11-14 15:41:59 +05:30
Kovid Goyal
08c697e99a
Get delegate based completion working for bash
2022-11-14 15:41:59 +05:30
Kovid Goyal
1dce092ac0
Add trailing spaces for bash completion
2022-11-14 15:41:59 +05:30
Kovid Goyal
24c2d27eea
handle bash splitting completion cmdline on equals
2022-11-14 15:41:59 +05:30
Kovid Goyal
b04b483b3f
Remove common prefix for bash as well
2022-11-14 15:41:59 +05:30
Kovid Goyal
a7c997c6ef
Add a debug function to print to parent kitty stdout
2022-11-14 15:41:59 +05:30
Kovid Goyal
266e51310c
Basic BASH completion
2022-11-14 15:41:59 +05:30
Kovid Goyal
928a4db817
Implement delegate based completion fof the ssh and hyperlinked_grep kittens
2022-11-14 15:41:59 +05:30
Kovid Goyal
fd631bf402
Delegate based completion for @launch args
2022-11-14 15:41:59 +05:30
Kovid Goyal
dc403156a9
Delegate based completion for kitty cmd
2022-11-14 15:41:59 +05:30
Kovid Goyal
2cc359ccc8
Get zsh completion working apart from delegation
2022-11-14 15:41:58 +05:30
Kovid Goyal
cbbda23e01
Utility code to find longest common prefix/suffix and to quote strings for various shells
2022-11-14 15:41:58 +05:30
Kovid Goyal
1ff4f2df4f
Refactor the CLI markup code to make it re-useable
2022-11-14 15:41:58 +05:30
Kovid Goyal
8796168469
Port code to truncate strings to visual width to Go
2022-11-14 15:41:58 +05:30
Kovid Goyal
d16ad40bbf
avoid extra string copy in Stringwidth
2022-11-14 15:41:58 +05:30
Kovid Goyal
5c0858d6b7
Start work on zsh completion serialization
2022-11-14 15:41:58 +05:30
Kovid Goyal
a32a8d096d
Allow commands to customize argument parsing
2022-11-14 15:41:58 +05:30
Kovid Goyal
67f556bd7c
Add completion for the launch wrappers
2022-11-14 15:41:58 +05:30
Kovid Goyal
7737369fc9
Add completion for the kittens
2022-11-14 15:41:58 +05:30
Kovid Goyal
25a7ec9a07
Extra completion for some kitty options
2022-11-14 15:41:58 +05:30
Kovid Goyal
c2a2b4c087
Add various special purpose entry points
2022-11-14 15:41:58 +05:30
Kovid Goyal
3bf20594b7
Wire up completion for rc command options
2022-11-14 15:41:58 +05:30
Kovid Goyal
3a8bab90dc
Get rid of WordPrefix
2022-11-14 15:41:58 +05:30
Kovid Goyal
0ff2446a1a
More completion work
2022-11-14 15:41:58 +05:30
Kovid Goyal
946d44c43f
Implement completespec in go
2022-11-14 15:41:58 +05:30
Kovid Goyal
26d4f5bcc9
Use the new completionspec for rc cmds
2022-11-14 15:41:58 +05:30
Kovid Goyal
d84efe105c
...
2022-11-14 15:41:58 +05:30
Kovid Goyal
f657e6e916
Allow using a base directory other than the cwd when completing files
2022-11-14 15:41:57 +05:30
Kovid Goyal
c5afceb4cb
Basic completion for options
2022-11-14 15:41:57 +05:30
Kovid Goyal
18c3e46ac6
When completing on patterns exclude directories that only contain files that dont match
2022-11-14 15:41:57 +05:30
Kovid Goyal
3c29ce936b
Dont recurse for file completion
...
We could potentially end up recursing over the entire file system. And
for completion we only present the candidates in the immediate directory
anyway.
2022-11-14 15:41:57 +05:30
Kovid Goyal
c9d986f9a8
args completion for rc commands
2022-11-14 15:41:57 +05:30
Kovid Goyal
d4b67f3b6a
...
2022-11-14 15:41:57 +05:30
Kovid Goyal
6faa908733
And more corner cases
2022-11-14 15:41:57 +05:30
Kovid Goyal
ced741b247
More corner cases
2022-11-14 15:41:57 +05:30
Kovid Goyal
c47ccc8a59
...
2022-11-14 15:41:57 +05:30
Kovid Goyal
3326e9ef49
Move code to walk with symlinks to the utils module
2022-11-14 15:41:57 +05:30
Kovid Goyal
134fce8507
Allow completing paths with ~ prefix
2022-11-14 15:41:57 +05:30
Kovid Goyal
5d89a6c3c4
Work on completion of file args
2022-11-14 15:41:57 +05:30
Kovid Goyal
833e9625f9
Add a generated comment in *_generated.go in the style used by go generate
2022-11-14 15:41:57 +05:30
Kovid Goyal
21b572d69a
Allow building kitty-tool as a static binary
2022-11-14 15:41:57 +05:30
Kovid Goyal
12d9787d0e
update go deps
2022-11-14 15:41:57 +05:30
Kovid Goyal
8c6b391eda
...
2022-11-14 15:41:57 +05:30
Kovid Goyal
8c2e435793
Code to complete executables in PATH
2022-11-14 15:41:57 +05:30
Kovid Goyal
10cf7f06c6
Code to get file/dir completion candidates for a prefix
2022-11-14 15:41:56 +05:30
Kovid Goyal
4575a14873
work on framework for testing completion
2022-11-14 15:41:56 +05:30
Kovid Goyal
d679ea2cdf
Allow generating completions for multiple command lines for more efficient testing
2022-11-14 15:41:56 +05:30
Kovid Goyal
54378de52b
More work on command completion
2022-11-14 15:41:56 +05:30
Kovid Goyal
63287e4115
More work on completions
2022-11-14 15:41:56 +05:30
Kovid Goyal
d0efe00449
Use replace_if_needed() for at commands
2022-11-14 15:41:56 +05:30
Kovid Goyal
d703cb51cd
...
2022-11-14 15:41:56 +05:30
Kovid Goyal
005a9c7090
Add an entry point for the completion tool
2022-11-14 15:41:56 +05:30
Kovid Goyal
f4de6d2a10
More work on completions
2022-11-14 15:41:56 +05:30
Kovid Goyal
e60b331152
start work on porting completion to Go
2022-11-14 15:41:56 +05:30
Kovid Goyal
3d79eb5730
more tests for indent and wrap
2022-11-14 15:41:56 +05:30
Kovid Goyal
af7f4e97cf
More work on the new formatter
2022-11-14 15:41:56 +05:30
Kovid Goyal
aad8cb3d1e
Use the new formatter for CLI help output
2022-11-14 15:41:56 +05:30
Kovid Goyal
40a9ab8929
Allow ignoring lines containing a sentinel
2022-11-14 15:41:56 +05:30
Kovid Goyal
e433b90297
Dont drop trailing escape codes when stripping trailing whitespace
2022-11-14 15:41:56 +05:30
Kovid Goyal
1ac7d9c10d
Basic wrap is working
2022-11-14 15:41:56 +05:30
Kovid Goyal
ef5f0025e1
Start work on more sophisticated indent+wrap implementation
2022-11-14 15:41:56 +05:30
Kovid Goyal
32804f01b2
Allow parsing strings with escape code parser
2022-11-14 15:41:55 +05:30
Kovid Goyal
7ecc1b7950
Remove markup from ref_hyperlink text
2022-11-14 15:41:55 +05:30
Kovid Goyal
a7f6105393
Use Unsafe rather than Dangerous to be consistent
2022-11-14 15:41:55 +05:30
Kovid Goyal
081390b5a2
Utility functions to allow using string/[]byte interchangeably without copies
2022-11-14 15:41:55 +05:30
Kovid Goyal
61094c6bfb
Add strikethrough formatting
2022-11-14 15:41:55 +05:30
Kovid Goyal
6672904e64
Fix spurious error message when setting image to none
2022-11-14 15:41:55 +05:30
Kovid Goyal
905c4d641c
Allow using many image formats in RC commands
2022-11-14 15:41:55 +05:30
Kovid Goyal
fa7a6dfd4a
Implement stdin echo loop for socket i/o as well
2022-11-14 15:41:55 +05:30
Kovid Goyal
cb452ba9fc
Implement sen text from stdin for the tty backend
2022-11-14 15:41:55 +05:30
Kovid Goyal
85169c989f
...
2022-11-14 15:41:55 +05:30
Kovid Goyal
e8a321d097
Port code to serialize key events as CSI to Go
2022-11-14 15:41:55 +05:30
Kovid Goyal
3a198833da
Simplify escape code wrapping
2022-11-14 15:41:55 +05:30
Kovid Goyal
ea8fb10c05
Password input: Handle SIGTSTP
2022-11-14 15:41:55 +05:30
Kovid Goyal
67115530b4
Make the loop API a thin wrapper around internal methods
2022-11-14 15:41:55 +05:30
Kovid Goyal
7325921070
Allow cancel async commands without auth
2022-11-14 15:41:55 +05:30
Kovid Goyal
f86ce03d3b
Fix set-colors
2022-11-14 15:41:55 +05:30
Kovid Goyal
5cf10023c9
Nicer API for setting loop options
2022-11-14 15:41:55 +05:30
Kovid Goyal
93d08011f1
...
2022-11-14 15:41:54 +05:30
Kovid Goyal
7f77f7e408
Only send cancel async if there is an async id
2022-11-14 15:41:54 +05:30
Kovid Goyal
65c3630099
send_text other than from stdin works
2022-11-14 15:41:54 +05:30
Kovid Goyal
457aab7c41
Simplify timer removal
2022-11-14 15:41:54 +05:30
Kovid Goyal
dcec926590
Do not allow adding timers before loop is run
2022-11-14 15:41:54 +05:30
Kovid Goyal
0a2455c8be
Get scroll_window working
2022-11-14 15:41:54 +05:30
Kovid Goyal
bacca88213
Get set_font_size working
2022-11-14 15:41:54 +05:30
Kovid Goyal
bd1b3d9f6e
Implement streaming mode for socket IO
2022-11-14 15:41:54 +05:30
Kovid Goyal
364533b1ed
Work on supporting streaming remote commands with passwords
2022-11-14 15:41:54 +05:30
Kovid Goyal
d7985689c9
Allow debugprintln to controlling tty easily
2022-11-14 15:41:54 +05:30
Kovid Goyal
6d6bba4a4c
debugprintln should be in-band for the loop
2022-11-14 15:41:54 +05:30
Kovid Goyal
5cc5759f3e
flush_pending_writes must be non-blocking
2022-11-14 15:41:54 +05:30
Kovid Goyal
a388a658ce
Fix payload update code in multi send commands
2022-11-14 15:41:54 +05:30
Kovid Goyal
b5e2871aa0
Remove not needed chunking code
2022-11-14 15:41:54 +05:30
Kovid Goyal
192eccc6cc
More work on porting rc commands
2022-11-14 15:41:54 +05:30
Kovid Goyal
a4b2e2a196
more work on porting command parsing to Go
2022-11-14 15:41:54 +05:30
Kovid Goyal
6f4968305a
more work on porting rc command parsing to Go
2022-11-14 15:41:54 +05:30
Kovid Goyal
79c8862d4c
Work on conversion of args parsing to go code
2022-11-14 15:41:53 +05:30
Kovid Goyal
441e4edfb2
Also ensure kitty-tool bootstrap is executable
2022-11-14 15:41:53 +05:30
Kovid Goyal
ef71b071db
Automap a bunch of json fields from identically named options
2022-11-14 15:41:53 +05:30
Kovid Goyal
b33a684357
...
2022-11-14 15:41:53 +05:30
Kovid Goyal
43b35f6f4e
Move GoOption migration code to cli.py for re-use
2022-11-14 15:41:53 +05:30
Kovid Goyal
3b2c4561c2
Dont change the env for go tests
...
This prevents got test caching from working greatly increasing the time
for running a test
2022-11-14 15:41:53 +05:30
Kovid Goyal
e69b02ad46
...
2022-11-14 15:41:53 +05:30
Kovid Goyal
85b6053380
Run go tests in parallel
2022-11-14 15:41:53 +05:30
Kovid Goyal
249df69ac9
Use the new styling API for CLI infra
2022-11-14 15:41:53 +05:30
Kovid Goyal
4a4500d56b
Dont make urls part of styling, instead have a dedicated UrlFunc API
...
Since urls can potentially change a lot, caching them makes no sense
2022-11-14 15:41:53 +05:30
Kovid Goyal
be22f49012
Fix usage of numbered colors for underlines
2022-11-14 15:41:53 +05:30
Kovid Goyal
f9695a7947
Add url support to styling
2022-11-14 15:41:53 +05:30
Kovid Goyal
29d9b70f0c
More ansi styling tests
2022-11-14 15:41:53 +05:30
Kovid Goyal
42a8ca0842
Write some tests for the style wrapper
2022-11-14 15:41:53 +05:30
Kovid Goyal
91c61478dd
Start work on easily generating ANSI formatted strings
2022-11-14 15:41:53 +05:30
Kovid Goyal
fb482e28f6
...
2022-11-14 15:41:53 +05:30
Kovid Goyal
387333492b
Generate color names and table for Go
...
Also exclude generated files from gofmt checking
2022-11-14 15:41:53 +05:30
Kovid Goyal
9c58cb3f41
...
2022-11-14 15:41:52 +05:30
Kovid Goyal
b2e610f9b1
Implement socket I/O
2022-11-14 15:41:52 +05:30
Kovid Goyal
a960937095
Simplify serialization code and avoid extra copy
2022-11-14 15:41:52 +05:30
Kovid Goyal
0cda5d43a6
Fix final write detection
2022-11-14 15:41:52 +05:30
Kovid Goyal
a75d59643c
Use one less channel
2022-11-14 15:41:52 +05:30
Kovid Goyal
bf35817d73
No need to store most channels on self
2022-11-14 15:41:52 +05:30
Kovid Goyal
f103f8d5db
Create a in src symlink for kitty-tool as well
2022-11-14 15:41:52 +05:30
Kovid Goyal
b382587776
another attempt
2022-11-14 15:41:52 +05:30
Kovid Goyal
6fe0c8ba2f
dump tree
2022-11-14 15:41:52 +05:30
Kovid Goyal
7b2991de02
...
2022-11-14 15:41:52 +05:30
Kovid Goyal
1b90c03304
Refactor loop code into its own package
2022-11-14 15:41:52 +05:30
Kovid Goyal
0aa05b02e8
Cleanup
2022-11-14 15:41:52 +05:30
Kovid Goyal
5412a0126c
we generate more than just rc commands
2022-11-14 15:41:52 +05:30
Kovid Goyal
841b368021
DRYer
2022-11-14 15:41:52 +05:30
Kovid Goyal
b1f9139ca5
Use a fully random async_id rather than a uuid
2022-11-14 15:41:52 +05:30
Kovid Goyal
4a49c3940a
Switch to using goroutines rather than a select()
...
More complex code since now we have to synchronize between threads,
but a good way to teach myself more about goroutines.
2022-11-14 15:41:52 +05:30
Kovid Goyal
ee12349a50
Use Go's os.File this allows us to implement WriteString without using unsafe
2022-11-14 15:41:52 +05:30
Kovid Goyal
69c847a48f
Fix failing test
2022-11-14 15:41:51 +05:30
Kovid Goyal
03705cbec0
Fix transmission of async rc commands
2022-11-14 15:41:51 +05:30
Kovid Goyal
ff2ff9c04f
Port short uuid code to Go
2022-11-14 15:41:51 +05:30
Kovid Goyal
a22ba9f739
Fix failing test
2022-11-14 15:41:51 +05:30
Kovid Goyal
c86f8a698c
@ ls works phew
2022-11-14 15:41:51 +05:30
Kovid Goyal
fa4711bd04
Give the kill signal time to be delivered
2022-11-14 15:41:51 +05:30
Kovid Goyal
a939bbb3ec
...
2022-11-14 15:41:51 +05:30
Kovid Goyal
174bc25afb
Make timeout checking more efficient
2022-11-14 15:41:51 +05:30
Kovid Goyal
2ffba1c422
Work on implementing ttyio via TUI
2022-11-14 15:41:51 +05:30
Kovid Goyal
0913b64c6b
Dont vendor base85
2022-11-14 15:41:51 +05:30
Kovid Goyal
32e59257d2
Refactor io in preparation for using tui
2022-11-14 15:41:51 +05:30
Kovid Goyal
6f8c884bb5
Also handle SIGPIPE as the Go runtime does funky things with this signal
2022-11-14 15:41:51 +05:30
Kovid Goyal
80c5ac891d
Add license info to Go files
2022-11-14 15:41:51 +05:30
Kovid Goyal
ccb60687b6
Prefix names of cmd files
2022-11-14 15:41:51 +05:30
Kovid Goyal
6a2393299b
Add a write completed callback
2022-11-14 15:41:51 +05:30
Kovid Goyal
ab66b3f4c0
Add timer infra to the loop
2022-11-14 15:41:51 +05:30
Kovid Goyal
c8292d77f1
Re-use the escape code parser for wcswidth calculation
2022-11-14 15:41:51 +05:30
Kovid Goyal
7280c712d6
Move escape code parser into wcswidth package
2022-11-14 15:41:50 +05:30
Kovid Goyal
9be2247081
Dont use the syscall package
2022-11-14 15:41:50 +05:30
Kovid Goyal
e68b5fa504
Add callback for screen resize handling
2022-11-14 15:41:50 +05:30
Kovid Goyal
c2ef6c986b
Password input now works
2022-11-14 15:41:50 +05:30
Kovid Goyal
619fcb0681
Allow debug printing
2022-11-14 15:41:50 +05:30
Kovid Goyal
10a39d3757
Fix reset mode incorrectly setting mode instead
2022-11-14 15:41:50 +05:30
Kovid Goyal
d2a15a2009
Make using alternate screen the default
2022-11-14 15:41:50 +05:30
Kovid Goyal
235eb868b2
More misc fixes for TUI
2022-11-14 15:41:50 +05:30
Kovid Goyal
5703a3370e
Move wcswidth into its own package as it is very slow to build
2022-11-14 15:41:50 +05:30
Kovid Goyal
5dca2a1a25
Fix stringifying mods
2022-11-14 15:41:50 +05:30
Kovid Goyal
4b18b575cd
Misc fixes for TUI
2022-11-14 15:41:50 +05:30
Kovid Goyal
818f68ec53
Initialize various maps
2022-11-14 15:41:50 +05:30
Kovid Goyal
cd54fefa99
Ignore more types of temporary errors
2022-11-14 15:41:50 +05:30
Kovid Goyal
4ab5456ead
Less layering
2022-11-14 15:41:49 +05:30
Kovid Goyal
10d11bc749
Drop another dependency
2022-11-14 15:41:49 +05:30
Kovid Goyal
19ffbc6f3d
Implement wcswidth() for Go
2022-11-14 15:41:49 +05:30
Kovid Goyal
79b1af28b4
Fix errors reported by compiler
2022-11-14 15:41:49 +05:30
Kovid Goyal
05d768d8df
Generate a wcwidth for Go as well
2022-11-14 15:41:49 +05:30
Kovid Goyal
7bb310d3af
Port recent changes from cli.py to Go
2022-11-14 15:41:49 +05:30
Kovid Goyal
9d56f8eed2
Use TUI to build a nice password read control
2022-11-14 15:41:49 +05:30
Kovid Goyal
42a5129553
Wire up key handling
2022-11-14 15:41:49 +05:30
Kovid Goyal
d6ed20323b
Implement key event parsing and matching
2022-11-14 15:41:49 +05:30
Kovid Goyal
63fdbd3fa0
Start work on decoding key events in Go
2022-11-14 15:41:49 +05:30
Kovid Goyal
99fde8723a
Wire up the signal handlers
2022-11-14 15:41:49 +05:30
Kovid Goyal
526a331f47
Wire up a bunch of callbacks
2022-11-14 15:41:49 +05:30
Kovid Goyal
e18b6638bb
Allow propagating errors from the escape code handlers
2022-11-14 15:41:49 +05:30
Kovid Goyal
3c3e7b7f70
Start work on proper TUI support
2022-11-14 15:41:49 +05:30
Kovid Goyal
67f03621ae
Handle EINTR in IsTerminal
2022-11-14 15:41:49 +05:30
Kovid Goyal
10cef16210
DRYer
2022-11-14 15:41:49 +05:30
Kovid Goyal
6a79b450f7
Drop another dependency and get a better read password function
2022-11-14 15:41:48 +05:30
Kovid Goyal
eb4ee13f73
Drop another dependency
2022-11-14 15:41:48 +05:30
Kovid Goyal
cf287015de
...
2022-11-14 15:41:48 +05:30
Kovid Goyal
246277e7af
Refactor tty code into its own package
2022-11-14 15:41:48 +05:30
Kovid Goyal
13758e9600
Drop one dependency
2022-11-14 15:41:48 +05:30
Kovid Goyal
73e4deb1c2
Show suggestions based on levenshtein distance
2022-11-14 15:41:48 +05:30
Kovid Goyal
68d589826a
...
2022-11-14 15:41:48 +05:30
Kovid Goyal
7457746d65
Fix @command form not supporting global options
2022-11-14 15:41:48 +05:30
Kovid Goyal
eec8f04e93
fix reading from tty
2022-11-14 15:41:48 +05:30
Kovid Goyal
3a7d26a3ef
Work on reading command responses
2022-11-14 15:41:48 +05:30
Kovid Goyal
91b15d1a90
Fix incorrect err handling
2022-11-14 15:41:48 +05:30
Kovid Goyal
12b0f632bd
Allow OSC to be terminated by BEL
...
Also prevent changing streaming state unless in reset state
2022-11-14 15:41:48 +05:30
Kovid Goyal
84cb2638d6
Work on an escape code parser
2022-11-14 15:41:48 +05:30
Kovid Goyal
7eb6cb2407
Update script that counts lines of code
2022-11-14 15:41:48 +05:30
Kovid Goyal
ce3062cbde
UTF-8 decode/encode for Go
...
The builtin utf-8 package has semantics not suitable for us
2022-11-14 15:41:48 +05:30
Kovid Goyal
e599a2c87f
The stupid term package is not EINTR safe
2022-11-14 15:41:48 +05:30
Kovid Goyal
15e1f376a4
EINTR safe function to get tty size
2022-11-14 15:41:48 +05:30
Kovid Goyal
82d0bd9364
Use the term package to get tty size since it has a function for it
2022-11-14 15:41:47 +05:30
Kovid Goyal
6a9f3feba2
...
2022-11-14 15:41:47 +05:30
Kovid Goyal
2e31178980
Workaround for go unix package not wrapping pselect() on darwin
2022-11-14 15:41:47 +05:30
Kovid Goyal
141b9c8f08
Adjust select() timeout on EINTR
2022-11-14 15:41:47 +05:30
Kovid Goyal
17629add66
Handle EINTR
2022-11-14 15:41:47 +05:30
Kovid Goyal
352a78f056
Add a debug print method to tty and use pselect rather than select for greater timeout precision
2022-11-14 15:41:47 +05:30
Kovid Goyal
2ef5d0a140
...
2022-11-14 15:41:47 +05:30
Kovid Goyal
08b4741024
Get rid of a couple of unneeded dependencies
2022-11-14 15:41:47 +05:30
Kovid Goyal
11ffa961bc
Use local hyperlinks for :doc:
2022-11-14 15:41:47 +05:30
Kovid Goyal
ad6d928c12
Port various recent changes to CLI help output
2022-11-14 15:41:47 +05:30
Kovid Goyal
74b768bfc2
...
2022-11-14 15:41:47 +05:30
Kovid Goyal
9b703078dd
See if at least the field names are the same
2022-11-14 15:41:47 +05:30
Kovid Goyal
43e93414ea
Some work on implementing TTYIO
2022-11-14 15:41:47 +05:30
Kovid Goyal
6c3a439455
Use the io.Reader interface
2022-11-14 15:41:47 +05:30
Kovid Goyal
a7bc2fcba8
Code to parse socket addresses
2022-11-14 15:41:47 +05:30
Kovid Goyal
417c8887b9
Start on testing infra for command to JSON serialization
2022-11-14 15:41:47 +05:30
Kovid Goyal
47feb73cdf
Code to generate structs for JSON marshalling
2022-11-14 15:41:47 +05:30
Kovid Goyal
0aa1bacbe7
...
2022-11-14 15:41:47 +05:30
Kovid Goyal
63512f0512
Implement setting of option values into a struct
2022-11-14 15:41:46 +05:30
Kovid Goyal
a32251cab4
Handle aliased flags
2022-11-14 15:41:46 +05:30
Kovid Goyal
2ca8ae8e5f
normalize flag names so that underscores are interchangeable with hyphens
2022-11-14 15:41:46 +05:30
Kovid Goyal
2d466f343d
Finish mapping of python cli opt to go cli opt
2022-11-14 15:41:46 +05:30
Kovid Goyal
4596dc39ce
Fix formatting of lines with only spaces
2022-11-14 15:41:46 +05:30
Kovid Goyal
605882582e
Transfer response_timeout
2022-11-14 15:41:46 +05:30
Kovid Goyal
a5876e5231
Refactor conversion of py opt to go opt
2022-11-14 15:41:46 +05:30
Kovid Goyal
e127579ae6
DRYer
2022-11-14 15:41:46 +05:30
Kovid Goyal
b3be6792fd
General cleanup
2022-11-14 15:41:46 +05:30
Kovid Goyal
6c25f0cf4b
Use cobra's builtin machinery for creating new types
2022-11-14 15:41:46 +05:30
Kovid Goyal
a0bff4abab
Let kitty-tool know if it was built for a frozen kitty
2022-11-14 15:41:46 +05:30
Kovid Goyal
82410c58ed
Hide the default completion command
2022-11-14 15:41:46 +05:30
Kovid Goyal
3a87cfce3e
Get bool set flags ported
2022-11-14 15:41:46 +05:30
Kovid Goyal
15ffd8e6d8
Support older Go
2022-11-14 15:41:46 +05:30
Kovid Goyal
33e16df586
Add some basic RC serialization tests
2022-11-14 15:41:46 +05:30
Kovid Goyal
4432c1a2ea
Move the command types into a separate package
2022-11-14 15:41:46 +05:30
Kovid Goyal
45540561cc
More debug info about PATH in CI
2022-11-14 15:41:46 +05:30
Kovid Goyal
f90753c69b
Use whatever version of go is available on CI
2022-11-14 15:41:46 +05:30
Kovid Goyal
bab914c497
Create hidden alias commands so kitty-tool @ls also works
2022-11-14 15:41:45 +05:30
Kovid Goyal
d3bb69a0ac
strip whitespace from long descriptions just to be safe
2022-11-14 15:41:45 +05:30
Kovid Goyal
e356af2dc4
Build kitty-tool as a universal binary for freeze builds on macOS
2022-11-14 15:41:45 +05:30
Kovid Goyal
e9e7b97c48
And we have frozen builds working with kitty-tool
2022-11-14 15:41:45 +05:30
Kovid Goyal
1c7d6f8bc6
Dont sync kitty-tool to build vms
2022-11-14 15:41:45 +05:30
Kovid Goyal
82a0e56eb2
Fix go tests not being excluded correctly
2022-11-14 15:41:45 +05:30
Kovid Goyal
54fd2c6773
Get linux freeze working
2022-11-14 15:41:45 +05:30
Kovid Goyal
fb4c7db25e
Add a test for existence of kitty-tool
2022-11-14 15:41:45 +05:30
Kovid Goyal
c85af36116
Simplify cleanup and ignoring of generated go files
2022-11-14 15:41:45 +05:30
Kovid Goyal
780b5ca8bd
misc fixes
2022-11-14 15:41:45 +05:30
Kovid Goyal
20ad7ca437
Output VCSRevision with --version
2022-11-14 15:41:45 +05:30
Kovid Goyal
d39036de2a
Add vcs revision to version string
2022-11-14 15:41:45 +05:30
Kovid Goyal
4ac4ee643e
Have the rc command wrapper sauto-generated on build
2022-11-14 15:41:45 +05:30
Kovid Goyal
47f35a06e6
Start work on generating rc cmd wrappers
2022-11-14 15:41:45 +05:30
Kovid Goyal
77f7ce82c0
Parse global options
2022-11-14 15:41:45 +05:30
Kovid Goyal
10b74d0703
Update documentation of --to
2022-11-14 15:41:45 +05:30
Kovid Goyal
393820e77a
Dont sort flags by default
2022-11-14 15:41:45 +05:30
Kovid Goyal
1b8805bc6f
document we need go >= 1.19
2022-11-14 15:41:44 +05:30
Kovid Goyal
07dc83670b
Fix go in home dir getting removed from PATH on CI
2022-11-14 15:41:44 +05:30
Kovid Goyal
1429be3a19
Run gofmt via python, easier to debug
2022-11-14 15:41:44 +05:30
Kovid Goyal
4b69a600e5
Nicer error when go is not found during build
2022-11-14 15:41:44 +05:30
Kovid Goyal
ce9a5528bc
Pass verbose to go build
2022-11-14 15:41:44 +05:30
Kovid Goyal
2ea3fa36d2
...
2022-11-14 15:41:44 +05:30
Kovid Goyal
14262b158d
Log which go exe is being used to run the tests
2022-11-14 15:41:44 +05:30
Kovid Goyal
2fd013b593
Add source code linting for go to CI
2022-11-14 15:41:44 +05:30
Kovid Goyal
1325844539
Add some go testing infrastructure
2022-11-14 15:41:44 +05:30
Kovid Goyal
3a21605b05
...
2022-11-14 15:41:44 +05:30
Kovid Goyal
cea9ff30dc
Add the go dependency to CI and Brewfile
2022-11-14 15:41:44 +05:30
Kovid Goyal
63da2e1ec6
gofmt
2022-11-14 15:41:44 +05:30
Kovid Goyal
083deec663
Build kitty-tool via the build system
2022-11-14 15:41:44 +05:30
Kovid Goyal
8b91c227f6
...
2022-11-14 15:41:44 +05:30
Kovid Goyal
06bd1f5d48
DRYer
2022-11-14 15:41:44 +05:30
Kovid Goyal
a7f0a471ed
Dont fail to output usage when less is not present
2022-11-14 15:41:44 +05:30
Kovid Goyal
2a7aa46b77
Use pager even for usage + error
2022-11-14 15:41:44 +05:30
Kovid Goyal
c04b002d4e
Use a pager for displaying usage, matches kitty behavior
...
Also dont tell less to squeeze lines
2022-11-14 15:41:44 +05:30
Kovid Goyal
46840df1ad
CLI help output make kitty.conf a clickable URL
2022-11-14 15:41:43 +05:30
Kovid Goyal
aaf0dea8dc
Use a single wrapper binary for all command line tools
...
This is because Go has a multi megabyte overhead for its binaries
2022-11-14 15:41:43 +05:30
Kovid Goyal
abaafc2d68
Parse roles in the help strings
2022-11-14 15:41:43 +05:30
Kovid Goyal
c97556de65
Show help when command is specified
2022-11-14 15:41:43 +05:30
Kovid Goyal
bbf7504303
Start work on implementing kitty @ as a static binary using Go
2022-11-14 15:41:43 +05:30
Kovid Goyal
126468a5dd
Fix #5668
2022-11-14 15:40:24 +05:30
Kovid Goyal
8280899ce1
IBUS: When creating the connection mark as focused if any top level window has focus. Fixes #5655
2022-11-10 07:21:34 +05:30
Kovid Goyal
b15c9f7419
Function should be static
2022-11-10 07:18:17 +05:30
Kovid Goyal
2e8ef66496
Another mypy update another round of spurious errors
2022-11-08 17:17:40 +05:30
Kovid Goyal
72f92b395f
version 0.26.5
2022-11-07 15:36:42 +05:30
Kovid Goyal
c9c8eb6e94
...
2022-11-05 11:37:07 +05:30
Kovid Goyal
59ded41f7a
When no OS Window is focused the active_* should return those belonging to the last focused OS Window
2022-11-05 11:34:10 +05:30
Kovid Goyal
10ad56885e
Properly specify semantics of active and focused
...
active means active in parent. focused means actually has keyboard
focus.
2022-11-04 10:38:18 +05:30
Kovid Goyal
d1eb9340ac
Output the actual tab id in its repr
2022-11-04 09:29:33 +05:30
Kovid Goyal
a856c64104
Have the semantics of is_focused match that of state:focused otherwise things are liable to get confusing
...
The previous value is now available as is_active_window
2022-11-03 22:32:07 +05:30
Kovid Goyal
c0b11c5656
Also change the behavior of state:focused matching for tabs
2022-11-03 21:56:23 +05:30
Kovid Goyal
935c4ded6b
Remote control: When matching window by state:focused match the window belonging to the OS window that was last focused
...
Fixes #5602
2022-11-03 21:52:20 +05:30
Kovid Goyal
f5de08d5fa
Splits layout: Add a new mappable action to move the active window to the screen edge
...
Fixes #5643
2022-11-03 17:40:04 +05:30
Kovid Goyal
9d471782dd
Increase some more timeouts
2022-11-03 13:13:14 +05:30
Kovid Goyal
dea3df66f8
system python appears broken on macos-latest image
...
The pip scripts install directory is not on PATH
2022-11-03 13:05:03 +05:30
Kovid Goyal
ec80a1532c
Try to make mypy happy with the contortions needed for importlib.resources
2022-11-03 12:41:13 +05:30
Kovid Goyal
93563f1280
More pointless code churn thanks to importlib.resources
...
They've deprecated a bunch of API but the suggested replacement is
either not present in versions of python that are not EOLed or doesn't
actually work.
2022-11-03 12:13:47 +05:30
Kovid Goyal
e309e54002
Allow using the re module in tab title templates
...
Fix #5639
2022-11-01 22:25:58 +05:30
Kovid Goyal
0b3228ab16
...
2022-11-01 12:51:36 +05:30
Kovid Goyal
3f28cf45d4
Dont use the deprecated importlib.resources API
2022-11-01 12:38:24 +05:30
Kovid Goyal
88b829fc9b
cleanup comment
2022-11-01 12:22:05 +05:30
Kovid Goyal
458ac6953f
Update changelog for last PR
2022-11-01 12:21:09 +05:30
Kovid Goyal
a6855bde3c
Merge branch 'no_cursor_update_if_not_changed' of https://github.com/wengxt/kitty
2022-11-01 12:20:18 +05:30
Kovid Goyal
f6f2f00c53
Add a note about wayland semantics
2022-11-01 12:13:23 +05:30
Kovid Goyal
00324c96fc
...
2022-10-31 22:09:01 +05:30
Kovid Goyal
2435a8ccfd
Wayland GNOME: Fix incorrect window size when in some circumstances when switching between windows with window decorations disabled
...
Only call wl_surface_commit() after a resize when the correct size buffer is
attached to the surface. This is ensured by setting a flag on the window that prevents
all surface commits till it is cleared. The flag is cleared at next
eglSwapBuffers().
I dont actually understand if this guarantees that the
buffer size is always correct. For example, if the back buffer is
latched when wl_egl_resize_window() is called, the backbuffer will be
correct only after two swaps (I think). Or maybe the old back buffer is
discarded, I cant find any documentation about it.
All I can say is that doing it this way seems to fix the issue.
Thanks to @jadahl for his help with tracking down the root cause.
Fixes #4802
2022-10-31 21:59:01 +05:30
Kovid Goyal
de122ed727
Bind eglQuerySurface
2022-10-31 21:03:39 +05:30
Kovid Goyal
c2ead407ae
...
2022-10-31 18:14:38 +05:30
Kovid Goyal
16b322616a
Fix cursor position at x=0 changing to x=1 on resize
...
Fixes #5635
2022-10-31 08:03:42 +05:30
Kovid Goyal
e0b4c7edc5
Increase the timeout for shell integration tests
...
Needed for ARM running non-natively
2022-10-30 11:09:36 +05:30
Kovid Goyal
a8ab4eaf23
Use a larger timeout when running prewarm test
2022-10-30 10:36:10 +05:30
Kovid Goyal
3847837bd0
Forgot to run gen-config.py
2022-10-19 20:50:53 +05:30
Kovid Goyal
1747bbbbcb
ssh kitten: Allow using absolute paths for the location of transferred data
...
Fixes #5607
2022-10-19 20:43:53 +05:30
Kovid Goyal
90e80477e9
Fix background_tint with background_opacity < 1 causing colors in cell area and padding to not match
2022-10-19 19:24:37 +05:30
Kovid Goyal
4f90110a7c
Fix ghosting when using background_tint under GNOME+Wayland
...
The problem was that on Wayland if the buffer contains pixels with alpha
< 1 they are blended with something, even if the window is opaque. Under
mutter that something was the previous frame, under sway it was the
background/whatever is under the window.
So when blending the tint color, use a blend mode that results in opaque
pixels.
Fixes #5605
2022-10-19 19:02:05 +05:30
Kovid Goyal
28c616d3ff
Move blend mode selection into draw_tint
2022-10-19 17:13:46 +05:30
Kovid Goyal
f5126c664c
Wayland KDE: Fix abort when pasting into Firefox
...
Dunno why kwin uses drag and drop callbacks when pasting into Firefox on
Wayland, but then this is Wayland, so every stupid thing imaginable will
be done at least once.
Fixes #5603
2022-10-19 11:28:33 +05:30
Kovid Goyal
0f340086c0
Fix resize_draw_strategy=static
...
The text is now static again but the background image is still scaled, cant be
bothered about that. Fixes #5601
2022-10-19 08:26:31 +05:30
Kovid Goyal
5c34f16ab4
Fix #5600
2022-10-19 07:45:27 +05:30
Kovid Goyal
03fe928e3f
show progress while compressing release tarballs
2022-10-17 09:55:09 +05:30
Kovid Goyal
55b53bcac6
version 0.26.4
2022-10-17 08:18:51 +05:30
Kovid Goyal
57d044861f
Merge branch 'patch-1' of https://github.com/ms-test/kitty
2022-10-16 13:28:06 +05:30
ms-test
aab149366d
Check correct pair member
...
I haven't looked deeply, but this looked to be a simple typo unless it's checking one both times because of a type invariant. If that is the case, and the check is correct, then a comment and/or code refactoring to call attention to this would likely be a good idea.
2022-10-16 03:53:16 -04:00
Kovid Goyal
896f93822d
kitty shell: Also output active tab id
...
Fixes #5590
2022-10-16 08:52:35 +05:30
Kovid Goyal
6890e265b6
GNOME Wayland: Fix a memory leak in gnome-shell when using client side decorations
...
destroy CSD buffers that were never attached explicitly, as mutter does
not send release events for these even when the pool is destroyed.
2022-10-12 17:52:47 +05:30
Kovid Goyal
48a4edc199
Merge branch 'action_cwd_doc' of https://github.com/cbosdo/kitty
2022-10-10 14:04:29 +05:30
Cédric Bosdonnat
d63be90a7f
Recommend using --cwd=current in open-actions.conf
...
Editors like Vim are basing path-related commands on the current working
directory. Launching the action with the current CWD in hyperlink opens
makes life easier and would work with every editor.
2022-10-10 10:12:20 +02:00
Kovid Goyal
6af020e4ef
Merge branch 'marksisson/simple-docs-change' of https://github.com/marksisson/kitty
2022-10-09 12:18:25 +05:30
Mark Sisson
ca24e9ca67
change linux_package build instructions to use make target
2022-10-09 00:02:38 -05:00
Kovid Goyal
fbfaefd72a
Wayland: Fix an abort when changing background colors with wayland_titlebar_color set to background
...
Fixes #5562
2022-10-07 14:13:12 +05:30
Kovid Goyal
94b3776066
Merge branch 'master' of https://github.com/Diff-fusion/kitty
2022-10-05 09:09:23 +05:30
Felix
15e4be9051
Fix clipboard target properties and memory leak
2022-10-04 17:22:15 +02:00
Kovid Goyal
ae8f3de070
Allow centering the background image
...
Fixes #5525
2022-10-04 08:26:28 +05:30
Kovid Goyal
c8d18ffe26
Add a note about yet another gnome bug
2022-10-03 22:06:00 +05:30
Kovid Goyal
4d80427908
Wayland: Fix background image scaling using tiled mode on high DPI screens
2022-10-03 21:49:52 +05:30
Kovid Goyal
0e69324469
Fix resize draw strategy == static causing background image/borders to not be drawn
2022-10-03 21:40:00 +05:30
Kovid Goyal
cf22729dfa
Fix background_tint not applying to window margins and padding
...
Fixes #3933
2022-10-03 21:39:57 +05:30
Kovid Goyal
1402c5bbfa
Forgot to change check for space for next tab to use its max tab length rather than the current tabs max tab length, since they can now be different
2022-10-03 16:21:50 +05:30
Kovid Goyal
f0f0c8f4fe
max_title_length -> max_tab_length
2022-10-03 16:15:24 +05:30
Kovid Goyal
96faac95db
DRYer
2022-10-03 15:32:42 +05:30
Kovid Goyal
08041415d1
Document the purpose of for_layout
2022-10-03 13:26:55 +05:30
Kovid Goyal
647b18d345
Tab bar: Improve empty space management when some tabs have short titles, allocate the saved space to the active tab
...
Fixes #5548
2022-10-03 13:24:21 +05:30
Kovid Goyal
a116e3cadd
Merge branch 'patch-1' of https://github.com/sorrycc/kitty
2022-09-30 07:46:32 +05:30
chencheng (云谦)
52c9b5f5b8
Update custom.css
2022-09-30 08:44:09 +08:00
Kovid Goyal
bbc9f588f1
Merge branch 'unicode-15' of https://github.com/page-down/kitty
2022-09-29 09:17:02 +05:30
pagedown
13a3c6b5b2
Update to Unicode 15.0
2022-09-29 10:13:21 +08:00
pagedown
fc15b20f24
Update to Nerd Fonts 2.2.2
2022-09-29 10:13:10 +08:00
Kovid Goyal
cd8f2e5cc6
another mypy update another round of breakage
2022-09-27 07:19:03 +05:30
Kovid Goyal
267798a277
Update the docs of open_url_with to indicate that open-actions.conf is read by the "default" handler
2022-09-26 20:21:44 +05:30
Kovid Goyal
921ac12e90
Clear both actions caches when config file is reloaded
2022-09-26 20:15:08 +05:30
Kovid Goyal
901e00cab1
Cleanup previous PR
...
1) Dont use deprecated code
2) Always set the dock icon on startup as the dock icon doesnt change
till the dock is restarted
3) Update the app icon automatically if the mtime on the custom icon in
the config dir is newer than the mtime of the sentinel file apple
puts inside the application bundle to indicate it has a custom icon
2022-09-25 18:11:17 +05:30
Kovid Goyal
d0769f3979
...
2022-09-25 17:36:32 +05:30
Kovid Goyal
7e4dd8cf1e
Merge branch 'macos-set-icon' of https://github.com/page-down/kitty
2022-09-25 14:40:36 +05:30
Kovid Goyal
5ea0519f62
Pass through python used for type check to the test code from before the env is sanitized
2022-09-25 14:36:12 +05:30
pagedown
a1029418f8
macOS: Allow to set custom app icon automatically
2022-09-25 15:25:43 +08:00
Kovid Goyal
98eacb2067
panel kitten: Do not depend on xprop
2022-09-24 15:44:54 +05:30
Kovid Goyal
2cef9abbd3
Get rid of one call to xprop in the panel kitten
2022-09-24 15:17:11 +05:30
Kovid Goyal
0fa158c809
Merge branch 'docs' of https://github.com/page-down/kitty
2022-09-24 14:38:42 +05:30
pagedown
c54a6b398b
Add some missing no_response for rc commands
2022-09-24 12:43:13 +08:00
pagedown
27ea367123
Docs: Remove the extra backslashes from the install commands
2022-09-24 12:39:05 +08:00
Kovid Goyal
42178a4570
X11: Fix a regression in the previous release that caused pasting from GTK based applications to have extra newlines
...
Fixes #5528
And let me just re-iterate, GNOME/GTK is developed by morons.
2022-09-24 08:56:50 +05:30
Kovid Goyal
e98ecc1c4f
Another auto-indent fix
2022-09-24 08:34:07 +05:30
Kovid Goyal
0d64246209
fix vim autoindent
2022-09-24 08:31:14 +05:30
Kovid Goyal
a0495219ab
...
2022-09-24 08:30:40 +05:30
Kovid Goyal
9d98aa3159
Merge branch 'patch-2' of https://github.com/sashashura/kitty
2022-09-24 07:29:42 +05:30
Alex
5c82f4beca
build: harden ci.yml permissions
...
Signed-off-by: Alex <aleksandrosansan@gmail.com >
2022-09-23 22:14:57 +02:00
Alex
13539bd8c6
build: harden codeql-analysis.yml permissions
...
Signed-off-by: Alex <aleksandrosansan@gmail.com >
2022-09-23 22:14:16 +02:00
Kovid Goyal
26b8ab9adf
Use a regex for bracketed paste sanitization
2022-09-23 22:18:03 +05:30
Kovid Goyal
dbb97a62bf
version 0.26.3
2022-09-22 13:48:20 +05:30
Kovid Goyal
b1fa1c9820
Make test a bit more robust
2022-09-21 23:16:34 +05:30
Kovid Goyal
2dc9488909
switch python autoformatter to isort+black+autoflake
2022-09-21 13:40:37 +05:30
Kovid Goyal
e2a251224d
ssh kitten: Better error message when tar is missing
2022-09-21 07:34:15 +05:30
Kovid Goyal
2a2dca8a58
...
2022-09-18 08:26:40 +05:30
Kovid Goyal
e1f3cb85c0
Window for id should not fail when not called from a callback
2022-09-18 08:24:02 +05:30
Kovid Goyal
13cf38d6c6
Update changelog
2022-09-17 18:21:28 +05:30
Kovid Goyal
5180a41e87
Fix a use-after-free when handling fake mouse clicks and the action causes windows to be removed/re-allocated
...
Fixes #5506
2022-09-17 18:21:10 +05:30
Kovid Goyal
1c44da2b4a
Nicer error message when trying to open the config file and no editor is available
2022-09-13 17:24:11 +05:30
Kovid Goyal
bcd78c3940
Fix a regression that caused kitty not to restore SIGPIPE after python nukes it when launching children. Affects bash which does not sanitize its signal mask.
...
Fixes #5500
2022-09-13 07:51:32 +05:30
Kovid Goyal
fe2f3d9870
Wayland: Remove the mutter specific ignoring of the first empty surface configure event. It seems to be no longer necessary on current mutter, with the recent Wayland changes
2022-09-11 14:37:50 +05:30
Kovid Goyal
dcf2152a7a
Wayland: Generate a XDG_ACTIVATION_TOKEN when opening URLs or running programs in the background via the launch action
2022-09-11 14:25:49 +05:30
Kovid Goyal
58a3baaf0f
Wayland: Use XDG_ACTIVATION_TOKEN when present at launch
2022-09-11 13:43:52 +05:30
Kovid Goyal
b247759d30
DRYer
2022-09-11 13:15:42 +05:30
Kovid Goyal
ba8d30896b
Try to use the activation protocol to focus windows
2022-09-11 10:39:28 +05:30
Kovid Goyal
4d30ae55f3
Wayland: Mark windows in which a bell as urgent on compositors that support the xdg-activation protocol
2022-09-11 09:33:41 +05:30
Kovid Goyal
983ab3c67d
build wayland xdg-activation protocol
2022-09-10 16:08:38 +05:30
Kovid Goyal
0bf228b030
Wayland: Micro-optimization: Assume window will be shown on primary monitor so create it with its scale set to that of the primary monitor
2022-09-10 15:23:56 +05:30
Kovid Goyal
29b3a92ffc
Wayland: swap buffers immediately on scale change to ensure attached buffer is a multiple of the new scale
...
Earlier we were only swapping buffers when ready to draw, but the
Wayland protocol requires the attached buffer to be a multiple of the
scale. We cannot guarantee an application side swap will be triggered
before the next commit, so instead we blank the new buffer swap it in
the GLFW backend itself.
Fixes #5467
2022-09-10 15:09:46 +05:30
Kovid Goyal
23d73ec933
...
2022-09-10 12:52:27 +05:30
Kovid Goyal
bc650f6230
Output initial window creation size in debug
2022-09-10 12:28:53 +05:30
Kovid Goyal
5272318d67
Update changelog
2022-09-10 12:10:30 +05:30
Kovid Goyal
5ba887ff68
Wayland: Fix for bug in NVIDIA drivers that prevents transparency working
...
Fixes #5479
2022-09-10 11:57:18 +05:30
Kovid Goyal
67d70f8b8f
Apparently on Wayland we need to set the swap interval on every window not just the first. It's somehow not shared even though the context is shared? Fixes #5495
2022-09-10 10:41:31 +05:30
Kovid Goyal
0fac6e4de9
render frames should be always respected on macOS
...
Only Wayland suffers from flicker on resize when using render frames.
2022-09-10 10:25:42 +05:30
Kovid Goyal
1e7a11b278
Wayland: When swapping buffers in response to a configure event ensure the window is the current context otherwise the swap fails
...
The swap failing will mean the buffer is not attached which might cause
issues with some compsitors.
2022-09-10 10:22:09 +05:30
Kovid Goyal
6741ac2087
Sessions: Allow controlling which OS Window is active via the focus_os_window directive
2022-09-10 08:27:36 +05:30
Kovid Goyal
7b2e29a6a8
...
2022-09-10 07:52:26 +05:30
Kovid Goyal
6f147544d2
Add ! to env var serialization test
2022-09-10 07:21:15 +05:30
Kovid Goyal
89570d3b52
ssh kitten: Fix KITTY_PUBLIC_KEY not being encoded properly when transmitting
...
Fixes #5496
2022-09-10 07:09:58 +05:30
Kovid Goyal
dd4a65e0c9
...
2022-09-09 15:41:45 +05:30
Kovid Goyal
79fba9dd9a
Use the dynamic property instead of testing identifier serialization
2022-09-09 15:39:00 +05:30
Kovid Goyal
b123c21010
Update changelog
...
Fixes #5483
2022-09-09 13:13:58 +05:30
Kovid Goyal
9c5d1f9771
Pass null bytes through the clipboard on cocoa
2022-09-09 13:12:12 +05:30
Kovid Goyal
5131224b59
Convenience code for debugging
2022-09-09 12:20:28 +05:30
Kovid Goyal
be89da2271
Handle dyn prefixes
2022-09-09 11:59:49 +05:30
Kovid Goyal
45b408a78b
Allow setting arbitrary mime types
2022-09-09 11:14:12 +05:30
Kovid Goyal
0e7da8643e
Get cocoa clipboard backend working
2022-09-09 10:59:10 +05:30
Kovid Goyal
410b1816ad
More work on cocoa clipboard backend
2022-09-09 07:39:38 +05:30
Kovid Goyal
bcfa2a64e4
Start work on new clipboard api support for macos
2022-09-08 21:45:13 +05:30
Kovid Goyal
91c00fb5ac
Implement the new clipboard API for Wayland
2022-09-08 17:29:18 +05:30
Kovid Goyal
c58d217d32
Only warn about cursor size once
2022-09-08 16:28:40 +05:30
Kovid Goyal
a9b6047741
Simplify handling of self offers
2022-09-08 15:34:14 +05:30
Kovid Goyal
6b432bee4f
Cleanup sending/receiving mimetype atoms
2022-09-08 12:45:35 +05:30
Kovid Goyal
087f0b449f
...
2022-09-08 12:45:35 +05:30
Kovid Goyal
96160b52b6
Code to get the available mime types in the clipboard
2022-09-08 12:45:34 +05:30
Kovid Goyal
d17a6cd3a3
Get reading from clipboard working
2022-09-08 12:45:34 +05:30
Kovid Goyal
7e1380cc0d
Start work on giving GLFW a proper clipboard API
2022-09-08 12:45:34 +05:30
Kovid Goyal
9a99554ed3
Also have confirm() and get_line() return their results on overlay removal
2022-09-08 12:06:25 +05:30
Kovid Goyal
19799bd538
When choosing an option call the callback after the popup window is removed. This ensures the active window is unchanged when the callback is called. Fixes #5488
2022-09-08 12:01:38 +05:30
Kovid Goyal
902e94ceac
Fix #5484
2022-09-07 15:09:24 +05:30
Kovid Goyal
5bb2cb06a9
Fix #5477
2022-09-05 21:43:56 +05:30
Kovid Goyal
1559a2e15a
Cleanup previous PR
2022-09-05 21:19:58 +05:30
Kovid Goyal
35f94963cd
Merge branch 'skip-tests-bash-debug' of https://github.com/jamessan/kitty
2022-09-05 21:18:52 +05:30
James McCoy
f0d497dfe0
Skip bash shell_integration tests if bash is a debug build
...
Switch to using BASH_VERSINFO rather than BASH_VERSION, since it
provides structured data.
BASH_VERSINFO
A readonly array variable whose members hold version information for this instance of bash. The values assigned to the array members are as follows:
BASH_VERSINFO[0] The major version number (the release).
BASH_VERSINFO[1] The minor version number (the version).
BASH_VERSINFO[2] The patch level.
BASH_VERSINFO[3] The build version.
BASH_VERSINFO[4] The release status (e.g., beta1).
BASH_VERSINFO[5] The value of MACHTYPE.
When release status is not "release", bash builds are in debug mode and
output extra information which disturbs the integration.
Closes #5473
2022-09-05 11:37:37 -04:00
Kovid Goyal
5bdf27fd78
version 0.26.2
2022-09-05 10:49:50 +05:30
Kovid Goyal
f05783e64d
Sanitize notifications ids as they are retransmitted over the TTY
2022-09-05 10:41:19 +05:30
Kovid Goyal
c455fea729
Also output screen contents when test fails
2022-09-05 07:52:36 +05:30
Kovid Goyal
5bf5454dbe
Nicer fix for #5469
2022-09-04 22:15:17 +05:30
Kovid Goyal
b60d9f73ce
Wayland: Fix remembering window size not accurate when client side decorations are present
2022-09-04 14:25:04 +05:30
Kovid Goyal
31fe35cd38
Fix #5469
2022-09-04 13:58:16 +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
Kovid Goyal
295743a96e
Fix ref to launch doc
2022-09-02 16:31:21 +05:30
Kovid Goyal
d3a1848c27
Remove markup from ref_hyperlink text
2022-09-02 16:24:50 +05:30
Kovid Goyal
9cec924f32
hints kitten: Allow using launch as the program to run, to open the result in a new kitty tab/window/etc.
...
Fixes #5462
2022-09-02 16:23:00 +05:30
Kovid Goyal
67c963ab89
Pass KITTY_LISTEN_ON to programs opened via open_url
...
Useful if those programs want to talk to kitty via the rc socket
2022-09-02 16:01:30 +05:30
Kovid Goyal
0f7ced25c1
...
2022-09-01 13:55:48 +05:30
Kovid Goyal
42948ffff0
Merge branch 'docs' of https://github.com/page-down/kitty
2022-09-01 13:55:30 +05:30
pagedown
922ce5bdea
Docs: Put example commands in code blocks
2022-09-01 15:35:51 +08:00
pagedown
1b42486026
Docs: Remove the extra empty line in the CLI help
...
Also keep the example code in a code block, in the HTML documentation.
2022-09-01 15:35:41 +08:00
pagedown
95f1a971b2
Docs: Mention clear_all_shortcuts in the FAQ about show_key kitten
2022-09-01 15:35:17 +08:00
Kovid Goyal
7968c88c67
...
2022-09-01 07:54:36 +05:30
Kovid Goyal
992e90b0a3
Fix a regression in 0.26.0 that broke mapping of native keys who key codes did not fit in 21 bits
...
Fixes #5452
2022-08-31 22:19:51 +05:30
Kovid Goyal
afada84f52
Cleanup previous PR
...
Use wcswidth() for line width calculation. Works with emoji and ignores
escape codes automatically. Add changelog entry.
2022-08-31 08:01:52 +05:30
Kovid Goyal
b978ff8930
Merge branch 'fix/hints-next-line' of https://github.com/trygveaa/kitty
2022-08-31 07:56:38 +05:30
Kovid Goyal
053cede581
Use git rev-parse to get nightly commit hash
2022-08-31 07:22:56 +05:30
Trygve Aaberge
03720402a7
Fix hints sometimes matching next line as part of URL
...
For URLs where there's fewer characters left to the right edge of the
window than the number of escape characters in the line, the next line
would be included in the URL, as if the URL went all the way to the
right edge.
For example with a 40 chars wide terminal, if you run:
echo -e '\e[31m1\e[m https://github.com/kovidgoyal/kitty\ntest '
And launch the hints kitten, you'll see that test on the next line will
be included in the URL.
This happened because the calculation for filling the rest of the line
with NUL characters counted the escape characters as well as the visible
characters, so it filled in too few characters.
This is a regression introduced in commit 91966712 .
2022-08-30 22:24:58 +02:00
Kovid Goyal
fca0999814
Eureka! Figured out why libedit is breaking in prewarm on macOS via launchd
...
The prewarm zygote imports the world. shell.py had a top level import
for readline. Which means readline was being imported pre-fork. And of
course as is traditional with Apple libedit is not fork safe. Probably
because it initializes its internal IO routines based on the stdio
handles at time of import which are the handles kitty gets from launchd
2022-08-30 19:35:17 +05:30
Kovid Goyal
78056c659c
Another place we cant use readline on macOS
2022-08-30 19:27:55 +05:30
Kovid Goyal
30e1b4680d
Only override LANG in default env if it was not set either in the original os env or via the env config directive
2022-08-30 19:17:53 +05:30
Kovid Goyal
89a0c04d19
Fix exec in prewarm forked process sometimes inheriting env vars from grandparent process
2022-08-30 19:03:32 +05:30
Kovid Goyal
1ba027c277
Dont show LC_CTYPE in show_kitty_env_vars when running with system python on macOS
2022-08-30 16:55:17 +05:30
Kovid Goyal
d8e43a3412
macOS: Fix regression in 0.26.0 that caused asking the user for a line of input such as for set_tab_title to not work
...
Apparently libedit doesn't work in the forked process when the parent
process is run via Launch Services. I cant be bothered to investigate
why, given that libedit is closed source. macOS users will just have to
live without history/completion in the ask kitten until I get around to
writing a replacement for readline/libedit.
And on a personal note, macOS >> Necrotizing fasciitis
Fixes #5447
2022-08-30 16:45:14 +05:30
Kovid Goyal
644e46e91d
Reconfigure all stdio streams in the prefork process
2022-08-30 16:22:59 +05:30
Kovid Goyal
e2a1f8dde7
...
2022-08-30 10:40:59 +05:30
Kovid Goyal
7d09c6b762
Link to start of actual changelog
2022-08-30 10:27:53 +05:30
Kovid Goyal
6604e0d015
Fix regression in 0.26.0 that caused launching kitty without working STDIO handles to result in high CPU usage and prewarming failing
...
Fixes #5444
2022-08-30 08:15:13 +05:30
Kovid Goyal
bb2ec9cde7
...
2022-08-30 07:50:36 +05:30
Kovid Goyal
89a2545855
Cleanup previous PR
...
Allow disabling hyperlinking of rg output. Also parse
--kitten=hyperlink=... form of CLI args.
2022-08-30 07:41:14 +05:30
Kovid Goyal
49f8c0eae6
Merge branch 'hyperlinked-grep-only-matches' of https://github.com/groves/kitty
2022-08-30 06:59:53 +05:30
Kovid Goyal
268d687814
version 0.26.1
...
Bloody macOS. I have better things to do that play whack-a-mole with all
the bug reports caused macOS not bothering to set LANG.
2022-08-30 01:04:42 +05:30
Charlie Groves
db5b4da388
Add options for linking different parts of ripgrep output
2022-08-29 13:23:42 -04:00
Kovid Goyal
71f8e50460
Update changelog
2022-08-29 21:01:59 +05:30
Kovid Goyal
22fbdbca40
Fix a regression in 0.26.0 that caused kitty to no longer set the LANG environment variable on macOS
...
Happened because reading the locale uses cocoa APIs and they are not fork
safe, so it was moved to after prewarm forking, but at that point the
default child env had already been set.
Fixes #5439
2022-08-29 20:58:48 +05:30
Kovid Goyal
6253ee2a74
Allow resetting the tab title to default
2022-08-29 20:41:07 +05:30
Kovid Goyal
5b28aed0b1
Allow the set_tab_title action to take an argument
2022-08-29 20:11:18 +05:30
Kovid Goyal
9eabc9ecf1
Merge branch 'bash-inherit_errexit' of https://github.com/grimm26/kovidgoyal-kitty
2022-08-29 19:47:24 +05:30
Mark Keisler
a77852466c
bash shell integration: Send STDERR of unsetting inherit_errexit to
...
/dev/null
Some bash versions may not have that option and rather than checking if
they even have it or if it is set, just quiet the STDERR it may throw.
```
$ kssh myhost
bash: shopt: inherit_errexit: invalid shell option name
myhost:~$ bash --version
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html >
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```
2022-08-29 08:58:54 -05:00
Kovid Goyal
c68b82e4d0
ssh kitten: Fix executable permission missing from kitty bootstrap script
...
Fixes #5438
2022-08-29 18:20:09 +05:30
Kovid Goyal
16a4845a72
version 0.26.0
2022-08-29 05:05:11 +05:30
Kovid Goyal
16da031f68
Wait till prompt appears before issuing clear
2022-08-28 21:54:55 +05:30
Kovid Goyal
43b2935e52
Make fish shell integration test for XDG_DATA_DIRS work even if the shells rc files add to XDG_DATA_DIRS.
...
My Linux distro has now started installing system wide rc files that do
this :((
2022-08-28 21:15:26 +05:30
Charlie Groves
8c7968a4d6
Describe --hyperlink-only-matches in the docs
2022-08-28 07:02:39 -04:00
Kovid Goyal
fba759a47c
missed some at_ -> at-
2022-08-28 12:04:00 +05:30
Kovid Goyal
3bcb694b1b
Switch over to at-cmd form for references.
...
Sphinx anyway converts at_cmd to at-cmd for anchors in HTML so using at-cmd
consistently.
2022-08-28 11:54:32 +05:30
Kovid Goyal
555020cfd5
Also allow using at-cmd
2022-08-28 10:26:38 +05:30
Kovid Goyal
391e2b8488
Fix resolution of anchor names for kitty @ command docs
2022-08-28 10:25:00 +05:30
Kovid Goyal
c856d5c058
Fix hyperlinks not present when fetching text from the history buffer
...
Fixes #5427
2022-08-28 08:54:53 +05:30
Charlie Groves
f5a70adf0b
Add a --hyperlink-only-matches flag to hyperlinked_grep
...
If it's active, only matching lines get links, not file headers or context lines.
2022-08-26 17:05:50 -04:00
Kovid Goyal
e330c38d4a
ssh kitten: Delegate to ssh when -T is used
...
Fixes #5411
2022-08-24 15:23:41 +05:30
Kovid Goyal
d595084395
DRYer
2022-08-24 15:02:36 +05:30
Kovid Goyal
b32ee5ee46
Forgot to change code to remove markup for github links
2022-08-24 15:00:39 +05:30
Kovid Goyal
098dd10789
...
2022-08-24 14:42:40 +05:30
Kovid Goyal
b5fa643c5d
Allow ignoring failures when mapping remote control commands
2022-08-24 14:21:54 +05:30
Kovid Goyal
664dd29970
Merge branch 'rc-no-response' of https://github.com/page-down/kitty
2022-08-24 14:15:13 +05:30
Kovid Goyal
b7a4281985
Allow ignoring failure to close windows/tabs via rc commands
2022-08-24 14:13:31 +05:30
Kovid Goyal
9e9aa52553
Ensure extract_rt_targets is run only once per build
2022-08-24 14:00:44 +05:30
Kovid Goyal
77fbdfbb53
Fix finding local docs when running from source on macOS
2022-08-24 13:54:14 +05:30
Kovid Goyal
214416f1e3
Fix handling of :doc: in CLI help output
2022-08-24 13:43:47 +05:30
pagedown
800437ec6b
Remote control: Add --no-response to some commands
2022-08-24 15:14:53 +08:00
Kovid Goyal
957eafbef0
Merge branch 'docs' of https://github.com/page-down/kitty
2022-08-24 12:35:00 +05:30
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
pagedown
fd4a682c5b
Fix doc website URL with duplicate slashes
2022-08-24 13:29:51 +08:00
pagedown
ba9afc61a4
Hyperlink doc text role
2022-08-24 13:29:07 +08:00
pagedown
9a70709bba
Shorten the reference link to the top of the page
...
Reduce the length of the link :ref:`shell_integration` in commented conf.
2022-08-24 13:27:19 +08:00
pagedown
c437a36794
Fix GitHub links in commented configuration
...
Hyperlink GitHub related text roles: iss, pull, disc
2022-08-24 13:27:12 +08:00
pagedown
0e0578ff49
Docs: Use --help long option name in the document
...
Remove the extra empty line in the CLI help for `--replay-commands`.
2022-08-24 13:27:06 +08:00
pagedown
64a202a125
Docs: Using the lowercase form of the key name consistently
2022-08-24 13:26:50 +08:00
Kovid Goyal
740d1ca146
Merge branch 'high-sierra-compat' of https://github.com/rkitover/kitty
2022-08-20 22:15:10 +05:30
Rafael Kitover
7b75f055ea
Fix build on macOS High Sierra
...
Check for >= 10.14 using Availability.h to use the accessibilityRole
callback which does not seem to be available in 10.13.
Signed-off-by: Rafael Kitover <rkitover@gmail.com >
2022-08-20 16:08:28 +00:00
Kovid Goyal
8d6a3cff25
Fix docs build error
2022-08-20 16:26:49 +05:30
Kovid Goyal
10fdde6647
Hyperlink :envvar: as well
2022-08-20 16:24:46 +05:30
Kovid Goyal
e1c45dc23f
...
2022-08-20 16:20:30 +05:30
Kovid Goyal
2efb8f6dc2
Create an API to easily use remote control commands from kittens
2022-08-20 16:19:16 +05:30
Kovid Goyal
3b77f3b4bc
Also hyperlink :term:
2022-08-20 15:40:39 +05:30
Kovid Goyal
31f763282f
Document the show help shortcut
2022-08-20 14:03:16 +05:30
Kovid Goyal
39434fb1f6
A new default shortcut to show the kitty documentation
2022-08-20 13:55:10 +05:30
Kovid Goyal
44ccdd36d6
Remove socket prewarming
...
The potential for breakage is too high, and I am working on an
alternative solution that will be better long term.
Prewarming is still used for kittens launched via keybindings
2022-08-20 13:38:33 +05:30
Kovid Goyal
4cc0138a28
Delete the frozen python dir
...
I verified that all the files remaining in it are loaded via the python
resource system and so are not needed.
2022-08-20 13:05:12 +05:30
Kovid Goyal
6ca39d9d83
Move code to delete empty folders into bypy
...
So it applies to both linux and mac builds automatically
2022-08-20 12:46:55 +05:30
Kovid Goyal
26c099639c
Remove empty folders from macOS package builds
2022-08-20 12:20:18 +05:30
Kovid Goyal
329043ba08
Cleanup build documentation
...
Note how to build the kitty docs wherever needed instead of in a
separate section
2022-08-20 12:09:36 +05:30
Kovid Goyal
e289f4959f
DRYer
2022-08-20 12:03:33 +05:30
Kovid Goyal
b6760a59fa
Another bug in resolve_ref
2022-08-20 11:45:48 +05:30
Kovid Goyal
cd35f92607
Fix resolve_ref()
2022-08-20 11:29:40 +05:30
Kovid Goyal
ea8f223298
Cleanup the wrap implementation
...
Make it more efficient and add support for hyperlink escapes
2022-08-20 09:17:05 +05:30
Kovid Goyal
a4c3154dab
...
2022-08-20 08:27:24 +05:30
Kovid Goyal
6aa3405c78
Clean up build docs a bit
2022-08-20 08:13:42 +05:30
Kovid Goyal
da618584af
Fix some outdated docs
2022-08-19 15:48:17 +05:30
Kovid Goyal
9bc31a5651
Use locally built docs when running from source if they exist
2022-08-19 15:01:20 +05:30
Kovid Goyal
314dd97059
Command line tools shouldnt need to resolve documentation refs
...
Instead use a new kitty+doc protocol and have kitty navigate to the
docs. Uses a default open action for the protocol, which can be
overriden by the user should they so desire.
2022-08-19 14:35:17 +05:30
Kovid Goyal
0b66f20934
Fix mapping of ref targets with underscores
2022-08-19 14:34:25 +05:30
Kovid Goyal
aba634ce88
Fix building of docs on macOS without warnings
...
--detach doesnt exist on macOS
2022-08-19 14:16:28 +05:30
Kovid Goyal
033950dae9
Only hyperlink when stdout is a tty
2022-08-19 14:05:53 +05:30
Kovid Goyal
a59e1adee1
Also hyperlink the :ac: role in CLI help output
2022-08-19 14:05:11 +05:30
Kovid Goyal
5350eb29c1
A new mappable action to show kitty docs in the browser
2022-08-19 14:00:30 +05:30
Kovid Goyal
2bb42e67d7
We have to build docs to test building of package now
2022-08-19 13:51:35 +05:30
Kovid Goyal
8745c4cd4a
Make the kitty man pages automatically available inside kitty when using a binary build
2022-08-19 12:59:10 +05:30
Kovid Goyal
3288400005
Make the docs and man pages available in the macos bundle as well
2022-08-19 12:38:10 +05:30
Kovid Goyal
1f499a7c6c
Add newline to end of generated file
2022-08-19 11:29:47 +05:30
Kovid Goyal
012731c3be
Clean _generated.h files
2022-08-19 11:22:30 +05:30
Kovid Goyal
5deed81737
Dont maintain ref_map manually
2022-08-19 11:20:50 +05:30
Kovid Goyal
6f6e23bf61
Update docs
2022-08-19 10:00:06 +05:30
Kovid Goyal
d2d0487356
Hyperlink :ref: roles in CLI help
2022-08-19 09:57:52 +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
4e4ca366d9
Merge branch 'docs' of https://github.com/page-down/kitty
2022-08-18 17:52:24 +05:30
pagedown
040ff0cc9d
For running the new code KITTY_PREWARM_SOCKET needs to be dropped
2022-08-18 17:06:07 +08:00
pagedown
b01ad4bb3b
...
2022-08-18 17:05:35 +08:00
pagedown
4476251b76
List the available data names for tab_title_template in commented conf
...
List syntax starting with * becomes a block of text in the commented
configuration file.
2022-08-18 17:05:24 +08:00
pagedown
0f4cb1955f
Use the plus sign to connect shortcut keys consistently
2022-08-18 17:05:00 +08:00
Kovid Goyal
c161ee7b5e
Merge branch 'rc-password' of https://github.com/page-down/kitty
2022-08-17 18:41:48 +05:30
pagedown
a5bb2548a6
Do not set KITTY_LISTEN_ON after the window rc password is configured
2022-08-17 19:37:52 +08:00
Kovid Goyal
2898a3ef8c
Some documentation cleanup
2022-08-17 06:48:33 +05:30
Kovid Goyal
a0568334b5
Change the default for allow_remote_control back to no
...
That way if there are any bugs in the implementation, we wont be
exposing users by default. In the future after the implementation has
been battle tested, we can revisit.
2022-08-17 06:42:51 +05:30
Kovid Goyal
4005cfdff2
Disallow passwords that start with - to allow for future addition of options
2022-08-17 00:58:11 +05:30
Kovid Goyal
1d8c5e65b9
Ignore generated .go files
2022-08-17 00:55:12 +05:30
Kovid Goyal
56f45e8b0f
Fix unhandled exceptions not being printed to stderr on macOS when run from launch services and using prewarming
2022-08-16 15:28:07 +05:30
Kovid Goyal
48a9584688
Hide the password when asking for rc permission
...
Can press a key or click on it to reveal it
2022-08-16 14:07:36 +05:30
Kovid Goyal
bfcd324993
ask kitten: allow having hidden text in the message
2022-08-16 13:57:58 +05:30
Kovid Goyal
a75235a260
rcp ars should be a sequnce not a set
2022-08-16 12:10:15 +05:30
Kovid Goyal
e8de2def96
Fix --allow-remote-control not working with allow_remote_control=no
2022-08-16 11:42:39 +05:30
Kovid Goyal
5ffc4c6498
DRYer
2022-08-16 11:37:31 +05:30
Kovid Goyal
d0c50248ea
Graphics protocol: Only delete temp files if they have the string tty-graphics-protocol in their file paths.
...
This prevents deletion of arbitrary files in /tmp via the graphics
protocol.
2022-08-16 11:25:33 +05:30
Kovid Goyal
ca2a121696
Nicer error when listen on socket is not found
2022-08-16 10:59:51 +05:30
Kovid Goyal
02d06d6726
Fix --allow-remote-control without passwords not working
2022-08-16 10:51:54 +05:30
Kovid Goyal
18bf76d49e
Dont set KITTY_LISTEN_ON for windows with --allow-remote-control
2022-08-16 10:50:17 +05:30
Kovid Goyal
6961845167
ask kitten: fix button click area offset vertically
2022-08-16 10:35:51 +05:30
Kovid Goyal
4c5f7f50f7
Control KITTY_LISTEN_ON more precisely
2022-08-16 10:16:18 +05:30
Kovid Goyal
572e920466
Allow restricting the remote control actions in specific windows
2022-08-16 07:08:51 +05:30
Kovid Goyal
b81fb3c865
Disable pre-warming when running gen-config.py
2022-08-16 05:41:46 +05:30
Kovid Goyal
814dd8a275
allow_remote_control should be per window not per child
2022-08-15 21:32:14 +05:30
Kovid Goyal
1619687d1d
Allow specifying allowed actions when no password is sent
2022-08-15 21:05:53 +05:30
Kovid Goyal
65fc61a507
Remove unused code
2022-08-15 20:54:17 +05:30
Kovid Goyal
d027f524ce
Make allow_remote_control a little more fine grained
...
Also, only respect listen_on if there is a possiblility of rc commands
over it being accepted
2022-08-15 20:51:11 +05:30
Kovid Goyal
df5e6e1563
simpler ignore pattern
2022-08-15 20:15:30 +05:30
Kovid Goyal
5541e3c2ff
More robust cleaning of launcher dir
2022-08-14 23:39:26 +05:30
Kovid Goyal
57dfc379ae
Fix cocoa being loaded before the fork on macOS
2022-08-14 22:17:27 +05:30
Kovid Goyal
b5467b8e26
Set the cocoa uncaught exception handler during glfw init not at module import time
2022-08-14 19:33:32 +05:30
Kovid Goyal
a9f1928913
...
2022-08-14 19:16:47 +05:30
Kovid Goyal
ae16fed39b
Fix repeated make app failing on macOS
2022-08-14 19:01:58 +05:30
Kovid Goyal
848a795d26
Fix minimal macos bundle build
2022-08-14 13:48:45 +05:30
Kovid Goyal
deb8c3dacd
Dont put the launcher source files in the root directory
2022-08-14 13:01:29 +05:30
Kovid Goyal
3cb572b47a
Fix build on older gcc
2022-08-14 10:12:17 +05:30
Kovid Goyal
df3846fbb8
Add instructions on how to install the man pages under desktop integration
2022-08-12 23:33:06 +05:30
Kovid Goyal
d73ceb26ae
Use the RFC as the reference for base-85 encoding
2022-08-12 15:38:28 +05:30
Kovid Goyal
da9ffc9b93
Allow using IV and tags longer than the minimum lengths
2022-08-12 13:21:57 +05:30
Kovid Goyal
63fa0c4e94
Nicer fix for human_repr of keys defined with kitty_mod
2022-08-12 12:37:15 +05:30
Kovid Goyal
ce91b6d9d9
Switch to using the new SingleKey implementation
2022-08-12 12:21:06 +05:30
Kovid Goyal
c982f24faf
Add some tests for hashing and __eq__
2022-08-12 12:02:22 +05:30
Kovid Goyal
9f865adb83
DRYer
2022-08-12 11:39:26 +05:30
Kovid Goyal
b54dd1cb48
Increase the max key num that is storeable
2022-08-12 11:37:54 +05:30
Kovid Goyal
ef621aa099
DRYer
...
Also dont store negative values for key. Unset is 0 not -1
2022-08-12 11:35:45 +05:30
Kovid Goyal
df4738f080
...
2022-08-12 11:24:18 +05:30
Kovid Goyal
8d0a06325c
Update config types for new value of KITTY_MOD
2022-08-12 11:07:11 +05:30
Kovid Goyal
f3329fcd34
Fix storage for GLFW_MOD_KITTY
2022-08-12 09:58:50 +05:30
Kovid Goyal
af48547d8b
Implement SingleKey._replace
2022-08-12 09:40:58 +05:30
Kovid Goyal
f228f8368a
A faster version of SingleKey
2022-08-12 09:17:42 +05:30
Kovid Goyal
9bb2c1a27b
Type objects should be static
2022-08-12 08:32:11 +05:30
Kovid Goyal
aa0b07a90d
Fix #5371
2022-08-12 08:15:25 +05:30
Kovid Goyal
d4075bfa9a
...
2022-08-12 07:01:40 +05:30
Weng Xuetian
7fd119d0eb
Fix message recursion between wayland compositor ( #5360 )
...
1. Only update preedit if preedit changed.
2. Only send cursor update if cursor position is not changed.
2022-08-11 15:45:45 -07:00
Kovid Goyal
2b7455e353
Use kitty_mod in debug config output
...
Fixes #5367
2022-08-11 23:45:23 +05:30
Kovid Goyal
f42d2c63a6
Add type annotations to rc protocol field definitions
2022-08-11 22:14:33 +05:30
Kovid Goyal
6be3ae9efc
Start work on standalone remote control script
2022-08-11 21:05:04 +05:30
Kovid Goyal
2fd2e07342
Fix #5366
2022-08-11 15:47:06 +05:30
Kovid Goyal
1e0e32e282
DRYer
2022-08-11 13:42:38 +05:30
Kovid Goyal
b2d8f24499
Clean up the text a bit
2022-08-11 07:47:15 +05:30
Kovid Goyal
12c99741a0
Add an example of restricting the launch command
2022-08-11 07:35:18 +05:30
Kovid Goyal
91dbcf4df0
Link to encryption spec
2022-08-11 07:29:56 +05:30
Kovid Goyal
6ebd82a84c
Note which version remote_control_password was added
2022-08-11 06:52:37 +05:30
Kovid Goyal
c07178f43a
Avoid transmitting the currently un-needed enc_proto
2022-08-11 06:48:35 +05:30
Kovid Goyal
78a5957863
Highlight the JSON blocks appropriately
2022-08-11 06:46:42 +05:30
Kovid Goyal
cd6882d21e
...
2022-08-11 06:40:44 +05:30
Kovid Goyal
926a2828ab
5 minutes does not actually prevent replay just minimise it
2022-08-11 06:38:59 +05:30
Kovid Goyal
daa7df96d1
...
2022-08-11 06:38:04 +05:30
Kovid Goyal
84ca83ef69
Document the encryption used by remote_control_password
2022-08-11 06:35:25 +05:30
Kovid Goyal
ac9c85e783
Add a note about password auth over SSH
2022-08-11 06:08:28 +05:30
Kovid Goyal
331f6d4903
Document remote_control_password more thoroughly
...
Also ignore failures in custom auth functions
2022-08-11 05:58:02 +05:30
Kovid Goyal
2e422e5ba8
Use getpass() to read the password from STDIN when it is a tty
2022-08-11 05:20:05 +05:30
Kovid Goyal
20cffc728e
Close tty_fd after dup2
2022-08-11 05:10:15 +05:30
Kovid Goyal
b06cbc9465
Use the OS secure random number generator rather than the OpenSSL one to generate IVs
...
The OpenSSL one is not fork safe, and in general I trust kernel CSRNG
more than OpenSSL
2022-08-11 05:07:38 +05:30
Kovid Goyal
1348327414
Pressing esc for the permission dialog should be same as reject this request
2022-08-10 20:36:15 +05:30
Kovid Goyal
cd3eeb7a95
Center choice message correctly when it is multi-line
...
Also fix button wrap calculation. It was not taking the borders into
account.
2022-08-10 20:34:25 +05:30
Kovid Goyal
7be6b28011
Preserve blanks lines and per line formatting in the ask kitten for the message with choices
2022-08-10 20:10:17 +05:30
Kovid Goyal
ef1bee0f48
Shorten text
2022-08-10 20:00:20 +05:30
Kovid Goyal
702da542dd
Use a as the default accelerator rather than t
2022-08-10 19:11:18 +05:30
Kovid Goyal
5ba92d06cf
Get async response working with sockets
2022-08-10 19:10:04 +05:30
Kovid Goyal
34a7b42063
Dont print traceback when socket is unexpectedly closed
2022-08-10 19:06:57 +05:30
Kovid Goyal
963d1b58f8
Better error message when socket is closed without response
2022-08-10 18:53:15 +05:30
Kovid Goyal
fe598bac8a
Quote ^ as it is a special char in some shells
2022-08-10 17:39:05 +05:30
Kovid Goyal
45736d7f1d
...
2022-08-10 17:28:22 +05:30
Kovid Goyal
0fe4f5a686
Fix password based rc not working with generator responses
2022-08-10 17:24:10 +05:30
Kovid Goyal
e9ce5c02d0
Allow remote control commands to be interrupted by ctrl-c while waiting for a response
2022-08-10 17:00:04 +05:30
Kovid Goyal
5916d82580
Send disallowed responses when permission for rc is denied
2022-08-10 16:28:14 +05:30
Kovid Goyal
2c83b9902e
Implement the permissions system for password based rc requests
2022-08-10 15:49:50 +05:30
Kovid Goyal
fe07825ad9
Work on new permissions framework for rc commands
2022-08-10 12:36:04 +05:30
Kovid Goyal
56e83d7d07
Write code to decrypt commands received in kitty
2022-08-10 12:36:04 +05:30
Kovid Goyal
c7e3c92a0a
Allow listen_on to be used even without allow_remote_control
...
Since we intend to allow password based access, which works regardless
of the value of allow_remote_control
2022-08-10 12:36:04 +05:30
Kovid Goyal
1a643441f3
Make the kitty public key available as an env var to child processes
2022-08-10 12:36:04 +05:30
Kovid Goyal
2aee746da9
Write the code to encrypt rc messages to kitty
2022-08-10 12:36:04 +05:30
Kovid Goyal
e64b1ba67c
Start work on remote control passwords
2022-08-10 12:36:04 +05:30
Kovid Goyal
31be4f041e
remove unused code
2022-08-10 12:31:47 +05:30
Kovid Goyal
1f5ebc408d
When searching macOS for openssl search for the same version as used by the python we are running
2022-08-10 12:30:36 +05:30
Kovid Goyal
b4d9a22df8
Install the same version of OpenSSL as used by python on brew based CI
2022-08-10 12:21:01 +05:30
Kovid Goyal
d4168e3b80
Dont add openssl to the brewfile
...
We only need to install it on CI because the python on CI doesnt come
from brew. Normal brewfile based installation will install openssl as a
dependency of python
2022-08-10 12:02:43 +05:30
Kovid Goyal
241c7af855
DRYer
2022-08-10 11:45:07 +05:30
Kovid Goyal
080fcd8fc1
Link against newer rather than older openssl
2022-08-10 11:36:56 +05:30
Kovid Goyal
1aad4c7ec3
Only search for brew openssl on failure
2022-08-10 11:35:43 +05:30
Kovid Goyal
e0e0582b53
Fix #5364
...
macOS is *the* worst UNIX I have ever seen.
2022-08-10 11:33:30 +05:30
Kovid Goyal
0a6276b007
Implement completion for kitty @ global options
2022-08-09 18:54:38 +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
6860f7ffd6
fix zsh serialization of directory candidates ending with /
2022-08-09 14:51:14 +05:30
Kovid Goyal
33a3e3fb61
Add completion for kitty @ launch --logo
2022-08-09 14:30:13 +05:30
Kovid Goyal
d4df3f67b6
Allow specifying completion for command line arguments that expect paths
2022-08-09 14:21:12 +05:30
Kovid Goyal
f15a2f0c1f
Change --session to resolve relative paths from the kitty config dir
2022-08-09 12:36:16 +05:30
Kovid Goyal
252288aff2
kitten completion: Fix --long-opt <TAB> not working
2022-08-09 12:02:25 +05:30
Kovid Goyal
65a20a2407
Merge branch 'show-key-kitten' of https://github.com/page-down/kitty
2022-08-09 11:32:10 +05:30
pagedown
5f180dbd9a
...
2022-08-09 12:29:22 +08:00
pagedown
ee4e9aa678
Add missing modifier key aliases
2022-08-09 12:15:55 +08:00
pagedown
9f1c9529aa
Allow completion for show_key kitten
...
Use the lowercase form of kitty.
2022-08-09 12:15:48 +08:00
Kovid Goyal
5bba1a0851
get_current_selection should return char* not const char*
2022-08-09 09:05:13 +05:30
Kovid Goyal
e9823eb40c
Cleanup previous PR
2022-08-09 08:54:47 +05:30
Kovid Goyal
14fc3f6ac4
Merge branch 'macos-accessibility' of https://github.com/page-down/kitty
2022-08-09 08:52:44 +05:30
pagedown
74714f942a
Implement macOS accessibility protocol to provide selected text
...
Allow "Speak selection" (Option+Esc) to work properly.
2022-08-09 11:02:12 +08:00
pagedown
0d116e6ef0
Use four spaces to indent
2022-08-08 22:31:55 +05:30
pagedown
06108d66b1
Replace tab with four spaces indent
2022-08-08 22:31:55 +05:30
Kovid Goyal
21eece4c6d
Ensure no bytecode is written when running shell based tests
2022-08-08 17:50:59 +05:30
Kovid Goyal
4dd696e4e0
Add API to glfw to get the currently active text selection
2022-08-08 15:52:34 +05:30
Kovid Goyal
d04d4444af
implement primary selection api on cocoa as stubs, can be useful for #5357
2022-08-06 12:59:15 +05:30
Kovid Goyal
a487a78200
Add type definitions for the crypto data types
2022-08-05 14:39:20 +05:30
Kovid Goyal
f06a72b418
OpenSSL 3.0 apparently has API to get rid of the tag length magic number. Lets hope it works
2022-08-05 14:28:56 +05:30
Kovid Goyal
3270c9a527
Get rid of various magic length constants
2022-08-05 14:17:42 +05:30
Kovid Goyal
a7b7fb560a
Add tests for AES256GCM
2022-08-05 13:50:03 +05:30
Kovid Goyal
384eba6cd4
Wrap the OpenSSL API for AES 256 GCM encryption
2022-08-05 13:14:25 +05:30
Kovid Goyal
dc7e3ba1ec
DRYer
2022-08-05 08:57:22 +05:30
Kovid Goyal
b1e0adcfdc
...
2022-08-05 08:14:29 +05:30
Kovid Goyal
2a5922ce92
Cleanup previous PR
...
The reason maxsplit is 1 is because some layout action in the future may need more
sophisticated args processing, for example, shlex.split() instead of
plain split(), or even a full command line parser.
2022-08-05 08:12:05 +05:30
Kovid Goyal
93694925ce
Merge branch 'feature/toggle_bias' of https://github.com/mong8se/kitty
2022-08-05 08:11:35 +05:30
Steven Moazami
adfcbb004f
Add layout_action to change bias on tall layout
...
Can specify 1 bias to toggle between that and 50%.
Can specify multiple biases to rotate through them with each call to the
layout_action.
Left a comment regarding working around either a possible bug or a
design decision.
2022-08-04 19:29:17 -04:00
Kovid Goyal
6595898b73
Merge branch 'patch-4' of https://github.com/ctrlcctrlv/kitty
2022-08-04 20:45:29 +05:30
Fredrick Brennan
81b33f1f6f
Document how to build docs
2022-08-04 11:12:04 -04:00
Kovid Goyal
a1c4ffec20
Private raw key should be returned as a secret
2022-08-04 20:27:38 +05:30
Kovid Goyal
89854cca8b
Test for secret derivation
2022-08-04 20:05:19 +05:30
Kovid Goyal
4fe5211ed7
Code to derive the shared secret with elliptic curve keys
2022-08-04 19:42:38 +05:30
Kovid Goyal
795b32efd7
Bash integration: Fix the inherit_errexit option being set by shell integration
...
Fixes #5349
2022-08-04 16:23:52 +05:30
Kovid Goyal
153064ef3a
Fail if mlock fails
2022-08-04 11:16:36 +05:30
Kovid Goyal
183a31c884
mlock() the returned private key to prevent it from being saved to swap
2022-08-04 11:08:54 +05:30
Kovid Goyal
adf47bed89
Use an actual type for the EC key rather than a capsule
2022-08-04 11:01:14 +05:30
Kovid Goyal
cc297a8984
Merge branch 'patch-1' of https://github.com/TomFaulkner/kitty
2022-08-04 07:39:38 +05:30
Tom Faulkner
4ef17edace
Fix doc typo: throught to throughout
...
Just a typo in the docs. Kitty is great, thanks for all the hard work.
2022-08-03 23:52:00 +00:00
Kovid Goyal
e56fa9d31f
Try and get Homebrew installed OpenSSL to work
2022-08-03 23:17:47 +05:30
Kovid Goyal
791d4b30fb
We need openssl installed via brew
2022-08-03 22:47:11 +05:30
Kovid Goyal
a9a9f1ac00
Add a mappable action to toggle the mirrored setting for the tall and fat layouts
...
Fixes #5344
2022-08-03 22:45:38 +05:30
Kovid Goyal
fd6bc55db6
Start work on implementing public key crypto
...
Will come in handy for various things in the future, so lets just setup
the API now. No new dependencies are needed since Python already depends
on OpenSSL.
2022-08-03 22:37:35 +05:30
Kovid Goyal
97d7329d14
A nicer fix for kitty @ ls | less
...
We rely on the fact that cfmakeraw() and less's code to put the tty in
raw state diverge. This is obv a hack but then so is kitty @ ls | less
This hack allows
kitty +kitten clipboard --get-clipboard > output
to work.
2022-08-02 18:33:53 +05:30
Kovid Goyal
609d42e2bc
Ignore EAGAIN when doing tty io
2022-08-02 17:21:28 +05:30
Kovid Goyal
3463931dad
Rewrite clipboard kitten to only change termios settings while it is actually reading from terminal
2022-08-02 17:14:27 +05:30
Kovid Goyal
f637bf2377
socket prewarm: Dont control the tty if STDOUT is not a tty
...
This is because we could be being piped to a program like less that does
want to control the tty itself
2022-08-02 14:09:34 +05:30
Kovid Goyal
2271eb5e60
Document KITTY_PREWARM_SOCKET_REAL_TTY
2022-08-02 08:38:07 +05:30
Kovid Goyal
a5cbb552f0
Allow prewarming of kitty @ commands
2022-08-01 19:47:28 +05:30
Kovid Goyal
e43ca5b031
Add an implementation using splice() for in-kernel tty copies
...
Sadly splice is currently not functional in Linux, so the implementation
is turned off
2022-08-01 19:16:51 +05:30
Kovid Goyal
cc7e668ad6
Cleanup editing of proc environ
2022-08-01 19:03:03 +05:30
Kovid Goyal
a01dbbdf04
Fix launcher not building universal
2022-08-01 19:03:03 +05:30
Kovid Goyal
e0ce0a67cc
ensure setting KITTY_PREWARM_SOCKET_REAL_TTY does not clobber the environ
2022-08-01 19:03:03 +05:30
Kovid Goyal
0d83a8866b
Make setting the real tty name more robust
2022-08-01 19:03:03 +05:30
Kovid Goyal
f7a7e39a36
prewarm wrapper should indicate it is active via the process environment
2022-08-01 19:03:03 +05:30
Kovid Goyal
67cb466ea9
...
2022-08-01 19:03:03 +05:30
Kovid Goyal
376688ab9f
Add a test for SIGTSTP via ctrl-z
2022-08-01 19:03:03 +05:30
Kovid Goyal
8668087d15
flush data when exiting on signal as well
...
should make the signal tests less flaky
2022-08-01 19:03:03 +05:30
Kovid Goyal
9b1c23987c
Fix stdout line_buffering incorrect when parent kitty instance has its stdout redirected to a file
2022-08-01 19:03:03 +05:30
Kovid Goyal
784daa1a4b
Update changelog for socket prewarm
2022-08-01 19:03:03 +05:30
Kovid Goyal
06f9b73a7b
Workaround mypy bug
2022-08-01 19:03:03 +05:30
Kovid Goyal
62c0272df2
Get test.py working when prewarm socket is in operation
2022-08-01 19:03:03 +05:30
Kovid Goyal
7ce2b4c641
Indicate in kitty_run_data we are prewarmed
2022-08-01 19:03:03 +05:30
Kovid Goyal
08c2de541f
Nicer establish_controlling_tty
2022-08-01 19:03:03 +05:30
Kovid Goyal
94551623ec
Make JSON reading test a bit more robust
2022-08-01 19:03:02 +05:30
Kovid Goyal
cb0d23bae8
Use sub tests for the various prewarm things
2022-08-01 19:03:02 +05:30
Kovid Goyal
cb5157f2d1
Nicer implementation of eintr_retry that does not prevent type checking of wrapped functions arguments
2022-08-01 19:03:02 +05:30
Kovid Goyal
32dcbbb5e1
...
2022-08-01 19:03:02 +05:30
Kovid Goyal
4eedf0d36c
macOS needs SIGTTOU SIGTTIN explicitly ignored to allow the supervisor to use TIOCSWINSZ
2022-08-01 19:03:02 +05:30
Kovid Goyal
be458303c5
Debounce WINSZ events
2022-08-01 19:03:02 +05:30
Kovid Goyal
78542ede14
Separate test for SIGWINCH handling
2022-08-01 19:03:02 +05:30
Kovid Goyal
df8800b7ff
tcsetpgrp can raise EINTR despite python claiming to auto retry
2022-08-01 19:03:02 +05:30
Kovid Goyal
9c30cd8891
Use a process supervisor for socket workers
...
This simplifies the code and also allows SIGTSTP to work as the worker
process is no longer in an orphaned process group.
2022-08-01 19:03:02 +05:30
Kovid Goyal
dda28efd66
Use the same signal to stop as stopped the child
2022-08-01 19:03:02 +05:30
Kovid Goyal
b78183972c
Report child stop to wrapper process
2022-08-01 19:03:02 +05:30
Kovid Goyal
fc06196a3e
Restore termios state when stopping
2022-08-01 19:03:02 +05:30
Kovid Goyal
2a1809a2d8
When exiting with a signal run cleanup
2022-08-01 19:03:02 +05:30
Kovid Goyal
ac5c312267
Work on handling child stop events
2022-08-01 19:03:02 +05:30
Kovid Goyal
8f3174038b
Fix running of test suite inside kitty
2022-08-01 19:03:02 +05:30
Kovid Goyal
2d8113e0e0
Give up on signal delivery tests
2022-08-01 19:03:02 +05:30
Kovid Goyal
e881850bb4
...
2022-08-01 19:03:02 +05:30
Kovid Goyal
4cbae1db89
...
2022-08-01 19:03:02 +05:30
Kovid Goyal
97bce7be18
and again
2022-08-01 19:03:01 +05:30
Kovid Goyal
5d2a276172
...
2022-08-01 19:03:01 +05:30
Kovid Goyal
762dfe8315
increase timeout since signal delivery on CI is flakey
2022-08-01 19:03:01 +05:30
Kovid Goyal
1c0d1ec8a9
wait for child events explicitly
2022-08-01 19:03:01 +05:30
Kovid Goyal
e650699217
py3.8 compat
2022-08-01 19:03:01 +05:30
Kovid Goyal
5ff2b5be1c
Clear out any signals before ending test
2022-08-01 19:03:01 +05:30
Kovid Goyal
f1841d7c81
DRYer
2022-08-01 19:03:01 +05:30
Kovid Goyal
fd6231a778
Fix signal reading in prewarm wrapper
2022-08-01 19:03:01 +05:30
Kovid Goyal
751a52153d
Restore python signal handlers properly after the test
2022-08-01 19:03:01 +05:30
Kovid Goyal
61b733bae9
Add a test for SIGCHLD on SIGTSTP
2022-08-01 19:03:01 +05:30
Kovid Goyal
624e96df9b
wrapper process should exit with signal if prewarmed worker exits with signal
2022-08-01 19:03:01 +05:30
Kovid Goyal
a3f1a44d83
OK I give up I cant get signal delivery to work reliably
2022-08-01 19:03:01 +05:30
Kovid Goyal
ed1547938e
When running tests ensure the signal mask is empty for processes run in the testing pty
2022-08-01 19:03:01 +05:30
Kovid Goyal
f96a13e9e4
mask handled signals when running signal handler
2022-08-01 19:03:01 +05:30
Kovid Goyal
7b70ed96b6
DRYer
2022-08-01 19:03:01 +05:30
Kovid Goyal
9379853d47
Get the SIGINT test working on macOS
2022-08-01 19:03:01 +05:30
Kovid Goyal
6ccfebd9e3
...
2022-08-01 19:03:01 +05:30
Kovid Goyal
45186a17ca
macOS doesnt allow TIOCSWINSZ from any process other than the process connected to the terminal or its parent
...
So send it over the socket to the zygote and have it resize the
terminal. Sigh.
2022-08-01 19:03:00 +05:30
Kovid Goyal
24bb4585af
Allow easily skipping tests when updating on ox
2022-08-01 19:03:00 +05:30
Kovid Goyal
feb96f1be8
Use O_CLOEXEC for temp ctty fds
2022-08-01 19:03:00 +05:30
Kovid Goyal
b7d3d64975
Ignore error condition on master fd of testing pty
2022-08-01 19:03:00 +05:30
Kovid Goyal
6114b49630
Ensure pty is in utf8
2022-08-01 19:03:00 +05:30
Kovid Goyal
87d95caae0
Dont bother sending slave fd over the socket as it doesnt help on macOS anyway
2022-08-01 19:03:00 +05:30
Kovid Goyal
9535bc94ff
Use both open and the ioctl to set the controlling terminal
2022-08-01 19:03:00 +05:30
Kovid Goyal
0841be7803
Test sigwinch handling
2022-08-01 19:03:00 +05:30
Kovid Goyal
6cec89181b
dont abort when failing to write to a tty
2022-08-01 19:03:00 +05:30
Kovid Goyal
cb78e17594
dont break when socket is pre-closed
2022-08-01 19:03:00 +05:30
Kovid Goyal
285c399ae5
...
2022-08-01 19:03:00 +05:30
Kovid Goyal
c9b14f6f78
Switch to using select() instead of poll() in prewarm wrapper
...
This is because poll() is broken on macOS with pty fds
2022-08-01 19:03:00 +05:30
Kovid Goyal
6a101c51d2
Close tty_fd in master on fork() rather than on close()
2022-08-01 19:03:00 +05:30
Kovid Goyal
8998970adc
Make the socket prewarm test a bit more robust
2022-08-01 19:03:00 +05:30
Kovid Goyal
991fbacb99
Fix ttyfd passing
2022-08-01 19:03:00 +05:30
Kovid Goyal
72f3e8cd40
Avoid passing around pty paths, instead send the pty fd
2022-08-01 19:03:00 +05:30
Kovid Goyal
cf8113ea24
Even more flexible management of poll data
2022-08-01 19:03:00 +05:30
Kovid Goyal
5d1cf49fb6
Only set control msg metadata when actually sending a control msg
2022-08-01 19:03:00 +05:30
Kovid Goyal
90f3c0f9af
Workaround macOS weirdness
2022-08-01 19:02:59 +05:30
Kovid Goyal
d02598688a
Show full traceback for failures to fork socket child
2022-08-01 19:02:59 +05:30
Kovid Goyal
1991f1ccd7
Better handling of multiple optional to poll fds
2022-08-01 19:02:59 +05:30
Kovid Goyal
8fad8972d5
...
2022-08-01 19:02:59 +05:30
Kovid Goyal
fc3e78e226
Also handle SIGQUIT
2022-08-01 19:02:59 +05:30
Kovid Goyal
15aace29a1
Restore python signal handlers in forked workers
2022-08-01 19:02:59 +05:30
Kovid Goyal
12a3a2d7fe
Only set switch interval after prewarm fork
2022-08-01 19:02:59 +05:30
Kovid Goyal
7e26a340a3
Try to read from child pty even after zygote signals its death
2022-08-01 19:02:59 +05:30
Kovid Goyal
f0764c24d2
Retry read/write while there is space
2022-08-01 19:02:59 +05:30
Kovid Goyal
d080bf3b9c
Forward termination signals
2022-08-01 19:02:59 +05:30
Kovid Goyal
51698dff07
...
2022-08-01 19:02:59 +05:30
Kovid Goyal
4154926be7
Get the test to pass on macOS
2022-08-01 19:02:59 +05:30
Kovid Goyal
806ca2b224
Fix atexit handlers being called in forked children
...
In particular the atexit handler for random_unix_socket()
2022-08-01 19:02:59 +05:30
Kovid Goyal
92bbf08343
Fix socket connect call on non-linux
2022-08-01 19:02:59 +05:30
Kovid Goyal
dc84e3de67
Do not hang forever waiting for child death
2022-08-01 19:02:59 +05:30
Kovid Goyal
8011801549
re-init openssl PRNG when forking for prewarm
2022-08-01 19:02:59 +05:30
Kovid Goyal
dfec88ed15
Inherit full outside env
2022-08-01 19:02:59 +05:30
Kovid Goyal
5d3e2c7111
...
2022-08-01 19:02:58 +05:30
Kovid Goyal
af1c48e0f7
Dont rely on having source of test modules available
2022-08-01 19:02:58 +05:30
Kovid Goyal
d4bc906c5c
Fix launcher build with sanitize
2022-08-01 19:02:58 +05:30
Kovid Goyal
62fe467336
...
2022-08-01 19:02:58 +05:30
Kovid Goyal
ef3e9d1c2e
make various compilers happy
2022-08-01 19:02:58 +05:30
Kovid Goyal
09ddbbf600
Finish move of prewarm launcher into its own compilation unit
2022-08-01 19:02:58 +05:30
Kovid Goyal
4195c239c8
Start moving prewarm launcher into its own compilation unit
2022-08-01 19:02:58 +05:30
Kovid Goyal
a6c3c57d40
Test stdio redirection with socket prewarm
2022-08-01 19:02:58 +05:30
Kovid Goyal
de9263a117
Verify uid/gid of connection from a prewarm client
2022-08-01 19:02:58 +05:30
Kovid Goyal
7b7f1ecc54
Add basic tests for socket prewarm
2022-08-01 19:02:58 +05:30
Kovid Goyal
d1b028c27a
Dont pass inherited KITTY_PREWARM_SOCKET
2022-08-01 19:02:58 +05:30
Kovid Goyal
055aae2382
Use correct exit codes for signals
2022-08-01 19:02:58 +05:30
Kovid Goyal
dbb084da7a
Cleanup closing of socket child
2022-08-01 19:02:58 +05:30
Kovid Goyal
8332cd2f79
Avoid needing to call os.getpid() repeatedly
2022-08-01 19:02:58 +05:30
Kovid Goyal
4e29c0c16b
Propagate SIGWINCH
2022-08-01 19:02:58 +05:30
Kovid Goyal
320d45a3f5
Only use prewarm socket if uid and gid match
2022-08-01 19:02:58 +05:30
Kovid Goyal
73795b5257
detect when socket child closes its tty
2022-08-01 19:02:58 +05:30
Kovid Goyal
16e59784c6
handle failures to send data over socket gracefully
2022-08-01 19:02:58 +05:30
Kovid Goyal
65a7ec3f85
move socket launch handling into its own function
2022-08-01 19:02:57 +05:30
Kovid Goyal
360ff35061
Better error logging from prewarm zygote
2022-08-01 19:02:57 +05:30
Kovid Goyal
5098792723
Make the tty pipes non-blocking
2022-08-01 19:02:57 +05:30
Kovid Goyal
a4883e6d41
Transfer data between ttys
2022-08-01 19:02:57 +05:30
Kovid Goyal
44c9d66dd4
Use a map for pid -> socketchild
2022-08-01 19:02:57 +05:30
Kovid Goyal
c7718d078c
Fix parsing of child pid and exit code
2022-08-01 19:02:57 +05:30
Kovid Goyal
2525994db4
...
2022-08-01 19:02:57 +05:30
Kovid Goyal
81e6afa9b3
Cleanup fd transmit
2022-08-01 19:02:57 +05:30
Kovid Goyal
d8f5ccf9e4
Make master tty raw and print error messages with more context
2022-08-01 19:02:57 +05:30
Kovid Goyal
774489c578
...
2022-08-01 19:02:57 +05:30
Kovid Goyal
39bb0ecfcf
more work on socket based prewarm
2022-08-01 19:02:57 +05:30
Kovid Goyal
b222ab1bf6
Start work on socket based prewarm
2022-08-01 19:02:57 +05:30
Kovid Goyal
7a31c7ff50
Start work on everywhere prewarm
2022-08-01 19:02:57 +05:30
Kovid Goyal
132f87d152
show_key: use a better representation of the space key when
2022-08-01 13:25:56 +05:30
Kovid Goyal
aedda4bf9b
...
2022-07-31 10:36:03 +05:30
Kovid Goyal
40bba70bfe
Wayland IME: Avoid printing errors for compositors that pointlessly acknowledge previous IME commits rather than just the current one. Apparently kwin is one such. Fixes #5339
2022-07-31 10:22:40 +05:30
Kovid Goyal
8202247b27
DRYer
2022-07-29 12:51:36 +05:30
Kovid Goyal
e2117ee8a4
ssh kitten: Allow completion of ssh options between the destination and command
...
This contravenes the documented command line parsing behavior of ssh but
matches its actual implementation. Sigh.
Fixes #5322
2022-07-29 08:29:49 +05:30
Kovid Goyal
e3a4150fea
Second draw attempt has single fade edge
2022-07-29 08:15:38 +05:30
Kovid Goyal
0ce2a23af3
Allow tab title templates to use the current max title length
2022-07-29 07:43:55 +05:30
Kovid Goyal
6b2337c9c0
Merge branch 'master' of https://github.com/newbee1905/kitty-1
2022-07-26 20:27:59 +05:30
newbee1905
54661b7fc4
reflector: replace unecessary while loop
2022-07-26 21:47:52 +07:00
Kovid Goyal
a1f895b781
Merge branch 'master' of https://github.com/nullchilly/kitty
2022-07-26 19:10:34 +05:30
nullchilly
199c271edc
Fix modify_font underline_position 1
2022-07-26 20:08:04 +07:00
Kovid Goyal
9ac744ae63
DRYer
2022-07-26 16:10:43 +05:30
Kovid Goyal
93b05bcd1e
Make the calculation of the bound for underline_position more precise
...
Fixes #5308
2022-07-26 16:07:01 +05:30
Kovid Goyal
546cdbefae
Don't expose all Tab methods in title template
...
They can have side effects so prevent user from foot shot
2022-07-26 13:13:00 +05:30
Kovid Goyal
352c07987b
Nicer fix for showing cwd in tab titles
2022-07-26 12:35:07 +05:30
Kovid Goyal
f6a1eb19d7
Only import ReferenceType when type checking
2022-07-26 11:06:19 +05:30
Kovid Goyal
a352804c14
Merge branch 'misc' of https://github.com/page-down/kitty
2022-07-26 11:04:01 +05:30
pagedown
28ae8c4d20
Expand ~ when resolving editor path and applying exe_search_path
2022-07-26 13:21:50 +08:00
pagedown
1eef584382
Replace tr with string built-in in fish integration
2022-07-26 13:21:36 +08:00
pagedown
4e1cd0590b
Use builtin to call read in zsh integration and bash integration
2022-07-26 13:20:50 +08:00
pagedown
fa670e1f5d
...
2022-07-26 13:20:41 +08:00
Kovid Goyal
c7fa6f620a
py3.8 compat
2022-07-26 08:39:33 +05:30
Kovid Goyal
04690c8c7c
Dont incur the cost of checking the cwd of a process on every tabbar update unless actually needed
2022-07-26 08:19:14 +05:30
Kovid Goyal
4345ea6602
Remove debugging code I left in the last commit accidentally
2022-07-26 08:17:44 +05:30
Kovid Goyal
d39c212336
Merge branch 'add-cwd-TabBarData' of https://github.com/nxvxl/kitty
2022-07-26 08:08:14 +05:30
Kovid Goyal
54d2f06abe
remote files kitten: Fix working with files whose names have characters that need to be quoted in shell scripts
...
Fixes #5313
2022-07-26 08:06:25 +05:30
noval
237bfc9a6e
add cwd to TabBarData
...
this option add current working directory to the tab by using active windows child directory.
2022-07-26 09:33:55 +07:00
Kovid Goyal
29b3d49cd5
Note that the crossterm library has added support for the kitty keyboard protocol
2022-07-26 07:45:57 +05:30
Kovid Goyal
fe8892ec54
Update changelog for previous PR
2022-07-21 20:03:46 +05:30
Kovid Goyal
2d8dd7a53e
Merge branch 'rc-scroll-window' of https://github.com/page-down/kitty
2022-07-21 20:03:05 +05:30
pagedown
b493599690
Remote control: Allow half-scrolling when scrolling window by page
2022-07-21 21:05:56 +08:00
Kovid Goyal
d9371dc265
ssh kitten: Better handling of exit on keyboard interrupt
2022-07-20 21:40:51 +05:30
Kovid Goyal
ef2a12fbdf
Ignore sigint while draining the tty
2022-07-20 19:40:23 +05:30
Kovid Goyal
7215c6d6be
ssh kitten: Allow pressing Ctrl-C to abort ssh before the connection is completed
...
Fixing this involved adding a new mode to kitty where it handles
ctrl-c/z/q by sending signals to the tty foreground process group
instead of delegating to the kernel to do that. Since the pipe may be
full we have no way of knowing when the kernel will get around to
reading the signal byte. So send the signal ourselves.
Fixes #5271
2022-07-20 19:11:14 +05:30
Kovid Goyal
bd9e1f58fe
ssh kitten: Make discarding of garbage data after ssh fails more robust
...
We now roundtrip an UUID via the terminal and only exit after receiving
it back. This guarantees that any pending data in the pipe is discarded.
2022-07-20 13:28:51 +05:30
Kovid Goyal
79dec269e1
...
2022-07-16 10:25:18 +05:30
Kovid Goyal
d6ffbf4f3c
Rebuild before and after publishing if a branch change was needed
...
Sometimes branches break things
2022-07-16 10:18:05 +05:30
Kovid Goyal
32588939ae
Deprecate the adjust_baseline adjust_line_height and adjust_column_width options in favor of modify_font
...
Unifies handling and allow using pt units for those adjustments.
Note that the behavior of percentage sizes for adjust baseline is
backwards incompatible. It now uses the baseline value as the base
rather than the cell height.
2022-07-15 15:29:42 +05:30
Kovid Goyal
a02e07bfe8
Add modify_fonts to the changelog
...
Fixes #5265
2022-07-15 12:29:08 +05:30
Kovid Goyal
03df0c3cca
Actually implement modify_font
2022-07-15 12:27:42 +05:30
Kovid Goyal
1aa50b73a1
Allow pixel based adjustments as well
2022-07-15 11:45:43 +05:30
Kovid Goyal
c910f483bf
Improve formatting of config diff for modify_font
2022-07-15 11:15:57 +05:30
Kovid Goyal
14f4a8d28e
Make modify_font available to C code
2022-07-15 11:06:24 +05:30
Kovid Goyal
ee931a17b0
Start work on option to modify font characteristics
...
Implement parsing of the option
2022-07-15 08:54:53 +05:30
Kovid Goyal
0a2ba3fb66
Merge branch 'fix-macos-launch' of https://github.com/page-down/kitty
2022-07-14 16:45:08 +05:30
pagedown
512db660a1
macOS: Fix unable to open new tab/window when there is no OS window
2022-07-14 18:25:00 +08:00
Kovid Goyal
b0666c9180
test.py now needs kitty built
2022-07-13 20:00:54 +05:30
Kovid Goyal
57d3d09679
DRYer
2022-07-13 19:49:40 +05:30
Kovid Goyal
3a17f54bca
Add a note about how to exclude directories in the copy command
2022-07-12 16:23:48 +05:30
Kovid Goyal
4c2800b294
mask handled signals when running the signal handler
2022-07-10 12:52:51 +05:30
Kovid Goyal
8358377ec3
Fix reading multiple signals from buffer on macOS
2022-07-10 12:07:54 +05:30
Kovid Goyal
3ab12c616c
Merge branch 'patch-1' of https://github.com/kidonng/kitty
2022-07-09 14:45:48 +05:30
Kid
ef4e784121
Fix link formatting in docs
2022-07-09 16:00:51 +08:00
Kovid Goyal
1ead20a5b9
Add a GitHub icon to the docs footer
2022-07-08 20:36:32 +05:30
Kovid Goyal
31dfee8a95
Nicer error message for zsh versions before 5.1
2022-07-08 20:28:42 +05:30
Kovid Goyal
d6492264c7
Bash integration: Fix declare not creating global variables in .bashrc
...
Fixes #5254
2022-07-08 18:55:04 +05:30
Kovid Goyal
7281b9dbb1
Ensure local kitty is used when running the tests
2022-07-05 21:09:09 +05:30
Kovid Goyal
4b63ee036e
Run the test suite using the kitty binary
2022-07-05 21:05:03 +05:30
Kovid Goyal
fb8eb69c20
...
2022-07-03 20:51:59 +05:30
Kovid Goyal
4b1fa2609d
Match behavior of who when getting num_users by ignoring zombie pids
2022-07-03 14:46:54 +05:30
Kovid Goyal
a8b756f040
ssh kitten: A new option :code:--symlink-strategy to control how symlinks are copied to the remote machine
...
Fixes #5249
2022-07-03 14:03:56 +05:30
Kovid Goyal
a94a0f3026
Fix fd leak in prewarm zygote
2022-07-03 13:32:09 +05:30
Kovid Goyal
71c902eaf8
Build the launcher with debug symbols when using --debug
2022-07-03 13:28:57 +05:30
Kovid Goyal
6e7af8ce2e
Merge branch 'fix-last-cmd-output' of https://github.com/page-down/kitty
2022-07-02 10:18:16 +05:30
pagedown
6c80cd040c
Fix missing last line when getting output of the running command
2022-07-02 12:33:58 +08:00
Kovid Goyal
4ed413eaa7
Switch to GA2
2022-06-30 17:00:14 +05:30
Kovid Goyal
86357d2c38
...
2022-06-29 18:53:11 +05:30
Kovid Goyal
c0d4d01b88
...
2022-06-29 18:41:39 +05:30
Kovid Goyal
b3fcb53625
ssh kitten: Allow ssh kitten to work from inside tmux, provided the tmux session inherits the correct KITTY env vars
...
Fixes #5227
2022-06-29 18:40:22 +05:30
Kovid Goyal
4f29dea8ef
Utility function to detect when running inside tmux
2022-06-29 17:51:38 +05:30
Kovid Goyal
4f8ef05058
Linux: Update cursor position after all key presses not just pre-edit text changes
...
Fixes #5241
2022-06-29 11:37:35 +05:30
Kovid Goyal
7fc1735a21
swaps_disallowed is used only on wayland
2022-06-28 20:19:52 +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
Kovid Goyal
295fbe42ad
Merge branch 'misc' of https://github.com/page-down/kitty
2022-06-28 11:42:37 +05:30
Kovid Goyal
60d33f2847
Wayland: Reduce flicker at startup by not using render frames immediately after a resize
...
Fixes #5235
2022-06-28 11:29:57 +05:30
Kovid Goyal
cd369f633a
Wayland: Ensure that opengl buffer swapping does not happen till the xdg surface is configured
2022-06-28 10:47:33 +05:30
pagedown
c3df6d2fe3
Remove executable perms from kitten files
2022-06-28 11:59:47 +08:00
Kovid Goyal
72dfa74b3e
Avoid an extra buffer swap during startup
...
glfw should not be swapping buffers behind the clients back. Since we
control the client, we can ensure that the OpenGL VRAM is cleared before
the window is shown.
Also fixes the issue with the glfw wayland backend where the buffer was
being created before the surface was configured
2022-06-28 09:25:24 +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
pagedown
185d959f25
ssh kitten: Add MacPorts paths to the common locations for login shell
2022-06-28 11:43:19 +08:00
pagedown
1652d41992
Fix edit-in-kitty not working when option editor comes with arguments
2022-06-28 11:41:27 +08:00
pagedown
297dea881d
Use the same fish completion function for commands
2022-06-28 11:35:11 +08:00
pagedown
01df828353
Refactor the fish implementation of edit-in-kitty
...
Clean up global variable and signal handling function before exit.
For commands allowing the use of valid functions or binary executables.
2022-06-28 11:31:42 +08:00
pagedown
617115d447
Docs: edit-in-kitty works with neovim
2022-06-28 11:22:52 +08:00
Kovid Goyal
31f9978599
Merge branch 'patch-1' of https://github.com/AnonymouX47/kitty
2022-06-27 15:54:23 +05:30
My Avatar ;D
dc068c16e8
Update projects using kitty graphics protocol
...
Add `term-image` to the list of projects using the kitty graphics protocol.
2022-06-27 10:35:39 +01:00
Kovid Goyal
89626a462f
...
2022-06-25 20:46:02 +05:30
Kovid Goyal
a043588b4a
Update changelog for last PR
2022-06-25 16:50:46 +05:30
Kovid Goyal
2e08ee16c2
Merge branch 'fix-macos-jis-kbd' of https://github.com/page-down/kitty
...
Fixes #5232
2022-06-25 16:49:46 +05:30
pagedown
2cc506476b
macOS: Fix JIS Eisu and Kana keys not working
2022-06-25 19:01:02 +08:00
Kovid Goyal
0a462ad706
Forgot one place to change over to kitty_run_data
2022-06-24 10:31:55 +05:30
Kovid Goyal
81c1bfe1c5
...
2022-06-24 09:26:38 +05:30
Kovid Goyal
8ce80e39d9
kitty now needs python >= 3.8
2022-06-24 00:01:35 +05:30
Kovid Goyal
fa823a37ae
Backport 6281f498c8
2022-06-23 13:00:28 +05:30
Kovid Goyal
17f67fbe28
Add a note that WezTerm implements the kitty keyboard protocol as well
2022-06-23 11:22:01 +05:30
Kovid Goyal
560b78bc35
Dont leak kitty_run_data on error
2022-06-23 08:59:31 +05:30
Kovid Goyal
f023f047ff
Workaround for Python 3.11 breaking sys._xoptions
...
Apparently in Python-land its acceptable behavior to break backward
compatibility with documented interfaces on a whim. Bloody joke.
https://github.com/python/cpython/pull/28823
Fixes #5223
2022-06-23 08:44:34 +05:30
Kovid Goyal
5673359be2
Merge branch 'sam/modern-whiskers-icon' of https://github.com/samholmes/kitty
2022-06-22 04:11:41 +05:30
Samuel Holmes
666696d142
Add "modern whiskers" alternative icon to FAQ
2022-06-21 11:04:24 -07:00
Kovid Goyal
f95bc48f9b
kitty @ set-colors: Fix changing inactive_tab_foreground not working
...
Fixes #5214
2022-06-19 20:20:58 +05:30
Kovid Goyal
8d18fc09fa
Merge branch 'fix-rc-new-window' of https://github.com/page-down/kitty
2022-06-19 18:21:22 +05:30
Kovid Goyal
a3d42a90f2
Get rid of os.waitid() since its not present on macOS we cannot rely on it anyway
2022-06-19 18:11:23 +05:30
pagedown
1da5f2ecc6
Fix the rc command new-window does not open the shell by default
2022-06-19 20:25:12 +08:00
Kovid Goyal
d226e82f68
It is only possible to not have an OS Window on macOS
2022-06-19 09:39:40 +05:30
Kovid Goyal
60cc2cb26c
Merge branch 'fix-rc-launch' of https://github.com/page-down/kitty
2022-06-19 09:38:30 +05:30
pagedown
1ac90cf464
Allow remote control to launch a new OS window when there is none
2022-06-19 11:51:58 +08:00
Kovid Goyal
d3ffaebd17
Ignore exceptions in kitten result processors
2022-06-18 08:20:01 +05:30
Kovid Goyal
bf01c549f5
Allow kittens to handle multiple results in a window
2022-06-18 08:18:25 +05:30
Kovid Goyal
6912d8c086
No need for entire screen object when scaling a scroll
2022-06-18 06:55:28 +05:30
Kovid Goyal
a89e1b5573
Fix horizontal wheel events not being reported to client programs when they grab the mouse
...
Fixes #2819
2022-06-18 06:47:42 +05:30
Kovid Goyal
3a9c6088b2
Add debug output for scroll events
2022-06-18 05:54:26 +05:30
Kovid Goyal
fba629f385
Merge branch 'globinclude-sorted' of https://github.com/amarshall/kitty
2022-06-18 04:59:25 +05:30
Andrew Marshall
90477825c2
Make globinclude sort files before loading
...
`Path.glob` gives no guarantee about the order results are returned in.
This means that if files included by `globinclude` override each other,
the resulting config was non-deterministic. Resolve this by sorting the
results from `glob` to give consistent, well-defined order.
2022-06-17 18:50:16 -04:00
Kovid Goyal
1e56d39777
Wakeup main loop when refreshing window as well as io loop
2022-06-17 19:33:43 +05:30
Kovid Goyal
2829971412
Merge branch 'expose-wakeup-main-loop' of https://github.com/sirno/kitty
2022-06-17 19:09:07 +05:30
Nicolas Ochsner
c147fda6ca
Expose wakeup main loop in python api.
2022-06-17 15:26:16 +02:00
Kovid Goyal
a27dfd8b7c
Increase the timeout for prewarm I/O on CI
2022-06-14 21:17:28 +05:30
Kovid Goyal
a7c65efc45
Ensure local kitty is used in tests even when another kitty is present in the system PATH
...
Fixes #5194
2022-06-14 21:08:58 +05:30
Kovid Goyal
646a524c8e
Sort imports
2022-06-14 20:06:12 +05:30
Kovid Goyal
f8d01d2c4f
Use the same parser for resize_window actions and session setting
2022-06-14 20:03:21 +05:30
Kovid Goyal
1d846f3744
Cleanup previous PR
...
Merge branch 'session-resize-window' of https://github.com/sirno/kitty
2022-06-14 19:59:01 +05:30
Nicolas Ochsner
6bbe58f876
Change to pass window specs.
2022-06-14 12:28:41 +02:00
Nicolas Ochsner
36719fb086
Cleanup.
2022-06-14 11:23:35 +02:00
Nicolas Ochsner
78fd7a8458
Enable resizing in session files.
2022-06-14 11:09:26 +02:00
Kovid Goyal
f5976d0d63
Remove unneeded code
2022-06-13 21:33:07 +05:30
Kovid Goyal
b313fc3fbe
Forgot to also add SIGUSR1 handler
2022-06-13 21:09:32 +05:30
Kovid Goyal
cf667b8c47
Use a signal handler instead of a pipe for child death notification
2022-06-13 20:40:04 +05:30
Kovid Goyal
7e3bd8586f
Dont use SIGTSTP and SIGCONT in the test as they are very flaky
2022-06-13 20:29:58 +05:30
Kovid Goyal
d5df301317
Finer grained polling
2022-06-13 19:41:40 +05:30
Kovid Goyal
628246c3da
Workaround for python 3.8 that doesnt have the CLD_* constants
2022-06-13 19:22:37 +05:30
Kovid Goyal
d228acd30a
Use a busy loop for signaled process
2022-06-13 19:11:29 +05:30
Kovid Goyal
18cd97d914
Skip SIGSTSTP test when CLD_STOPPED is not available
2022-06-13 19:05:49 +05:30
Kovid Goyal
5f13946bac
Allow using our signal handlers in python event loops via an fd
...
pythons signal fd only return signal numbers not the full siginfo struct
2022-06-13 18:52:23 +05:30
Kovid Goyal
8fb24fbc1e
poll() takes times in ms not seconds
2022-06-13 18:51:35 +05:30
Kovid Goyal
f0d4952055
Use an iterator
2022-06-13 08:14:51 +05:30
Kovid Goyal
7113580db2
macOS has no waitid
...
Le Sigh
2022-06-13 02:19:51 +05:30
Kovid Goyal
163c211219
Use waitid() rather than waitpid() to get full exit status
2022-06-13 00:19:56 +05:30
Kovid Goyal
6993157b3a
...
2022-06-13 00:15:07 +05:30
Kovid Goyal
e2efdf674d
Reap prewarmed processes
2022-06-13 00:11:16 +05:30
Kovid Goyal
9fcb8e5b6e
Close unneeded fds in forked children
2022-06-12 20:26:20 +05:30
Kovid Goyal
a1a637c7f1
Restore SIGUSR1 handling in prewarmed child
2022-06-12 18:59:55 +05:30
Kovid Goyal
4f87f3e9f4
...
2022-06-12 18:15:23 +05:30
Kovid Goyal
da6faa656c
Use a fork() without exec() to create prewarm process
...
This has the advantages:
1) Even first kitten use is fast
2) Computer has to do less work overall since prewarm process is itself prewarmed
2022-06-12 18:06:51 +05:30
Kovid Goyal
e1ad75e932
Graphics protocol: Make it explicit what is supposed to happen when two images with the same z-index overlap
...
Fixes #5187
2022-06-10 22:10:11 +05:30
Kovid Goyal
646bdbd002
Wayland: Fix a regression in the previous release that caused mouse cursor animation and keyboard repeat to stop working when switching seats
...
Fixes #5188
2022-06-10 21:38:30 +05:30
Kovid Goyal
9184de1997
...
2022-06-10 18:44:23 +05:30
Kovid Goyal
eabc29ec4d
Changelog entry for prewarming
2022-06-09 10:43:00 +05:30
Kovid Goyal
e338cdab31
Increase the timeout when talking to prewarm process
2022-06-09 07:01:42 +05:30
Kovid Goyal
7001d609fa
Fix spurious warning from runpy module when prewarmed
2022-06-09 07:01:42 +05:30
Kovid Goyal
c8399ce3d2
clear signal handlers in prewarm controller
2022-06-09 07:01:42 +05:30
Kovid Goyal
3e1d701dce
DRYer
2022-06-09 07:01:41 +05:30
Kovid Goyal
a385c39c2e
Fix reading of dead prewarmed child pids
2022-06-09 07:01:41 +05:30
Kovid Goyal
5d1cf339a7
Simplify child death tracking
...
Re-use the existing fd instead of catching signals
2022-06-09 07:01:41 +05:30
Kovid Goyal
fafb8518e0
Fix compilation on platforms without SO_PASSCRED
2022-06-09 07:01:41 +05:30
Kovid Goyal
6807f4d4ea
Report the correct cmdline for prewarmed processes
2022-06-09 07:01:41 +05:30
Kovid Goyal
0ed7b2f3c0
Manage fd lifecycles a bit better
2022-06-09 07:01:41 +05:30
Kovid Goyal
116128ebb5
Get prewarm working
...
Needed to wait in the control process for child to set its controlling
terminal so that closing the slave fd in kitty is safe.
2022-06-09 07:01:41 +05:30
Kovid Goyal
0c870c5fcd
handle child death and config reload for prewarmed processes
2022-06-09 07:01:41 +05:30
Kovid Goyal
90bc3ab770
Function to create a randomly named UNIX domain socket
2022-06-09 07:01:41 +05:30
Kovid Goyal
0021b0c242
Prewarm all kittens
2022-06-09 07:01:41 +05:30
Kovid Goyal
6dc076f5d1
Complete move to prewarm.py
2022-06-09 06:54:05 +05:30
Kovid Goyal
2dd1201c3f
Dont use a kitten for prewarm
2022-06-09 06:53:51 +05:30
Kovid Goyal
9be68966b4
Also detect ssh kitten run as an overlay
2022-06-08 18:53:54 +05:30
Kovid Goyal
47d482dca9
Clear signal handlers when running processes
2022-06-08 17:50:42 +05:30
Kovid Goyal
18dd13c872
Make init_loop_data a little safer to use
2022-06-08 15:10:52 +05:30
Kovid Goyal
c71bb877c3
Handle SIGHUP gradefully
2022-06-08 09:06:28 +05:30
Kovid Goyal
eee8106f9e
Fix a regression that broke completion when using a kitty alias instead of having kitty on PATH
2022-06-08 07:36:09 +05:30
Kovid Goyal
80ad596d3d
Yet another place where macos_colorspace was broken
2022-06-08 07:17:34 +05:30
Kovid Goyal
9dbafcc368
Remove unneccessary argument to connection_sharing_args()
2022-06-07 20:40:01 +05:30
Kovid Goyal
9f5f113840
...
2022-06-07 13:05:07 +05:30
Kovid Goyal
6afbdbe94f
Use correct kitty config in prewarmed process
2022-06-07 12:53:39 +05:30
Kovid Goyal
061a0c8cb6
Reset global options object in the tests
2022-06-07 10:58:03 +05:30
Kovid Goyal
ad128a3c29
version 0.25.2
2022-06-07 07:32:35 +05:30
Kovid Goyal
b71d2e04ca
Clarify behavior of placement id when image id is zero
2022-06-07 07:22:12 +05:30
Kovid Goyal
cc3c7b0286
Fix waitpid() call on python 3.8
2022-06-06 21:22:04 +05:30
Kovid Goyal
bf6c90a69a
Compare realpaths for cwd test
2022-06-06 20:46:49 +05:30
Kovid Goyal
4c9a75c1ba
Remove unused code
2022-06-06 20:45:40 +05:30
Kovid Goyal
98f46f8bd7
Start work on prewarming
...
The prewarm process and its controller are implemented with some basic
tests.
2022-06-06 20:39:36 +05:30
Kovid Goyal
dec62b1929
Allow ignoring SHM close failures
...
Useful if we export the mmap beyond the lifetime of the shm object
2022-06-06 20:31:13 +05:30
Kovid Goyal
79f7954048
Cleanup previous PR
2022-06-06 17:19:52 +05:30
Kovid Goyal
fc217dafba
Merge branch 'master' of https://github.com/suvayu/kitty
2022-06-06 16:55:08 +05:30
Kovid Goyal
a6aff817cf
Prepare for prewarm testing
2022-06-06 15:59:34 +05:30
Suvayu Ali
38cb18fe92
diff kitten: tests for directory walking
2022-06-06 11:01:45 +02:00
Suvayu Ali
20b6a97159
Update in response to feedback
...
- one configuration option: ignore_paths
- use shlex to parse option to support whitespace and in-line comments
- change option type to Tuple[str, ...]
- remove ignored directories from dirnames to prevent scanning
2022-06-06 11:00:45 +02:00
Kovid Goyal
98f6e24106
Move block outside try/except as it doesnt need to be in there
2022-06-06 08:17:15 +05:30
Kovid Goyal
4ed6364b61
Fix compiler warning on 32bit builds
2022-06-06 07:19:52 +05:30
Kovid Goyal
cd7751681d
hints kitten: Fix surrounding quotes/brackets and embedded carriage returns not being removed when using line number processing
...
Fixes #5170
2022-06-05 18:07:16 +05:30
Kovid Goyal
76531d2f7a
Python wrapper function to establish controlling tty
2022-06-05 15:36:05 +05:30
Suvayu Ali
eea652f1d0
kittens/diff: move empty pattern check to dir tree walk
2022-06-05 10:11:21 +02:00
Kovid Goyal
f20f4762a8
Use builtin facility for removing cloexec
2022-06-05 12:33:34 +05:30
Kovid Goyal
c004fd1f4d
Declare the set of handled signals in only one place
2022-06-05 08:01:26 +05:30
Kovid Goyal
f29039db29
Make the full signal info available in our signal handler
2022-06-05 07:22:38 +05:30
Suvayu Ali
fbf1ec43c7
diff kitten: add options to ignore paths when comparing directories
...
Tested locally & over SSH:
$ kitty +kitten diff /local/path /local/path2
$ kitty +kitten diff /local/path ssh:remote:/path
2022-06-05 00:11:30 +02:00
Kovid Goyal
a42200a430
Use the log_error function to log SIGUSR2
2022-06-04 15:38:56 +05:30
Kovid Goyal
ad576c333c
Also restore signal handlers for SIGUSR1 and SIGUSR2
2022-06-04 15:15:39 +05:30
Kovid Goyal
5a0a980648
Make getting cmdline of a PID a bit more convenient
2022-06-04 15:07:08 +05:30
Kovid Goyal
b3578a4fa5
...
2022-06-04 14:54:32 +05:30
Kovid Goyal
3c952b01d3
Fix reloading in all kitties skipping kitty processes started as kitty +open
2022-06-04 14:53:13 +05:30
Kovid Goyal
b1453a51f6
Better error message for kitty +
2022-06-04 14:47:13 +05:30
Kovid Goyal
2c3a7b5f41
Restore a couple more signal handlers that python nukes
2022-06-04 14:30:08 +05:30
Kovid Goyal
0df5a6c6c8
Utility function to test if PID is alive
2022-06-04 14:14:24 +05:30
Kovid Goyal
bf4dc6365a
Add support for sigqueue() and also handle SIGUSR2
...
I anticipate using sigqueue() for simpler handling of SIGCHLD
notifications from the prewram process to the its parent.
2022-06-04 14:09:45 +05:30
Kovid Goyal
ce3322bf91
Remote control: Fix commands with asynchronous payloads not sending responses
...
Fixes #5165
2022-06-04 10:13:21 +05:30
Kovid Goyal
835cb31501
Fix incorrect dispatch of poll events when more than one peer is present
2022-06-04 09:26:57 +05:30
Kovid Goyal
762dd065f3
Nicer reverse loop
2022-06-04 09:06:35 +05:30
Kovid Goyal
7b91447d89
Use a full chekcout in CI when building docs
...
The :commit: docs role requires it
2022-06-04 08:00:00 +05:30
Kovid Goyal
1146c4ea3f
Merge branch 'ignore-fig-osc' of https://github.com/grant0417/kitty
2022-06-04 07:44:17 +05:30
grant0417
729f7b8e03
Add custom message for Fig OSC
2022-06-03 18:57:53 -07:00
grant0417
d3ec632b9f
Ignore Fig OSC codes
2022-06-03 17:07:44 -07:00
Kovid Goyal
cb01b5ee44
DRYer
2022-06-03 21:38:49 +05:30
Kovid Goyal
0828096e9e
...
2022-06-03 18:30:14 +05:30
Kovid Goyal
ebcbed290f
Make loading of kitty options in kitten re-useable
2022-06-03 17:49:58 +05:30
Kovid Goyal
d6afe6f2cb
Move entrypoints into their own module
2022-06-03 11:12:13 +05:30
Kovid Goyal
4daf70f636
...
2022-06-03 11:08:41 +05:30
Kovid Goyal
2f3dd72c84
Weston: Fix client side decorations flickering on slow computers during window resize
...
Fixes #5162
2022-06-03 11:00:56 +05:30
Kovid Goyal
dca8c65376
Fix display of url open failures not working
2022-06-02 10:41:08 +05:30
Kovid Goyal
12d8175d9a
Use inode/executable rather than application/executable
2022-06-02 10:33:56 +05:30
Kovid Goyal
609bcd68dd
Fix #5161
2022-06-02 10:32:43 +05:30
Kovid Goyal
313136803c
DRYer
2022-06-02 10:21:34 +05:30
Kovid Goyal
b937033411
macOS: Allow opening executables without a file extension with kitty as well
...
Fixes #5160
2022-06-02 09:25:30 +05:30
Kovid Goyal
55eeb9c11e
Dont import kitty.complete in ssh.main
2022-06-02 08:08:33 +05:30
Kovid Goyal
8fbec2dfd5
remove unused arg
2022-06-02 08:07:53 +05:30
Kovid Goyal
c4521290b8
...
2022-06-01 19:43:41 +05:30
Kovid Goyal
e12a9f3caf
Iosevka: Fix incorrect rendering when there is a combining char that does not group with its neighbors
...
Fixes #5153
2022-06-01 12:00:53 +05:30
Kovid Goyal
56f8a06362
DRYer
2022-06-01 08:47:19 +05:30
Kovid Goyal
5c4abe749b
Merge branch 'fontconfig-special-sources' of https://github.com/leungbk/kitty
2022-06-01 08:33:13 +05:30
Brian Leung
62c27b3db7
Add kitty/fontconfig.c to SPECIAL_SOURCES
...
Fixup of bec620a8d3 .
2022-05-31 19:58:42 -07:00
Kovid Goyal
1283a2b7e5
...
2022-06-01 08:21:23 +05:30
Kovid Goyal
bec620a8d3
Fix #5154
2022-06-01 08:19:11 +05:30
Kovid Goyal
6b0bb2e845
Sphinx v5 needs language to be not None
2022-06-01 06:47:06 +05:30
Kovid Goyal
135818f34b
Note about __main__.py with +launch
2022-05-31 07:56:01 +05:30
Kovid Goyal
2a361d1de1
Update changelog for last PR
2022-05-31 07:46:00 +05:30
Kovid Goyal
761a941d43
Merge branch 'kovidgoyal-master' of https://github.com/jimbob3806/kitty
2022-05-31 07:41:40 +05:30
Kovid Goyal
c03630a487
...
2022-05-31 07:26:04 +05:30
James Reid
0b79cbdb3b
Add "user" tab to themes kitten
...
Add new tab named "user" to the built-in themes kitten - new tab
filters and displays only user-defined color themes, identified by
adding "is_user_defined" property to "Theme" class which defaults
to False, and is set True when a theme is fetched using the
"load_from_dir" method.
2022-05-30 19:25:09 +01:00
James Reid
1dc6b49e02
Remove hard coded tab string in ThemesHandler
...
Remove hard coded tab string and replace with self.tabs, which is
a reference to the same tab string defined in the __init__ of
ThemesHandler
2022-05-30 19:17:07 +01:00
Kovid Goyal
1962f8e5a0
Advertise edit-in-kitty a bit more
2022-05-30 15:27:23 +05:30
Kovid Goyal
cabfcbcb69
macOS: When pasting text and the clipboard has a filesystem path, paste the full path instead of the text, which is sometimes just the file name
...
Fixes #5142
2022-05-30 14:40:45 +05:30
Kovid Goyal
48bb43a2c4
fish: completion for edit-in-kitty clone-in-kitty
...
fish's wrapping facility does not preserve argv[0] so it cannot be used
unlike for zsh and bash
2022-05-30 10:50:19 +05:30
Kovid Goyal
af5e3e0c18
Add a reference to edit-in-kitty to the remote file kitten docs
2022-05-30 08:19:33 +05:30
Kovid Goyal
fb8398c2eb
bash: completion for edit/clone-in-kitty
2022-05-30 08:16:51 +05:30
Kovid Goyal
eefd4bb3e3
zsh: Completion for edit-in-kitty and clone-in-kitty
2022-05-30 08:12:09 +05:30
Kovid Goyal
581c388838
...
2022-05-29 15:02:37 +05:30
Kovid Goyal
7a63ea6480
Drop python 3.7 from CI
2022-05-29 14:54:51 +05:30
Kovid Goyal
65f1329635
Wayland: When the seat is closed remove any pending pointer animation and key repeat timers
...
Fixes #5145
2022-05-29 14:50:34 +05:30
Kovid Goyal
0df9a5d5c5
Fix compilation on Python 3.11
...
Python 3.11 deprecates the supposedly "stable API" PySys_AddXOption().
So switch to using PyConfig.xoptions instead. This means dropping
support for python 3.7 since PyConfig is not available there. So it
rolls.
Fixes #5143
2022-05-29 14:37:14 +05:30
Kovid Goyal
6405849a1b
Bash integration clone test was accidentally running zsh
...
Fixes #5144
2022-05-29 08:46:06 +05:30
Kovid Goyal
e9340dfaaf
Some more tests for last non empty command output
2022-05-28 15:22:17 +05:30
Kovid Goyal
0509855930
Allow getting the last non-empty command output easily via an action or remote control
...
Fixes #4973
2022-05-28 15:19:24 +05:30
Kovid Goyal
4c74462763
ssh kitten: Look in common locations for login shell if it is not in PATH
2022-05-28 11:29:09 +05:30
Kovid Goyal
7f69381221
Update changelog
2022-05-28 11:13:35 +05:30
Kovid Goyal
75942fb47e
Implement edit-in-kitty for fish
2022-05-28 11:12:11 +05:30
Kovid Goyal
0893d7164a
_run_kitten -> run_kitten_with_metadata
2022-05-28 11:00:25 +05:30
Kovid Goyal
27906ea853
Skip login shell detection when login shell is set to nologin
2022-05-28 08:09:30 +05:30
Kovid Goyal
8540ca3990
Workaround for nix package messing with kitty file permissions
2022-05-28 08:03:17 +05:30
Kovid Goyal
e82c5a63b5
Avoid unnecessary use of cat
2022-05-27 14:18:16 +05:30
Kovid Goyal
83602d7e53
Make chunked transmit code re-useable in fish integration script
2022-05-27 13:21:26 +05:30
Kovid Goyal
64e30e5299
Ignore permission errors when stating file to edit
2022-05-27 13:04:02 +05:30
Kovid Goyal
83ce23ff9f
Use zsh's builtin stat instead of relying on the stat command
2022-05-27 12:50:52 +05:30
Kovid Goyal
c5e5ec618d
Also trap SIGTERM to cleanup
2022-05-27 12:39:22 +05:30
Kovid Goyal
bd84ec03ce
Implement edit-in-kitty for bash
2022-05-27 12:38:26 +05:30
Kovid Goyal
d71f18566e
forgot to declare data local
2022-05-27 12:29:11 +05:30
Kovid Goyal
76e75d9f89
Ensure self.tdir exists in __del__
2022-05-27 10:48:16 +05:30
Kovid Goyal
f5695ac4f4
Increase edit file size limit to 8MB
2022-05-27 10:45:36 +05:30
Kovid Goyal
b748cd21cf
Allow opening files at a spedific line number with edit-in-kitty
2022-05-27 09:53:43 +05:30
Kovid Goyal
3a8bdf3b48
React instantly to editor window being closed
2022-05-27 09:15:16 +05:30
Kovid Goyal
196c6b07aa
Merge branch 'fix-window-menu' of https://github.com/henryhchchc/kitty
2022-05-27 09:12:56 +05:30
Henry Chu
1978cc5b55
Fixed #5132
2022-05-27 11:15:16 +08:00
Kovid Goyal
ea47cee23f
Document edit-in-kitty
2022-05-27 07:41:54 +05:30
Kovid Goyal
e6844ad6f2
ssh kitten: Run bash as a login shell
...
This fell through the cracks in the rewrite for automatic shell
integration. Fixes #5130
2022-05-26 21:24:32 +05:30
Kovid Goyal
02d5b3eafa
Fix shebang
2022-05-26 21:21:36 +05:30
Kovid Goyal
151dacf17f
Update changelog
2022-05-26 21:21:27 +05:30
Kovid Goyal
117d1b02be
Start work on edit-in-kitty
2022-05-26 21:16:42 +05:30
Kovid Goyal
cb55878efd
Fix #5129
2022-05-26 19:42:20 +05:30
Kovid Goyal
ea4751eae5
Move logic for handling chunked remote data into a separate function
...
Use the existing clipboard_max_size as the limit for remote data
2022-05-26 08:52:20 +05:30
Kovid Goyal
cc4f1c0a24
version 0.25.1
2022-05-26 07:59:25 +05:30
Kovid Goyal
3eb5320e29
Add tpix to list of programs that speak the graphics protocol
2022-05-25 12:27:38 +05:30
Kovid Goyal
4f63cff1a4
Make _run_kitten public API
2022-05-25 07:14:18 +05:30
Kovid Goyal
8381171c8d
Forgot trailing newline
2022-05-24 06:54:53 +05:30
Kovid Goyal
1b2d54d97a
Output a warning when libwayland-cursor returns incorrectly sized cursor images
2022-05-23 12:50:47 +05:30
Kovid Goyal
e7da874b82
GNOME: Workaround for GNOME's text input system going into an infinite loop if cursor position is updated in response to a done event
...
Fixes #5105
2022-05-23 10:36:58 +05:30
Kovid Goyal
ea8bed2a71
Fix #5113
2022-05-20 20:45:08 +05:30
Kovid Goyal
c747e681a2
Merge branch 'patch-1' of https://github.com/jack1142/kitty
2022-05-20 20:42:11 +05:30
Jakub Kuczys
a9a9ec80b5
Support the short pretty flag (-p) in hyperlinked_grep kitten
2022-05-20 10:57:42 +02:00
Kovid Goyal
eb84990f5a
Fix #5110
2022-05-19 09:55:12 +05:30
Kovid Goyal
1938ba3108
Add changelog entry for previous PR
2022-05-18 20:04:09 +05:30
Kovid Goyal
0eee2db199
Merge branch 'add-option-select_by_word_characters_forward' of https://github.com/kgraefe/kitty
2022-05-18 20:02:11 +05:30
Kovid Goyal
bba1455e28
Dont import all of the ssh kitten just to detect commandlines
2022-05-18 15:58:06 +05:30
Konrad Gräfe
8c41cc8d3e
Add option select_by_word_characters_forward
...
This adds an option to select separate characters for forward and
backward word extension on double click. If it is empty the old behavior
is preserved. This is the default.
If it is not empty, select_by_word_characters_forward will be used for
extending the selection in forward direction (right) and
select_by_word_characters will be used for extending in backward
direction (left).
Signed-off-by: Konrad Gräfe <kgraefe@paktolos.net >
2022-05-16 11:09:36 +02:00
Kovid Goyal
5efcb35cfb
Only integrate with ssh kitten if shared connections are enabled for that host
2022-05-14 10:37:05 +05:30
Kovid Goyal
1b4cf1fea7
Remote file kitten: Integrate with the ssh kitten
2022-05-14 10:31:18 +05:30
Kovid Goyal
d3656bf7e9
Linux: Load libfontconfig at runtime to allow the binaries to work for running kittens on servers without FontConfig
2022-05-13 19:56:19 +05:30
Kovid Goyal
aaffec1cbc
Better error message
2022-05-13 19:25:37 +05:30
Kovid Goyal
ed9391d4d6
Add a note explaining why fontconfig is not bundled
2022-05-13 17:45:16 +05:30
Kovid Goyal
58333f260b
Fix spurious error print in test
2022-05-13 17:42:00 +05:30
Kovid Goyal
cf8ccabad9
Fix deleting images by row not calculating image bounds correctly
...
Fixes #5081
2022-05-13 09:51:25 +05:30
Kovid Goyal
600c595fdf
Fix reloading of config not working when kitty.conf does not exist when kitty is launched
...
Fixes #5071
2022-05-08 20:57:23 +05:30
Kovid Goyal
2427d2d9da
Workaround Apple's "hardening" breaking the platform module
...
Fix #5065
Fix #5051
2022-05-07 20:43:10 +05:30
Kovid Goyal
4ca70bfa26
...
2022-05-04 13:21:17 +05:30
Kovid Goyal
4e8eb2f7f0
Merge branch 'rc-match' of https://github.com/page-down/kitty
2022-05-01 21:23:58 +05:30
pagedown
b6cf4bc78f
...
2022-05-01 23:27:33 +08:00
pagedown
622cd5531a
Raise an exception when not in broadcast and no match for send-text
...
send-text still won't return an error code when there is no match,
since no_response is True by default.
2022-05-01 23:05:44 +08:00
pagedown
ec35b0cc7c
Fix remote command --match=all returns empty
2022-05-01 23:05:22 +08:00
pagedown
0719c7f8bb
DRYer: Use window matching function in remote commands
2022-05-01 23:04:50 +08:00
Kovid Goyal
bb7e4039e8
Merge branch 'rc-err' of https://github.com/page-down/kitty
2022-05-01 07:11:21 +05:30
pagedown
a0559e506b
Show error message when remote command arguments are invalid
2022-04-30 22:01:58 +08:00
Kovid Goyal
4ce4176bbe
cleanup previous PR
2022-04-30 15:03:27 +05:30
Kovid Goyal
99409f0a8b
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-30 14:41:12 +05:30
pagedown
13303416b8
Docs: Improve the documentations
...
Add more text roles and links.
Fix typos.
Adjust the default shortcut order in overview.
Notes on the impact of kitty-open.desktop on the default open apps.
Document KITTY_DEVELOP_FROM in glossary.
Add Python type hints to the watcher example.
Mention clone-in-kitty in launch --copy-env.
Fix remote control ls example does not work, by escaping the backslash.
2022-04-30 17:07:36 +08:00
Kovid Goyal
9811d677e5
query terminal kitten: Return fast when run in non-kitty terminals
2022-04-30 14:25:39 +05:30
pagedown
b9fd039668
Docs: Document the env vars set by kitty for auto shell integration
2022-04-30 16:54:53 +08:00
pagedown
6c1f20bb27
Docs: Mention close_shared_ssh_connections in ssh kitten config docs
2022-04-30 16:54:46 +08:00
pagedown
2b58316c64
...
2022-04-30 16:54:41 +08:00
Kovid Goyal
f2df629634
...
2022-04-30 09:38:08 +05:30
Kovid Goyal
8f46505a50
Header to print stack traces in C
2022-04-30 09:28:05 +05:30
Kovid Goyal
c48bf4fd85
Output debug lines for when kitty sets the pointer in Wayland
2022-04-30 09:13:08 +05:30
Kovid Goyal
8c67f5aea8
Merge branch 'fix-gen-conf' of https://github.com/page-down/kitty
2022-04-30 07:35:15 +05:30
pagedown
76f84e32c4
Fix the generated sample kitty.conf containing invalid options
2022-04-30 02:23:33 +08:00
Kovid Goyal
4a7125ec92
ssh kitten: Suppress error prints about invalid items in kitty.conf
...
Fixes #4985
2022-04-29 20:39:32 +05:30
Kovid Goyal
92c3af6a92
Allow using --match=all in all rc commands
2022-04-29 17:17:07 +05:30
Kovid Goyal
443f36ebc7
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-29 07:11:40 +05:30
pagedown
17632dea3c
Docs: Improve remote control command documentation
...
Improve the --match option description.
Add more text roles and links.
Fix typos.
2022-04-29 01:31:11 +08:00
pagedown
bb78dc5ccb
Docs: Fix the help text of query_terminal and other minor tweaks
...
Use --match-tab in broadcast kitten example.
2022-04-29 01:30:45 +08:00
Kovid Goyal
2737cb7dd0
Fix #5026
2022-04-28 22:12:43 +05:30
Kovid Goyal
08b2ce444f
Also dont apply umask when extracting bootstrap data
2022-04-28 17:28:40 +05:30
Kovid Goyal
289028b468
Prevent umask from interfering with tar file extraction
...
Fixes #5025
2022-04-28 17:21:34 +05:30
Kovid Goyal
2b3be147e6
Allow three combining chars per cell
...
Makes use of otherwise wasted padding in the CPUCell struct
2022-04-28 09:45:34 +05:30
Kovid Goyal
1a2d9c6fba
Fix a couple of issues highlighted by updated mypy
2022-04-28 07:03:35 +05:30
Kovid Goyal
af15b0313a
Ensure there are no duplicate watchers for send-text sessions
2022-04-27 22:17:09 +05:30
Kovid Goyal
b080296326
Remove unused code
2022-04-27 21:25:39 +05:30
Kovid Goyal
516e0e8bb3
broadcast kitten: Keep the ghost cursors in target windows as long as broadcast window has focus
2022-04-27 21:24:18 +05:30
Kovid Goyal
57e23bd4e3
Handle zero blink time correctly
2022-04-27 20:37:23 +05:30
Kovid Goyal
59534d620e
Use cursor blink interval as TIMEOUT_FOR_SESSION
2022-04-27 20:31:16 +05:30
Kovid Goyal
068b7e8d63
remove unused adjust_line_height() function
2022-04-27 20:21:36 +05:30
Kovid Goyal
2c1edb9611
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-27 20:18:39 +05:30
pagedown
510022c3c1
Docs: Improve the documentation for kittens
...
Add more text roles and links.
Add an example that broadcasts only to other windows in the current tab.
Initial capitalization of the key names in the kbd text role.
Add Python type hints for custom kittens.
Note about hyperlink support for ls on macOS.
Add description text for show_key.
2022-04-27 16:14:54 +08:00
Kovid Goyal
627c79ffbb
Show detailed traceback when using show_error()
2022-04-26 13:58:57 +05:30
Kovid Goyal
e80cd36237
Show traceback on stderr for action failures
2022-04-26 11:58:17 +05:30
Kovid Goyal
92ebada9a6
...
2022-04-26 11:15:45 +05:30
Kovid Goyal
462ae3bb58
...
2022-04-26 11:15:33 +05:30
Kovid Goyal
6d6d9cc26b
macOS: Add the macos_colorspace option to control what color space colors are rendered in
...
Fixed #4686
2022-04-26 11:14:01 +05:30
Kovid Goyal
a36d5dcde1
GLFW API for changing colorspace of windows on cocoa
2022-04-26 10:56:34 +05:30
Kovid Goyal
f9f6f98527
Note that neovim is also getting support for the kitty keyboard protocol
2022-04-26 08:39:44 +05:30
Kovid Goyal
ee94114eb2
Fix #5016
2022-04-26 08:20:24 +05:30
Kovid Goyal
8e98fcf2f6
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-25 14:16:16 +05:30
pagedown
c4710bf9cb
Docs: Add text to the ref text role and minor tweaks
...
The text will be used when generating the commented configuration file.
Use inline literal to quote codes with spaces, as the `code` text role
will be removed when the commented configuration is generated, making it
indistinguishable from normal text.
2022-04-25 15:36:57 +08:00
pagedown
97a568a405
Docs: Improve the FAQ
...
Add more text roles and links.
Document `PATH` in the glossary.
2022-04-25 15:36:51 +08:00
pagedown
7bace19aed
clone-in-kitty: Skip more SSH env vars to use the correct values
2022-04-25 15:36:43 +08:00
pagedown
7282f1f684
Docs: Improve ssh kitten documentation
...
Add more text roles.
Put the env example at the end.
The alias syntax of fish and bash requires quotation marks.
Document `SSH_ASKPASS` in the glossary.
2022-04-25 15:36:37 +08:00
Kovid Goyal
9edb772a81
Merge branch 'fix-launch-cwd-oldest' of https://github.com/rafikdraoui/kitty
2022-04-24 22:04:05 +05:30
Rafik Draoui
d123b6c377
Fix launch --cwd=oldest
2022-04-24 13:19:22 -03:00
Kovid Goyal
c9ba3695d3
...
2022-04-24 15:50:02 +05:30
Kovid Goyal
0ee970b418
--hold is not suitable for replay commands as it outputs to the terminal
2022-04-24 15:37:20 +05:30
Kovid Goyal
8239cb1b5a
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-24 15:36:35 +05:30
pagedown
97caa073b0
Docs: Improvements to the configuration documentation
...
Slightly adjust and simplify the config option descriptions.
Add more text roles.
Initial capitalized key names.
Change some examples to better demonstrate configurations.
Fix listen_on description.
Also document cmd+c and cmd+v.
Fix doc text role links in commented out configuration file.
2022-04-24 17:32:49 +08:00
pagedown
45bbe17559
Docs: Minor improvements to the kitty cli help documentation
...
Add some text roles.
Use `kitty --hold`.
Use `appname` and `conf_name`.
`appname` is also applied to the system-wide configuration path.
2022-04-24 17:18:55 +08:00
pagedown
288d16f7be
Docs: Minor tweaks to the help documentation of hints kitten
2022-04-24 17:18:45 +08:00
pagedown
ecb60b313e
Docs: Improve clone-in-kitty documentation and fix LANG descriptions
...
Reduce duplicate `launch`.
Add links to python venv and conda.
Adjust the order of env vars, `.._CODE` takes precedence over `.._PATH`.
Add clone-in-kitty env vars to glossary.
Correct the description of the LANG env var.
2022-04-24 17:18:31 +08:00
Kovid Goyal
cf2a20e4ea
Merge branch 'fix-f-string' of https://github.com/page-down/kitty
2022-04-24 08:03:51 +05:30
pagedown
bc4f40fea7
...
2022-04-24 09:34:22 +08:00
Kovid Goyal
102097da5a
DRYer
2022-04-23 12:51:02 +05:30
Kovid Goyal
0e3528df14
Merge branch 'feat-macos-open-website' of https://github.com/page-down/kitty
2022-04-23 12:49:21 +05:30
Kovid Goyal
214631c2dd
Sort frozenset literals in generated options class definition
2022-04-23 11:23:21 +05:30
pagedown
e919857dfc
macOS: Make the global menu shortcut to open kitty website configurable
...
This allows remapping the key combination shift+cmd+/
2022-04-23 13:22:27 +08:00
pagedown
a5bd1dcb08
Add a new mappable action open_url
2022-04-23 13:17:28 +08:00
Kovid Goyal
37cdaea9ed
Also save command history before cloning in bash
2022-04-22 23:40:59 +05:30
Kovid Goyal
6bbaf5f1cf
zsh cloning: save history so that it is up-to-date in cloned shell
2022-04-22 23:34:34 +05:30
Kovid Goyal
8808a252ae
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-22 13:29:24 +05:30
pagedown
5f1376b9a0
...
2022-04-22 15:02:23 +08:00
Kovid Goyal
efa873bf50
DRYer
2022-04-22 10:53:25 +05:30
Kovid Goyal
714461de76
Also ensure oldest cwd request type is honored by modify_argv
2022-04-22 08:40:18 +05:30
Kovid Goyal
b753cf6879
Forgot to implement at_prompt use of reported cwd in modify_argv
2022-04-22 08:25:46 +05:30
Kovid Goyal
27010d0446
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-21 15:24:18 +05:30
Kovid Goyal
bdc039fbf5
Fix docstring
2022-04-21 14:51:23 +05:30
pagedown
72f92f3174
Docs: Mention again that kitty.conf will be created if not present
2022-04-21 16:45:12 +08:00
Kovid Goyal
8fcd5e40d4
Proper fix for reporting button in drag events to children
2022-04-21 11:41:57 +05:30
Kovid Goyal
b76319b7e8
Update changelog
2022-04-21 11:34:18 +05:30
Kovid Goyal
feeb8f28c4
Fix #4993
2022-04-21 11:00:34 +05:30
Kovid Goyal
55b21b741e
Fix a regression in the previous release that caused mouse move events to be incorrectly reported as drag events even when a button is not pressed
...
Fixes #4992
Will need to investigate a different fix for #4925 . xterm does report
the button press that caused the drag to start with move events, so we
will have to track that to match its behavior as glfw does not track it
for us.
2022-04-21 07:53:37 +05:30
Kovid Goyal
6941884221
...
2022-04-20 13:36:26 +05:30
Kovid Goyal
6174c2008f
...
2022-04-20 10:10:05 +05:30
Kovid Goyal
1a32e79470
...
2022-04-19 21:14:34 +05:30
Kovid Goyal
dd032db89c
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-19 21:07:03 +05:30
pagedown
f70e0e216c
Docs: Show copy button for installation command snippets
2022-04-19 23:28:51 +08:00
Kovid Goyal
51362706d7
Fix closing a tab incorrectly storing the tab to its right in the active tab history
2022-04-19 17:44:01 +05:30
Kovid Goyal
b2c317ebc6
...
2022-04-19 17:38:16 +05:30
Kovid Goyal
90acbd0dd5
Add a note about ssh kitten colors to FAQ
2022-04-19 15:21:05 +05:30
Kovid Goyal
402fac3edf
...
2022-04-19 10:53:18 +05:30
Kovid Goyal
c4c62c1505
When using --keep-focus ensure active history list is not affected
...
Fixes #4987
2022-04-18 20:23:15 +05:30
Kovid Goyal
b569c01b49
Fix #4986
2022-04-18 17:04:05 +05:30
Kovid Goyal
c0d9b6e979
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-18 12:41:05 +05:30
pagedown
b94afbba13
...
2022-04-18 14:51:15 +08:00
Kovid Goyal
1994c17c75
Note on how clone-in-kitty works
2022-04-18 12:08:32 +05:30
Kovid Goyal
f88a4fe986
...
2022-04-18 11:13:16 +05:30
Kovid Goyal
25616aaa7b
Merge branch 'clone-in-kitty' of https://github.com/page-down/kitty
2022-04-18 10:57:55 +05:30
pagedown
19fdcec358
...
2022-04-18 11:54:14 +08:00
pagedown
45eb4a0760
clone-in-kitty: Remove duplicate PATH entries in fish implementation
2022-04-18 11:46:29 +08:00
pagedown
9e026983e6
clone-in-kitty: Remove CONDA_PREFIX_* env vars
2022-04-18 11:42:22 +08:00
Kovid Goyal
be0a524e23
Yet another try to get zsh to de-dup $PATH
2022-04-18 07:40:37 +05:30
Kovid Goyal
339af1b4b2
Add more send_text examples
2022-04-17 22:48:03 +05:30
Kovid Goyal
31fda568e4
typeset -U both path and PATH
2022-04-17 21:27:08 +05:30
Kovid Goyal
3efbccc850
...
2022-04-17 20:56:24 +05:30
Kovid Goyal
93c23f99cb
conda activate now works under fish so use it
2022-04-17 20:55:53 +05:30
Kovid Goyal
6590d0690e
Document venv and sourcing behavior of clone-in-kitty
2022-04-17 19:51:27 +05:30
Kovid Goyal
230a9f4678
Implement option to control clone sourcing strategies
2022-04-17 19:39:32 +05:30
Kovid Goyal
f2189b3e70
only pass VIRTUAL_ENV if it is currently active
2022-04-17 15:43:57 +05:30
Kovid Goyal
0ee5712e00
Start work on option to control sourcing strategies
2022-04-17 15:30:57 +05:30
Kovid Goyal
f9cad2c4ea
Add a note about show__key limitations
2022-04-17 08:45:27 +05:30
Kovid Goyal
4372cf2893
...
2022-04-17 08:43:23 +05:30
Kovid Goyal
34c18bacd8
Free up memory used to store copy of child env block
2022-04-17 08:35:55 +05:30
Kovid Goyal
3af11e92d6
Ensure the clone launch env var is not set accidentally
2022-04-17 08:29:47 +05:30
Kovid Goyal
74d5f2c259
Dont allow inappropriate types for cloning
2022-04-17 08:19:01 +05:30
Kovid Goyal
291f9e9a5e
Make cloning safer
...
Now env vars are set after shell rc files are sourced. And the clone
request cannot specify the cmdline to execute.
2022-04-17 07:49:58 +05:30
Kovid Goyal
38e1d32065
Actually implement allow_cloning
2022-04-16 22:40:05 +05:30
Kovid Goyal
b45fedd794
Infrastructure for serializing env blocks
2022-04-16 22:16:20 +05:30
Kovid Goyal
df9b13fb74
Ask for confirmation before doing a clone by default
2022-04-16 20:04:26 +05:30
Kovid Goyal
53788c4c89
Get conda working with fish
2022-04-16 15:16:53 +05:30
Kovid Goyal
831043b773
Implement venv detection for fish
2022-04-16 14:45:02 +05:30
Kovid Goyal
1daf745d74
Add explicit support for python and conda venvs to clone-in-kitty
...
Still needs to be implemented for fish
2022-04-16 13:15:10 +05:30
Kovid Goyal
d6c5b40ead
...
2022-04-16 09:26:53 +05:30
Kovid Goyal
57ea524464
Merge branch 'clone-in-kitty' of https://github.com/page-down/kitty
2022-04-15 20:27:36 +05:30
pagedown
e19ce6cce6
clone-in-kitty: Skip some user-related environment variables
2022-04-15 22:47:57 +08:00
Kovid Goyal
8d4f6681e8
Merge branch 'clone-in-kitty' of https://github.com/page-down/kitty
2022-04-15 19:49:33 +05:30
pagedown
9c855a8377
Skip environment variables such as SSH_TTY when using clone-in-kitty
2022-04-15 19:43:40 +08:00
Kovid Goyal
716813e38a
Proper fix for macOS argv[0]
2022-04-15 15:23:45 +05:30
Kovid Goyal
e5322cdc52
Fix clone-in-kitty --env not working over ssh
2022-04-15 15:20:38 +05:30
Kovid Goyal
b5701691c6
Dont clone prompt related env variables
...
These really shouldnt be exported but people often do
2022-04-15 15:18:43 +05:30
Kovid Goyal
aab9482e31
...
2022-04-15 15:01:13 +05:30
Kovid Goyal
775584b5a5
Use literal quoting for env vars sent over ssh by clone
2022-04-15 14:34:21 +05:30
Kovid Goyal
25f022cc14
Ensure copy_env is False
2022-04-15 14:04:52 +05:30
Kovid Goyal
981ad88309
Allow nuking expandvars globally
2022-04-15 13:58:01 +05:30
Kovid Goyal
e71b9091a3
Dont rely on env -0 for bash either
2022-04-15 13:33:32 +05:30
Kovid Goyal
bde468594e
ssh kitten: handle newlines in env vars
2022-04-15 12:49:35 +05:30
Kovid Goyal
0fcfe104e3
Handle argv[0] being buggered on macOS
2022-04-15 12:25:05 +05:30
Kovid Goyal
4cf54d2dfb
Dont rely on env -0 in zsh
...
zsh outputs env vars in a nice one per line format using $'' encoding.
So exploit it
2022-04-15 12:17:59 +05:30
Kovid Goyal
b866c3e783
Add a zsh test for clone env serialization
2022-04-15 12:04:50 +05:30
Kovid Goyal
c15a31e725
Ensure colors are copied form the correct window when cloning
...
Also, encapsulate clone command into its own class to ease testing
2022-04-15 11:53:28 +05:30
Kovid Goyal
afaf866b15
Merge branch 'ksi-fish-clone-in-kitty' of https://github.com/page-down/kitty
2022-04-14 19:47:41 +05:30
pagedown
af6b1837cb
Minor refactoring for fish clone-in-kitty and allow use without env -0
...
The builtin option from the latest version of fish is not used for now.
clone-in-kitty has been tested with fish 3.2.x.
BusyBox env does not support the -0 option.
2022-04-14 21:32:28 +08:00
Kovid Goyal
aab6f3e450
...
2022-04-14 17:28:41 +05:30
Kovid Goyal
829ed0ec0d
Fix #4964
2022-04-14 17:20:30 +05:30
Kovid Goyal
d9899cb489
Add missing item to changelog
2022-04-14 15:04:48 +05:30
Kovid Goyal
1a370ea9b6
Put the examples front and center
2022-04-14 07:59:32 +05:30
Kovid Goyal
cc07b1f79d
Use 2048 chunk size in fish as well
2022-04-13 22:50:24 +05:30
Kovid Goyal
3ddea42660
...
2022-04-13 22:45:36 +05:30
Kovid Goyal
236dbd95c9
...
2022-04-13 22:34:23 +05:30
Kovid Goyal
6b078c4267
Implement clone-in-kitty for the fish shell
2022-04-13 22:33:21 +05:30
Kovid Goyal
1dec5f2e08
Help message for clone-in-kitty
2022-04-13 21:38:33 +05:30
Kovid Goyal
e5f70b7306
...
2022-04-13 21:22:27 +05:30
Kovid Goyal
e2bb856e41
Document clone-in-kitty
2022-04-13 21:01:45 +05:30
Kovid Goyal
88d597f6b2
Dont define clone-in-kitty in POSIX mode
...
POSIX mode doesnt allow - in identifiers
2022-04-13 20:55:00 +05:30
Kovid Goyal
d0c0b01724
Get clone-in-kitty working for bash as well
2022-04-13 20:38:04 +05:30
Kovid Goyal
4b7c50518e
Fix usage of chunk_num
2022-04-13 20:16:51 +05:30
Kovid Goyal
a1bfcd9fc5
Also transfer env vars when cloning over ssh kitten
2022-04-13 20:08:06 +05:30
Kovid Goyal
eb024fa40a
...
2022-04-13 15:51:00 +05:30
Kovid Goyal
122475ad4d
Work on getting cloning working with the SSH kitten
...
Still need to do environment passing
2022-04-13 15:41:42 +05:30
Kovid Goyal
f7114bc1c5
...
2022-04-13 15:35:06 +05:30
Kovid Goyal
feea6998f8
Allow using the cwd of the oldest as well as the newest foreground process for launch --cwd
2022-04-13 15:31:17 +05:30
Kovid Goyal
e187110611
Use $PWD instead of pwd -P as we want the exact same cwd not the resolved one when cloning
2022-04-13 15:13:58 +05:30
Kovid Goyal
c19e69855a
Start work on a command to clone the current working env into a new kitty window
2022-04-13 15:02:22 +05:30
Kovid Goyal
7788f48dd5
Ensure IFS is correct when iterating over KITTY_SHELL_INTEGRATION
2022-04-12 23:03:05 +05:30
Kovid Goyal
073eecb6bb
Also package kitty.termcap
2022-04-12 22:43:22 +05:30
Kovid Goyal
030e7e2db3
termcap should be generated in generate not compile
2022-04-12 22:41:19 +05:30
Kovid Goyal
aead3c1c35
Also generate a termcap database entry when building terminfo
2022-04-12 22:38:52 +05:30
Kovid Goyal
587f44ad4e
A working implementation of cwd_of_process for FreeBSD
2022-04-12 22:06:46 +05:30
Kovid Goyal
c9ef4aa8c8
Sessions: Fix os_window_size and os_window_class not applying to the first OS Window
...
Fixes #4957
2022-04-12 21:38:29 +05:30
Kovid Goyal
aabadd8517
...
2022-04-12 21:19:28 +05:30
Kovid Goyal
b8866371a3
avoid unneccessary session creation during startup
2022-04-12 21:18:18 +05:30
Kovid Goyal
0f3883af02
...
2022-04-12 21:13:56 +05:30
Kovid Goyal
5876ce0845
Remove --target-group in favor of the new boolean search expressions with matching on window/tab state
2022-04-12 20:41:17 +05:30
Kovid Goyal
2c72c56e22
Add a couple more states to match against
...
So we can now select windows/tabs that are not active/focused but are in
the active/focused tab/os window.
2022-04-12 20:35:31 +05:30
Kovid Goyal
f15ce21da1
Markup the --match options help text a bit more
2022-04-12 20:20:29 +05:30
Kovid Goyal
b3fa7310cb
Allow matching on window/tab state
2022-04-12 20:14:01 +05:30
Kovid Goyal
ade38870a0
Allow using boolean operators when matching windows or tabs
2022-04-12 19:55:20 +05:30
Kovid Goyal
11bc1b100c
Handle <> inside :ref: on the CLI
2022-04-12 19:48:09 +05:30
Kovid Goyal
93a7b220c9
Fix parsing of quoted words
2022-04-12 19:31:56 +05:30
Kovid Goyal
8f92c594f2
Create a search query parser
2022-04-12 19:26:25 +05:30
Kovid Goyal
afebea8635
--tab-title=current should respect any override title set on the tab
2022-04-12 12:53:59 +05:30
Kovid Goyal
5d76cfb578
Remove output start mark from last command output
2022-04-12 08:55:07 +05:30
Kovid Goyal
f085f853bd
unactive -> inactive
2022-04-12 06:35:29 +05:30
Kovid Goyal
4ac2312b2a
Fix #4954
2022-04-12 06:33:35 +05:30
Kovid Goyal
c6dcbe6521
Dont check if running in kitty when updating
...
I dont actually know if it causes any problems and its fairly
inconvenient to use another terminal.
2022-04-11 22:07:36 +05:30
Kovid Goyal
49efbf0c6e
Remove the code to generate installer.sh from installer.py
2022-04-11 21:35:59 +05:30
Kovid Goyal
1d8d669a43
version 0.25.0
2022-04-11 19:31:45 +05:30
Kovid Goyal
f4d44f30b4
Allow copying current window/tab/os window titles when creating new ones via the launch command. Fixes #4933
2022-04-11 15:38:33 +05:30
Kovid Goyal
4c77b0c562
Fix #4947
2022-04-11 15:00:27 +05:30
Kovid Goyal
2f367fa90c
Note that wayst also has graphics protocol support
2022-04-10 07:38:55 +05:30
Kovid Goyal
970ec9c839
Merge branch 'feat-close-other-tabs' of https://github.com/page-down/kitty
2022-04-10 07:17:31 +05:30
pagedown
be52f29792
...
2022-04-09 18:27:32 +08:00
pagedown
8ae2f06828
Add a new mappable action close_other_tabs_in_os_window
2022-04-09 18:26:31 +08:00
Kovid Goyal
601b2a05ac
Add instructions for how to do debug builds
2022-04-09 08:07:29 +05:30
Kovid Goyal
b78fbb4521
Fix #4938
2022-04-08 15:44:33 +05:30
Kovid Goyal
c40ef01445
Fix resizing window that is extra tall/wide because of left-over cells not working reliably
...
Fixes #4913
2022-04-08 15:41:53 +05:30
Kovid Goyal
ab8a4c6b9f
Make per cell bias calculation overridable more easily
2022-04-08 14:52:53 +05:30
Kovid Goyal
dd331ca12e
ssh kitten: Allow changing terminal colors when connecting
2022-04-08 12:10:59 +05:30
Kovid Goyal
c3b23679f3
Make some themes code re-useable
2022-04-08 11:33:50 +05:30
Kovid Goyal
d0398dca28
Bash shell integration: Fix yet another inconsistent use of SYS_BASHRC
...
Why Linux distros are constitutionally incapable of using consistent
names and values for anything is beyond me.
Fixes #4934
Fixes #4935
2022-04-07 17:54:52 +05:30
Kovid Goyal
e66c732b41
Forgot to adjust test for new mouse encoding
2022-04-07 17:23:23 +05:30
Kovid Goyal
e7b216ba68
DRYer
2022-04-07 16:24:57 +05:30
Kovid Goyal
838a85ee8b
Fix drag event reporting not specifying the current button.
...
xterm does this, so in the absence of a spec we copy xterm. Fixes #4925
2022-04-07 16:22:26 +05:30
Kovid Goyal
3ec93e0b4e
Fix #4932
2022-04-07 15:29:15 +05:30
Kovid Goyal
e8a9bbb51d
Merge branch 'fix-inactive-text-alpha' of https://github.com/page-down/kitty
...
Fixes #4928
2022-04-07 15:16:26 +05:30
pagedown
25c2a0e241
Update cursor focus flag when preparing to render OS window
...
Fix inactive text alpha always being applied when starting a program
with cursor hidden via session.
2022-04-07 11:48:53 +08:00
Kovid Goyal
de12dddbef
Better error message when ripgrep is not found
2022-04-06 16:38:18 +05:30
Kovid Goyal
24eeeedb1f
...
2022-04-05 16:08:24 +05:30
Kovid Goyal
c2bc24de35
Read appearance setting from desktop portal as well
2022-04-05 15:44:27 +05:30
Kovid Goyal
21446e36c1
Restore invalid LANG after trying to get python to set the locale without it
2022-04-04 20:01:01 +05:30
Kovid Goyal
0f734719e7
...
2022-04-04 19:09:13 +05:30
Kovid Goyal
f3c96f308d
Only do update checking in binary builds
...
Distro packages and source builds will no longer do update checking.
Remove the packaging defaults instructions since they are not needed
any more. The shell integration scripts shouldnt be installed system
wide anyway.
2022-04-04 16:02:38 +05:30
Kovid Goyal
8ff841f1ac
...
2022-04-04 15:34:07 +05:30
Kovid Goyal
709c4abb53
Do not do automatic upgrades of remote kitty
...
Can be disruptive, since upgrading outputs to the terminal.
Instead updating can be triggerred manually with kitty update-kitty
2022-04-04 14:51:49 +05:30
Kovid Goyal
c1f06941f5
Do not depend on python to install kitty
...
Now the installer is implemented as pure POSIX sh. This makes it
possible to install kitty on systems without python, easily.
2022-04-04 13:42:20 +05:30
Kovid Goyal
ecb74aed29
...
2022-04-04 11:05:36 +05:30
Kovid Goyal
c72154782b
Simplify getting released kitty version
...
Also if fetching release version fails and local version exists, use it
2022-04-04 10:22:25 +05:30
Kovid Goyal
9520006466
Dont use alternate screen as it is too disruptive
2022-04-04 07:53:48 +05:30
Kovid Goyal
40f04284d4
Update the text to reflect current support status
2022-04-04 07:51:22 +05:30
Kovid Goyal
832534aac9
Show installation output in alternate screen
2022-04-03 22:13:02 +05:30
Kovid Goyal
6cc89416ce
Implement locking for the kitty bootstrap install
2022-04-03 21:53:23 +05:30
Kovid Goyal
b3fc2cb118
Avoid executing kitty just to read installed kitty version
2022-04-03 20:47:02 +05:30
Kovid Goyal
69efd9801b
Add a mention of on-demand kitty in the features list
2022-04-03 20:35:48 +05:30
Kovid Goyal
c07f164154
Implement an option to control the installation of the kitty bootstrap script
2022-04-03 20:30:16 +05:30
Kovid Goyal
a2d1140229
Forgot to run gen-config.py after changing default for confirm_os_window_close
2022-04-03 19:57:54 +05:30
Kovid Goyal
bae9b095b4
Start work on kitty launcher for remote servers
...
This will automatically download kitty and run it. The ssh kitten
can add it to PATH thereby making kitty available on the remote machine
at low cost.
2022-04-03 15:10:20 +05:30
Kovid Goyal
efe6ff6188
Try to ensure builtin command is used
2022-04-03 12:16:13 +05:30
Kovid Goyal
3257fdf24f
Merge branch 'master-macos_option_as_alt_docs' of https://github.com/miguno/kitty
2022-04-01 18:27:14 +05:30
Michael G. Noll
3284d71300
Clarify documentation of macos_option_as_alt
...
See discussion at https://github.com/kovidgoyal/kitty/issues/4908
2022-04-01 14:52:12 +02:00
Kovid Goyal
cdb3e2c1cd
Added a version added note for the ssh kitten
2022-04-01 14:23:31 +05:30
Kovid Goyal
57cffc71b7
Fix building on macOS with a non-framework Python
...
Fixes #289
2022-04-01 07:39:54 +05:30
Kovid Goyal
a4f1caeb4e
Missed a couple of actions invocations
2022-04-01 07:31:10 +05:30
Kovid Goyal
45de091ee6
Use versioned actions as master for setup-python is currently broken
2022-04-01 07:19:41 +05:30
Kovid Goyal
00c1802319
Change the default for confirm_os_window_close
...
Now that the new ssh kitten makes shell integration easy even on remote
servers, it makes sense to change the default behavior to ask for
confirmation when closing windows not at a shell prompt.
2022-03-31 20:33:58 +05:30
Kovid Goyal
02c2d24360
Merge branch 'feat-vis-sel-chars' of https://github.com/page-down/kitty
2022-03-31 15:15:00 +05:30
pagedown
499c255e81
Use the configured chars when visually selecting windows on stack layout
...
Also list the current active window in the candidates and gray it out to
make sure the order is consistent.
2022-03-31 17:32:10 +08:00
Kovid Goyal
30cad2e0a6
select_tab: Use stable numbers when selecting the tab
...
Fixes #4792
2022-03-31 13:16:08 +05:30
Kovid Goyal
6e838b83d8
Add a note about how to use a new target tab to --target-tab docs
2022-03-31 12:52:08 +05:30
Kovid Goyal
5297223ee3
Dont use a blank line for empty subtitle
2022-03-31 12:43:28 +05:30
Kovid Goyal
2340d5be8d
Merge branch 'ksi-fish' of https://github.com/page-down/kitty
2022-03-30 18:51:16 +05:30
Kovid Goyal
7de1a145aa
Merge branch 'docs' of https://github.com/page-down/kitty
2022-03-30 18:44:41 +05:30
pagedown
32426d61c3
Shell integration: Mark fish prompt on cancel or syntax error
...
The fish_prompt event will not be fired, even if a new prompt has been
drawn.
2022-03-30 20:49:48 +08:00
pagedown
3ce47660a0
Docs: Add instructions for compiling terminfo under macOS
2022-03-30 20:12:18 +08:00
Kovid Goyal
0dff455ffa
declare oldval local
2022-03-30 11:57:46 +05:30
Kovid Goyal
81739288e8
handle multiple trailing spaces and semi-colons
2022-03-30 11:54:06 +05:30
Kovid Goyal
5641668bc1
Bash integration: Handle existing PROMPT_COMMAND ending with a literal newline
2022-03-30 10:44:59 +05:30
Kovid Goyal
5c03a52a0b
...
2022-03-29 15:34:34 +05:30
Kovid Goyal
087b52e3e0
Merge branch 'feat-scroll-prompt-to-top' of https://github.com/page-down/kitty
2022-03-29 15:00:46 +05:30
pagedown
733b8e7c1c
Update changelog
2022-03-29 17:01:41 +08:00
pagedown
aa83f42f2d
Avoid using already defined shortcuts in examples
2022-03-29 16:45:02 +08:00
pagedown
4ed2854791
Add a new standalone action scroll_prompt_to_top
...
Refactor clear_terminal to move the functions to Window.
Fix the action not scrolling to the bottom when the screen is scrolled.
2022-03-29 16:42:29 +08:00
Kovid Goyal
73cdd87d91
Fix completion for kitty +open
2022-03-29 13:04:55 +05:30
Kovid Goyal
51c8e3b2c6
Add some more debug about scale changes
2022-03-29 09:47:48 +05:30
Kovid Goyal
e522095fae
...
2022-03-26 07:39:16 +05:30
Kovid Goyal
6fc1226028
Merge branch 'fix-overlay-ready' of https://github.com/page-down/kitty
2022-03-26 07:38:01 +05:30
Kovid Goyal
fb40280d3c
Use x-shellscript in addition to x-sh
...
/etc/mime.types uses x-sh and file --mime-type uses x-shellscript. Sigh.
Fixes #4881
2022-03-26 07:35:42 +05:30
pagedown
746cb3684a
Eliminate flickering when hints kitten exits
2022-03-25 22:53:38 +08:00
pagedown
16c6545e93
Report overlay ready in case of no match
2022-03-25 22:52:35 +08:00
Kovid Goyal
0c4b20aa4e
typo
2022-03-25 16:30:48 +05:30
Kovid Goyal
15e3e8d8b1
typo
2022-03-25 16:18:00 +05:30
Kovid Goyal
6123de52c2
Merge branch 'fix-macos-drop-files' of https://github.com/page-down/kitty
2022-03-25 07:29:07 +05:30
pagedown
3db0aab24b
macOS: Fix the path encoding issue from drag and drop files
2022-03-25 09:14:56 +08:00
Kovid Goyal
ae77f696ce
Merge branch 'ssh-kitten' of https://github.com/page-down/kitty
2022-03-24 20:14:22 +05:30
pagedown
98369db7f5
Unset shell integration env var before exec command
2022-03-24 22:01:11 +08:00
pagedown
bc9d6892d4
Clean up login shell environment variable earlier
...
Does not pollute the environment when executing commands.
2022-03-24 22:00:51 +08:00
pagedown
5c02c370d4
ssh kitten: Allow to configure HOME environment variable
...
Useful if the user does not have a home directory or the directory is
not writable.
2022-03-24 22:00:41 +08:00
pagedown
b944cdddeb
ssh kitten: Fix python bootstrap checking zsh rc files with ZDOTDIR
2022-03-24 22:00:16 +08:00
Kovid Goyal
a1d203d34a
Clean up paste_actions docs
2022-03-24 17:35:07 +05:30
Kovid Goyal
e151b8e604
Make detection of pasted URLs a little stricter
2022-03-24 17:30:47 +05:30
Kovid Goyal
3c67e991c2
Allow defining actions to take when pasting
...
Fixes #4873
2022-03-24 17:22:46 +05:30
Kovid Goyal
cb7aed3234
DRYer
2022-03-24 11:54:13 +05:30
Kovid Goyal
ff80b906d0
Report full traceback when highlighting fails
2022-03-24 11:39:31 +05:30
Kovid Goyal
8300436481
Make setting kitten_result more robust
2022-03-24 11:34:12 +05:30
Kovid Goyal
6b13454091
...
2022-03-24 09:50:50 +05:30
Kovid Goyal
9eae4ad913
...
2022-03-24 09:37:13 +05:30
Kovid Goyal
bfb8532c52
Jump through the hoops needed to ensure error reporting is done in case of early termination of kittens that use overlay ready notifications
2022-03-24 08:49:36 +05:30
Kovid Goyal
c41405fd57
Merge branch 'ssh-kitten' of https://github.com/page-down/kitty
2022-03-23 18:19:12 +05:30
pagedown
276ba7754a
Add ssh kitten URL test
2022-03-23 20:08:50 +08:00
pagedown
8569be81ea
...
2022-03-23 19:49:34 +08:00
pagedown
a765d551e4
Fix bash integration cwd reporting missing hostname
2022-03-23 19:29:18 +08:00
pagedown
4309aa1ace
ssh kitten: Fix SSH URL hostname matching
2022-03-23 18:39:27 +08:00
Kovid Goyal
6ef83a09d3
Avoid clearing the screen when exiting a kitten as its not needed any more
2022-03-23 16:06:38 +05:30
Kovid Goyal
adcc616c92
...
2022-03-23 16:04:01 +05:30
Kovid Goyal
6dc1617429
Avoid flicker when starting kittens such as the hints kitten
...
Fixes #4674
2022-03-23 15:55:11 +05:30
Kovid Goyal
1837168b0b
Micro optimization
2022-03-23 14:51:22 +05:30
Kovid Goyal
1be1864657
Allow sending more than a screenful of output from a kitten
...
Also Fixes #4866
2022-03-23 14:33:53 +05:30
Kovid Goyal
49c335972f
Update padding color on colorprofile pop
2022-03-23 08:35:36 +05:30
Kovid Goyal
aabc99c7bf
...
2022-03-22 21:12:35 +05:30
Kovid Goyal
7c91dc6183
Merge branch 'docs' of https://github.com/page-down/kitty
2022-03-22 21:07:05 +05:30
pagedown
ff8a99211d
Docs: Unify and generalize the terms remote computer, machine and host
2022-03-22 23:26:15 +08:00
pagedown
efda0ea455
Docs: Categorize the ssh kitten configuration options and minor tweaks
2022-03-22 23:25:59 +08:00
Kovid Goyal
906be21b8d
Make GNOME detection a bit more tolerant
2022-03-22 11:36:09 +05:30
Kovid Goyal
5a36fbfe7b
Only move overlay line/pre-edit position when cursor is visible
...
This might help with #4849
2022-03-22 10:35:55 +05:30
Kovid Goyal
f9f69a0577
...
2022-03-22 10:28:41 +05:30
Kovid Goyal
8ccbb96b8d
Update changelog for last PR
...
Fixes #4853
2022-03-22 08:22:15 +05:30
Kovid Goyal
8ae7256fd6
Merge branch 'fix-ime' of https://github.com/page-down/kitty
2022-03-22 08:21:31 +05:30
Kovid Goyal
ba401c19c2
Pass mode when opening existing shm buffer
2022-03-21 16:12:26 +05:30
pagedown
11343d42c3
Wayland: Fix backspace cannot clear the last character of pre-edit text
2022-03-21 18:36:35 +08:00
pagedown
6c628bc594
Wayland: Fix IME is not enabled after switching the focus
2022-03-21 18:36:25 +08:00
Kovid Goyal
f6cbca1aeb
...
2022-03-20 14:50:04 +05:30
Kovid Goyal
51e7c8c136
Move the splitting code into python
...
Less code and more robust
2022-03-20 14:40:02 +05:30
Kovid Goyal
f952694ffd
Merge branch 'macos-multi-dirs-here' of https://github.com/page-down/kitty
2022-03-20 14:12:08 +05:30
pagedown
59afdfc4e9
macOS: Allow the New kitty Here services to open multiple folders
2022-03-20 14:51:47 +08:00
Kovid Goyal
27ec1e4b3c
Clean up logic for getting CWD
2022-03-18 12:25:01 +05:30
Kovid Goyal
e791a8a7bb
Add the SSH kitten to the Changelog
2022-03-18 10:45:16 +05:30
Kovid Goyal
66fe53ceb1
Merge branch 'docs' of https://github.com/page-down/kitty
2022-03-18 09:36:36 +05:30
Kovid Goyal
de3cc11423
Merge branch 'version-check' of https://github.com/page-down/kitty
2022-03-18 09:35:49 +05:30
pagedown
901eae9604
Docs: no-cwd will not disable fish's built-in CWD reporting
2022-03-18 11:10:21 +08:00
pagedown
1962519666
Only write to the OpenSSH version sentinel file once
2022-03-17 22:23:48 +08:00
pagedown
1e84cbe2ab
Check macOS less version
2022-03-17 22:23:37 +08:00
Kovid Goyal
06da2b88ff
Also check if states are empty
2022-03-17 17:51:21 +05:30
Kovid Goyal
91b9110dcc
Workaround for bug in mutter that caused first OS window to not have functional CSD when launched from activities
...
Fixes #4802
2022-03-17 17:35:56 +05:30
Kovid Goyal
d57abb56ce
Dont use remote cwd as child cwd
2022-03-17 16:42:11 +05:30
Kovid Goyal
f6edb774fc
Merge branch 'ssh-cwd' of https://github.com/page-down/kitty
2022-03-17 15:34:11 +05:30
pagedown
ec0f3e9128
Allow *_with_cwd to work with ssh kitten when the shell is configured
2022-03-17 16:40:55 +08:00
Kovid Goyal
6f1404d17b
typo
2022-03-17 10:59:41 +05:30
Kovid Goyal
3d9e47c295
typo
2022-03-17 10:52:09 +05:30
Kovid Goyal
afa6128155
Implement --cwd=last_reported
2022-03-17 10:29:31 +05:30
Kovid Goyal
72b1996423
Allow different kinds of cwd requests
2022-03-17 10:24:34 +05:30
Kovid Goyal
6b1a9d635e
...
2022-03-17 09:33:12 +05:30
Kovid Goyal
dea79f16d0
Update the how it works section
2022-03-17 09:31:03 +05:30
Kovid Goyal
2d772d7243
...
2022-03-16 21:42:37 +05:30
Kovid Goyal
09fb246c8f
...
2022-03-16 21:30:16 +05:30
Kovid Goyal
0a5c16363c
Fix continued lines not having their continued status reset on line feed
...
Fixes #4837
2022-03-16 15:20:25 +05:30
Kovid Goyal
b444f4636e
Move another function into bootstrap-utils.sh
2022-03-16 07:37:56 +05:30
Kovid Goyal
2b8acebd6e
Make bootstrap.sh even smaller
2022-03-16 07:31:33 +05:30
Kovid Goyal
766010c292
...
2022-03-16 07:27:52 +05:30
Kovid Goyal
0a2768e496
Split up the bootstrap script to keep its size down
2022-03-16 07:17:12 +05:30
Kovid Goyal
0fd7f3f7b5
Merge branch 'ksi' of https://github.com/page-down/kitty
2022-03-16 07:02:18 +05:30
pagedown
d3472966d3
Fix generating terminfo on NetBSD
2022-03-16 09:15:31 +08:00
pagedown
576ab24609
Preserve line breaks to keep the line numbers in error messages
2022-03-16 08:58:50 +08:00
pagedown
621453b068
...
2022-03-16 01:33:23 +08:00
pagedown
6638546247
Fix generating terminfo on NetBSD
...
.terminfo.cdb is the compiled terminfo database file.
Ensure that both .terminfo (dir) and .terminfo.cdb are generated.
2022-03-16 01:04:26 +08:00
pagedown
f99edbae3c
Reduce bootstrap script size
2022-03-16 01:04:02 +08:00
pagedown
150bf1a5b0
Reduce bootstrap script length by removing comments and indents
...
dropbear has 9000 bytes limit on ssh arguments length.
2022-03-16 01:03:51 +08:00
pagedown
91a17e3f0c
Fall back to use POSIX SHELL environment variable
2022-03-16 01:03:33 +08:00
pagedown
7160027c14
Use the fish built-in function name to report current working directory
...
If the feature is enabled by fish in the future, it will override the
built-in one and there will be no duplicate reporting.
2022-03-16 01:03:26 +08:00
pagedown
736d6cf7e6
Simplify fish prompt state checking
2022-03-16 01:03:16 +08:00
Kovid Goyal
82de6a1c56
DRYer
2022-03-15 22:12:49 +05:30
Kovid Goyal
1fbb4f763e
Only check OpenSSH version once on a machine if it is new enough
2022-03-15 22:09:40 +05:30
Kovid Goyal
20582431d6
typo
2022-03-15 21:50:55 +05:30
Kovid Goyal
7d9cf0b064
When at shell prompt use reported cwd
2022-03-15 21:16:49 +05:30
Kovid Goyal
a834f221f1
Unquote paths from file:// URLs
...
The original iTerm spec for this says the urls are supposed to be
percent escaped
2022-03-15 21:07:36 +05:30
Kovid Goyal
c95dca4023
See if we can make the test more robust
2022-03-15 20:38:02 +05:30
Kovid Goyal
c05c0353fd
Dont report directory changes during command substitution
2022-03-15 20:34:18 +05:30
Kovid Goyal
e944e2ecae
Make a note that cwd reporting is builtin to fish
2022-03-15 20:33:14 +05:30
Kovid Goyal
47b3c37bf0
Add cwd reporting to fish integration
2022-03-15 20:25:39 +05:30
Kovid Goyal
190666dc8a
Check that non-ascii paths work in cwd reporting
2022-03-15 20:16:09 +05:30
Kovid Goyal
8c6e7ce61a
...
2022-03-15 20:11:27 +05:30
Kovid Goyal
04ead526b9
Presend data on slave connections since for these SSH does not use the TTY
2022-03-15 20:09:05 +05:30
Kovid Goyal
135fb7e6e4
...
2022-03-15 20:01:23 +05:30
Kovid Goyal
ce1e22ac95
Have *_with_cwd work with the ssh kitten to open new windows auto-logged into the remote server at the current remote working directory
2022-03-15 19:59:16 +05:30
Kovid Goyal
a216f6bd46
ssh doesnt use askpass even if DISPLAY is set
...
It only uses askpass if not connected to a terminal
2022-03-15 17:27:57 +05:30
Kovid Goyal
c47e5372b5
native askpass should be used when requested
2022-03-15 15:54:48 +05:30
Kovid Goyal
daa673eff1
Make usage of need_to_request_data clearer
2022-03-15 15:51:49 +05:30
Kovid Goyal
5099dd6aa3
Only use kitty's askpass if DISPLAY is set or OpenSSH is new enough to support SSH_ASKPASS_REQUIRE
2022-03-15 15:47:02 +05:30
Kovid Goyal
f982e754e4
Enable CWD reporting in bash integration
2022-03-15 15:37:17 +05:30
Kovid Goyal
4a1ad7755a
Enable CWD reporting in the zsh integration
2022-03-15 14:30:21 +05:30
Kovid Goyal
946589d1f1
...
2022-03-15 13:18:07 +05:30
Kovid Goyal
7168ceab94
Make askpass a choice var
2022-03-15 13:14:53 +05:30
Kovid Goyal
868d57b818
...
2022-03-15 12:00:17 +05:30
Kovid Goyal
6057c57ea4
Fix garbage removal pafter SSH failure not working on macOS when run more than once
2022-03-15 11:57:28 +05:30
Kovid Goyal
e8437fd435
Make reading garbage more robust
2022-03-15 11:51:46 +05:30
Kovid Goyal
9e317971b4
Simplify garbage clear logic
2022-03-15 11:41:59 +05:30
Kovid Goyal
bdb55a02fa
...
2022-03-15 11:40:14 +05:30
Kovid Goyal
02e062af65
Add a mappable action to cleanup shared SSH connections
2022-03-15 11:34:56 +05:30
Kovid Goyal
54c5faa12d
Simplify hostname matching
...
Now that we load the opts upfront, we can have load_config return the
final opts object itself
2022-03-15 11:25:21 +05:30
Kovid Goyal
9b0bd81661
Ignore hostname directives when using overrides
2022-03-15 10:38:03 +05:30
Kovid Goyal
52da68876d
Use a zero mtime for data.sh
...
Its a temp file and that way no chance of the time being in the future
2022-03-15 10:30:15 +05:30
Kovid Goyal
2780630a18
Suppress STDERR for tar
2022-03-15 10:28:14 +05:30
Kovid Goyal
8f77cc65e2
Use a full window object rather than a child PID to get cwd
...
This allows implementation of more sophisticated algorithmhs
for getting the cwd
2022-03-15 07:58:57 +05:30
Kovid Goyal
7224363639
...
2022-03-15 07:27:25 +05:30
Kovid Goyal
43851fc1c4
Ignore OSC 6
2022-03-14 22:04:38 +05:30
Kovid Goyal
e33bf11012
Store last reported CWD via OSC 7
...
Can be used with shell integration to give more accurate
cwd detection and also combined with the ssh kitten
to magically open new windows connected to remote servers
at the correct cwd on the remote server instantly.
2022-03-14 22:00:41 +05:30
Kovid Goyal
0e21376538
Update changelog
...
Fixes #4831
2022-03-14 20:20:33 +05:30
Kovid Goyal
7a463c1240
Merge branch 'fix-diff-kitten' of https://github.com/page-down/kitty
2022-03-14 20:01:36 +05:30
pagedown
8e03da855f
diff kitten: Fix wrong number of scrolling lines after context switch
2022-03-14 20:29:15 +08:00
Kovid Goyal
942881d1b7
Add a ntoe about the importance of askpass
2022-03-14 16:44:12 +05:30
Kovid Goyal
2a50203fcd
...
2022-03-14 13:44:18 +05:30
Kovid Goyal
08ce8ffa54
py2 compat
2022-03-14 12:36:43 +05:30
Kovid Goyal
90561682cf
Make using kitty askpass optional
2022-03-14 11:38:31 +05:30
Kovid Goyal
71027e74e0
py2 compat
2022-03-14 11:28:46 +05:30
Kovid Goyal
be8bfbe370
Refactor launch sequence in preparation for optionising it
2022-03-14 10:40:07 +05:30
Kovid Goyal
f7e4447b66
Dont transmit sensitive data unless actually needed
2022-03-13 15:43:14 +05:30
Kovid Goyal
df4e58bc39
Improve disposal of garbage data on ssh failure
2022-03-13 15:37:46 +05:30
Kovid Goyal
441ea7d696
askpass.py should be executable
2022-03-13 14:49:36 +05:30
Kovid Goyal
2b06ca5e1a
ssh kitten: Send data without a roundtrip
...
Send data to the remote side without waiting for a data request. Avoids
an extra roundtrip during initialization.
2022-03-13 13:55:30 +05:30
Kovid Goyal
434ef97952
Dont need atexit anymore since cleanup only closes tty_fd
2022-03-13 13:55:30 +05:30
Kovid Goyal
e1504c4775
Avoid needing to initialize tty state in bootstrap scripts
2022-03-13 13:55:30 +05:30
Kovid Goyal
74f0057ec8
Dont change tty state to raw
...
Just turn off echo. Makes the code much simpler, can just use shell
builtin POSIX read function.
2022-03-13 13:55:30 +05:30
Kovid Goyal
7cd74cb852
Allow writing memoryview to child
2022-03-13 13:55:30 +05:30
Kovid Goyal
b2e74e4830
Switch to using the hostname from the CLI for settings
...
This removes the need to wait for data from the remote machine
before sending data to it.
2022-03-13 13:55:30 +05:30
Kovid Goyal
f54a3e8036
Make requesting data optional
2022-03-13 13:55:30 +05:30
Kovid Goyal
f3088c5646
Only try to chmod runtime dir if actually needed
2022-03-13 13:45:03 +05:30
Kovid Goyal
db00adaf69
macOS: Use the POSIX user cache dir as the runtime dir
...
It's path length is 49 chars which is still too long, but it is at least
well defined.
2022-03-13 06:27:41 +05:30
Kovid Goyal
ea74add814
ssh kitten: Restore terminal state after running ssh
2022-03-12 15:48:52 +05:30
Kovid Goyal
ba1b3c3c2d
Fix mypy failures
2022-03-12 08:28:43 +05:30
Kovid Goyal
d5c48ddb94
Allow inputting fingerprint check
2022-03-12 08:23:10 +05:30
Kovid Goyal
9687318b22
Retry reading HEAD commit
2022-03-12 08:14:06 +05:30
Kovid Goyal
f6fb36c58a
Merge branch 'fix-icat_typeerror_on_print_window_size' of https://github.com/nertro/kitty
2022-03-12 08:08:32 +05:30
Mena Jacobs
c8a258f36b
Fix icat fail on mac with --print-window-size
...
passing tty as TextIOWrapper to screen_size_function results in a TypeError since the screen_size_function expects an int. calling fileno() on tty gives us the desired int. This also fixes the kitty matplotlib backend, if MPLBACEND_KITTY_SIZING is not set to manual
2022-03-12 02:17:01 +01:00
Kovid Goyal
14e0b01b40
Echo asterisks when inputting the password
2022-03-11 16:44:08 +05:30
Kovid Goyal
76de99a5a8
Use a custom askpass implementation
...
Keeps OpenSSH from using the tty hopefully allowing us to start sending
data without needing to wait for the remote side to request it.
2022-03-11 16:44:08 +05:30
Kovid Goyal
8613c6e1cd
...
2022-03-11 16:44:08 +05:30
Kovid Goyal
5bb6b29ca3
Allow controlling the prompt used to input the password
2022-03-11 16:44:08 +05:30
Kovid Goyal
61558d518e
Get askpass basically working
2022-03-11 16:44:08 +05:30
Kovid Goyal
3b724c8415
Start work on SSH askpass implementation
2022-03-11 16:44:08 +05:30
Kovid Goyal
910565aa7c
Mention the shell in the error message
2022-03-11 15:52:51 +05:30
Kovid Goyal
c7a2e060e3
Merge branch 'ksi-ssh' of https://github.com/page-down/kitty
2022-03-11 15:51:16 +05:30
pagedown
740e787f54
...
2022-03-11 17:28:29 +08:00
pagedown
bd87d50948
Remove the ssh folder in cache_dir
2022-03-11 16:47:03 +08:00
pagedown
d3c0c422a5
Add user uid suffix to tmp runtime dir symlink
2022-03-11 15:42:52 +08:00
pagedown
72718cbab7
Remove login shell name suffix restriction
...
Some shells do not end with sh, consistent with the python bootstrap
implementation.
2022-03-11 15:42:45 +08:00
pagedown
ea28951e0e
Fall back to run the shell without -l option
2022-03-11 15:42:34 +08:00
pagedown
39a78f6be3
Explicitly set STDOUT to binary mode
2022-03-11 15:42:23 +08:00
pagedown
fe8aaca320
Use POSIX LOGNAME environment variable
2022-03-11 15:42:09 +08:00
pagedown
f5cc58ea9d
Unset the safe source function in sh script and minor refactoring
2022-03-11 15:41:56 +08:00
Kovid Goyal
44992452cf
Fix #4815
2022-03-11 09:42:54 +05:30
Kovid Goyal
f080871911
Update the idiotic design symlink atomically
2022-03-11 07:54:16 +05:30
Kovid Goyal
6789eb88e2
Fix replacement of symlinks to directories
2022-03-11 07:51:50 +05:30
Kovid Goyal
1a97be4a25
Merge branch 'fix-pkg-terminfo' of https://github.com/page-down/kitty
2022-03-11 07:39:25 +05:30
Kovid Goyal
c9ef5c0715
Avoid a race in creating the idiotic_design symlink
2022-03-11 07:37:44 +05:30
pagedown
0a9f8d4f6a
Add terminfo src file when packaging
...
ssh kitten needs to send this file.
2022-03-11 08:35:10 +08:00
Kovid Goyal
cac2c153c2
Fix #4809
2022-03-10 22:55:47 +05:30
Kovid Goyal
f2d6ba8775
Workaround for socket path too long on macOS
2022-03-10 22:50:26 +05:30
Kovid Goyal
92abaad22c
Handle cross filesystem untarring in bootstrap.py
2022-03-10 22:43:54 +05:30
Kovid Goyal
3df0194f6e
Use a well known runtime dir if XDG_RUNTIME_DIR not available
2022-03-10 22:18:35 +05:30
Kovid Goyal
f774841ee0
More robust copying of terminfo
...
Dont use symlinks in the tarball, instead create them
in the bootstrap scripts, only if needed.
2022-03-10 21:08:20 +05:30
Kovid Goyal
a9de91087a
Add a comment explaining why we dont commit if resized
2022-03-10 20:47:45 +05:30
Kovid Goyal
76a536ece0
On macOS always use the cache dir a runtime dir
...
Also make the constant parts of the socket name shorter
as there is a 104 bytes limit on it in macOS SSH.
2022-03-10 20:12:40 +05:30
Kovid Goyal
719339e116
Output debug info about CSD rendering
2022-03-10 19:45:31 +05:30
Kovid Goyal
1c3910de5c
Output debug info about resized being called
2022-03-10 19:32:17 +05:30
Kovid Goyal
39d3ef6fe8
Output debug for decoration configure when it happens
2022-03-10 17:59:54 +05:30
Kovid Goyal
064d0fa6f1
Merge branch 'wayland-fixes' of https://github.com/Nefsen402/kitty
2022-03-10 17:37:29 +05:30
Alexander Orzechowski
99a5843595
wayland: Don't commit the surface on a resize
...
This fixes weirdness with GNOME.
On a resize, we will schedule a new frame anyway which will commit
the wl_surface for us anyway. If we don't resize, we'll commit
to stay true to the wayland spec.
2022-03-10 06:02:22 -05:00
Alexander Orzechowski
39e75e39e8
wayland: Correctly handle xdg decoration configures
...
Much like toplevel configures, xdg decoration configures only take
effect once the xdg shell configure comes through. Also,
let's get rid of some double computations because we unified the code
paths.
2022-03-10 06:01:50 -05:00
Alexander Orzechowski
322a80e76e
wayland: track configures through a bit field
...
This will let us add more stuff later. Also, it's a better spot
to put the bit field outside of the {current, pending} struct as
the bit field doesn't make any sense if it's part of the `current`
values.
2022-03-10 05:56:56 -05:00
Alexander Orzechowski
d4b048735d
wayland: Fix CSD size calculations
...
This is a partial revert of e359094cff
window->wl.{width, height} and window->wl.current.{width, height}
represent different things. The former represents the actual size of the
egl surface viewport used for terminal rendering. The former represents
the size of the entire window including the CSD (client side decorations).
These numbers should be the same if CSD is disabled.
2022-03-10 05:56:56 -05:00
Kovid Goyal
c23e04fd03
DRYer
2022-03-10 15:37:10 +05:30
Kovid Goyal
f67009f554
Flush the write to shm explicitly
2022-03-10 15:01:58 +05:30
Kovid Goyal
4013544efb
Cleanup control master sockets in parallel
2022-03-10 12:59:38 +05:30
Kovid Goyal
31d9db7e74
Use XDG_RUNTIME_DIR to store control master sockets
...
On Linux this has the advantage that the dir is auto cleaned on reboot
2022-03-10 12:51:21 +05:30
Kovid Goyal
384c56f834
When using control masters also enable keep alives
...
Prevents the master connection from becoming stale. Use ssh protocol
keep alives rather than tcp ones as tcp ones are often blocked by
firewalls and also spoofable.
2022-03-10 11:48:36 +05:30
Kovid Goyal
3282c8200d
Dont print to stderr when shutting down master connections at exit
2022-03-10 11:22:46 +05:30
Kovid Goyal
ffbc9174f8
We dont change shell rc files anymore
2022-03-10 11:01:59 +05:30
Kovid Goyal
dceb00f669
typo
2022-03-10 11:00:58 +05:30
Kovid Goyal
920086ae88
unlink SHM file at end of each individual test
2022-03-10 10:57:36 +05:30
Kovid Goyal
a1311a2332
...
2022-03-10 10:48:08 +05:30
Kovid Goyal
4c392426f6
Get shared memory based data transfer working
2022-03-10 10:46:04 +05:30
Kovid Goyal
4528173ff5
Max length for SHM names on Apple is 30!
...
Bloody CrApple
2022-03-10 07:37:57 +05:30
Kovid Goyal
d3b63a9c45
Cleanup attribute access
2022-03-10 07:30:05 +05:30
Kovid Goyal
c30a249cf6
Use longer random names for SHM to make double unlink safe
2022-03-10 07:24:39 +05:30
Kovid Goyal
20962d989f
Use POSIX shm to pass ssh data to kitty
2022-03-10 06:55:21 +05:30
Kovid Goyal
a1e4b19486
...
2022-03-10 06:34:50 +05:30
Kovid Goyal
fd0262413e
Access to POSIX shared memory from Python
2022-03-10 06:30:03 +05:30
Kovid Goyal
aa4d36cc57
Use secrets to generate the random password
2022-03-10 06:11:58 +05:30
Kovid Goyal
8d119f06b3
Force restrictive permissions on file used to pass ssh data to kitty
2022-03-10 05:30:47 +05:30
Kovid Goyal
708c5126b9
Return the data cookie settings when generating the bootstrap script
2022-03-09 22:18:04 +05:30
Kovid Goyal
577de9f746
ssh kitten: Start work on connection sharing
...
Basic sharing works. Now investigate if we can eliminate the round-trip
latency by transmitting the data without waiting for the start message
when using a shared connection
2022-03-09 19:27:38 +05:30
Kovid Goyal
38a70f5b51
...
2022-03-09 15:31:19 +05:30
Kovid Goyal
118306a9ff
Avoid an extra process hanging around when running the interpreter on the remote machine
2022-03-09 15:29:57 +05:30
Kovid Goyal
704717ff1d
Handle case of tty not being OK
2022-03-09 15:27:24 +05:30
Kovid Goyal
405c472d13
Cleanup previous PR
2022-03-09 14:59:08 +05:30
Kovid Goyal
17c994db57
Merge branch 'ksi-ssh' of https://github.com/page-down/kitty
2022-03-09 14:39:28 +05:30
Kovid Goyal
e227264bad
Nicer error message when failing to load FreeType face
2022-03-09 14:28:38 +05:30
Kovid Goyal
8751ea79e7
Clear python error flag when loading fallback face fails
2022-03-09 14:16:56 +05:30
pagedown
3b3ffa7455
Docs: Update support for non-POSIX shell tcsh (csh)
2022-03-09 16:12:28 +08:00
pagedown
4322825ac7
Add support for sh that does not support the -l login shell option
...
FreeBSD sh does not support using the -l option to run as a login shell.
2022-03-09 16:12:20 +08:00
pagedown
d29fa7b382
ssh kitten: Add FreeBSD tcsh (csh) support
...
Replace line feeds and exclamation marks for tcsh compatibility.
2022-03-09 16:11:58 +08:00
Kovid Goyal
08bb63fa92
Ensure tdir is deleted on exit
2022-03-09 13:24:24 +05:30
Kovid Goyal
5dde31f80c
DRYer
2022-03-09 11:52:36 +05:30
Kovid Goyal
3bb869f725
Also test launching of bootstrap.py
2022-03-09 11:32:14 +05:30
Kovid Goyal
11686b90f7
...
2022-03-09 11:30:34 +05:30
Kovid Goyal
6df78fa67c
Add tests with different shells used as launchers
2022-03-09 11:29:06 +05:30
Kovid Goyal
53b1607c4d
When testing ssh kitten launch the bootscrapt script the same way sshd does it
2022-03-09 11:25:02 +05:30
Kovid Goyal
2341a27f63
...
2022-03-08 23:05:42 +05:30
Kovid Goyal
0661caf9da
DRYer
2022-03-08 23:04:58 +05:30
Kovid Goyal
5b5bd77c53
ssh kitten: Fix not working when user's login shell is fish
2022-03-08 22:39:31 +05:30
Kovid Goyal
d36f6b39c7
Fix previous PR
2022-03-08 21:29:09 +05:30
Kovid Goyal
b2a5b07f92
Merge branch 'ksi' of https://github.com/page-down/kitty
2022-03-08 21:29:05 +05:30
pagedown
46889a3a32
Fix shell integration being disabled with one invalid option
2022-03-08 23:42:41 +08:00
Kovid Goyal
958ebb72a6
DRYer
2022-03-08 20:48:37 +05:30
Kovid Goyal
febc5c53a6
Get the python interpreter working with non-POSIX login shells
2022-03-08 20:44:29 +05:30
Kovid Goyal
6e921300e2
Let ssh concat the cli args for us
2022-03-08 19:49:25 +05:30
Kovid Goyal
e167dec8a9
Note that on FreeBSD the login shell needs to be changed as well
2022-03-08 19:31:02 +05:30
Kovid Goyal
0019f07cc0
Fix interpreter opt target
2022-03-08 19:25:11 +05:30
Kovid Goyal
20fc1e6b0c
Add a note about BSD servers
2022-03-08 18:23:44 +05:30
Kovid Goyal
908946a067
Merge branch 'ksi-ssh' of https://github.com/page-down/kitty
2022-03-08 11:37:40 +05:30
pagedown
f1df7b1c1f
Use Python in preference to Perl
2022-03-08 13:59:32 +08:00
Kovid Goyal
65b9c69bd8
Use python in preference to perl
...
I know how to make python code robust, no clue about perl.
2022-03-08 11:05:02 +05:30
Kovid Goyal
b91e47c3b6
Merge branch 'ksi-ssh' of https://github.com/page-down/kitty
2022-03-08 10:30:11 +05:30
pagedown
0e3a11c53b
Use Perl in bootstrap.sh if available
2022-03-08 12:28:09 +08:00
pagedown
53d8d2aaad
Use the more explicit b64encode
...
Fix using ssh kitten to connect to OpenBSD.
2022-03-08 12:19:57 +08:00
Kovid Goyal
84303cbf2e
Use head -c only if available
2022-03-07 21:48:06 +05:30
Kovid Goyal
5e457da30b
Only use bz2 compression if bzip2 is available
2022-03-07 20:44:26 +05:30
Kovid Goyal
855718b179
ssh kitten: match hostnames against both remote hostname and hostname used on the command line to connect to it
2022-03-07 20:32:02 +05:30
Kovid Goyal
d037c0b0fc
OpenBSD compat
2022-03-07 20:14:02 +05:30
Kovid Goyal
90f5937413
Forgot to use the actual python variable
2022-03-07 19:41:18 +05:30
Kovid Goyal
cbbea37b0c
...
2022-03-07 19:37:30 +05:30
Kovid Goyal
4d74b23f20
Merge branch 'ksi-bash' of https://github.com/page-down/kitty
2022-03-07 19:26:56 +05:30
Kovid Goyal
79dd26a43a
...
2022-03-07 18:38:06 +05:30
Kovid Goyal
259e3076fa
Ensure python is searched for only once
2022-03-07 18:36:56 +05:30
Kovid Goyal
f2cb2422f0
Use python when base64 is not available
2022-03-07 18:34:02 +05:30
pagedown
4aea64261e
...
2022-03-07 20:56:02 +08:00
pagedown
cf0cd9acd9
Remove trailing semicolons
2022-03-07 20:53:35 +08:00
pagedown
b4b0bdc853
DCS @ kitty-print should be output to STDERR
2022-03-07 20:49:18 +08:00
pagedown
0b2837fcfa
Fix bash integration debug log printing
2022-03-07 20:43:14 +08:00
Kovid Goyal
f20ad7df01
Better error message when base64 is not found
2022-03-07 18:12:01 +05:30
Kovid Goyal
c9071a66ca
ssh kitten: Add an option to change the cwd at login
2022-03-07 12:24:37 +05:30
Kovid Goyal
b0ea960159
Dont use --no-same-owner when extracting tar archives
...
This flag is missing on OpenBSD and is the default on other platforms
when extracting as non-root. Make the uname/gname taringo field empty so
when extracting as root files will always be owned by root.
2022-03-07 12:10:45 +05:30
Kovid Goyal
0e7f1d60d6
Have bootstrap.sh preserve file permissions when untarring
2022-03-07 11:45:14 +05:30
Kovid Goyal
03c79502f9
Use uname -m for hostname in bootstrap.sh if needed
2022-03-07 11:24:44 +05:30
Kovid Goyal
d4d4e00f9d
Merge branch 'ksi' of https://github.com/page-down/kitty
2022-03-07 11:18:15 +05:30
Kovid Goyal
b52e5e795e
Dont use a double quote in bootstrap.py
2022-03-07 11:11:10 +05:30
Kovid Goyal
68df13d3fe
Fix recursive definitions in env vars not expanded
2022-03-07 11:07:26 +05:30
pagedown
5f3d90e411
...
2022-03-07 12:39:49 +08:00
pagedown
1b68e41db4
Remove the fish integration prompt end B prompt marking
...
Currently kitty does not use the B prompt marking.
This is consistent with the zsh and bash implementations.
Improve compatibility with most user configurations.
2022-03-07 12:12:52 +08:00
pagedown
817ac82968
Detect SSH sessions without affecting performance
...
Exclude local runs by KITTY_PID.
Check KITTY_WINDOW_ID to detect connections via ssh kitten.
Check SSH via who -m with the integration manually installed and sudo.
2022-03-07 12:00:55 +08:00
pagedown
43fd8cb13c
Unify exec function definition order
2022-03-07 11:36:52 +08:00
pagedown
397fbe7ad3
Avoid unnecessary which and fix typos
2022-03-07 11:30:12 +08:00
pagedown
3095e7a256
Remove trailing semicolons
2022-03-07 11:25:22 +08:00
pagedown
df9e893cbe
Explicitly use builtin and command
2022-03-07 11:24:18 +08:00
Kovid Goyal
6ff69c88df
...
2022-03-07 06:58:14 +05:30
Kovid Goyal
6e4d3c98da
Ensure pw file is cleaned up on kitten exit
...
This way it is cleaned up even if ssh fails
2022-03-07 06:54:11 +05:30
Kovid Goyal
2404eba11f
ssh kitten: Passthrough to ssh if run outside of kitty
...
Also, ensure that the ssh data request is only served if it is received
over the tty of the correct kitty window.
2022-03-07 06:48:18 +05:30
Kovid Goyal
e5c57a679d
Some more docs for the SSH kitten
2022-03-07 06:26:50 +05:30
Kovid Goyal
33de55540b
2nd which unneccesary
2022-03-06 22:25:03 +05:30
Kovid Goyal
99e1605bba
Use the correct which implementation
...
Same one as used by child.py
2022-03-06 21:54:56 +05:30
Kovid Goyal
95c4e26b24
macOS: When using Apple's less as the pager for viewing scrollback strip out OSC codes as Apple's less cant parse them
...
Fixes #4788
2022-03-06 21:52:59 +05:30
Kovid Goyal
795953a341
get rid of the who -m ssh session test
...
I dont like executing a binary in a fast startup script. Lets see
if there are a lot of sessions in the wild that dont use the SSH_TTY
env var
2022-03-06 15:47:08 +05:30
Kovid Goyal
75d5e386d3
Make the integration tests more strict
...
Actually assert that there are/are not prompt marking bytes in the data
received by the pty
2022-03-06 15:35:24 +05:30
Kovid Goyal
00d2a8527f
Fix parsing of env vars in bootstrap.py
2022-03-06 15:05:40 +05:30
Kovid Goyal
a1ade8fc42
Dont use format strings in bootstrap.py
2022-03-06 14:47:44 +05:30
Kovid Goyal
7f9fec061a
bootstrap.py is now tested the same as bootsstrap.sh
2022-03-06 14:26:15 +05:30
Kovid Goyal
ec782d3296
More work on bootstrap.py
2022-03-06 13:23:30 +05:30
Kovid Goyal
2444864508
Make compiling of terminfo atomic
2022-03-06 13:04:57 +05:30
Kovid Goyal
1ccc50b21b
More work on bootstrap.py
2022-03-06 12:55:36 +05:30
Kovid Goyal
4552a474b7
Make the no-integration test more comprehensive and stronger
2022-03-06 12:23:11 +05:30
Kovid Goyal
85c6d8f16e
More robust check for exec -a support
2022-03-06 12:20:06 +05:30
Kovid Goyal
14d391cc2e
Check $pipestatus for zsh as well
2022-03-06 11:43:33 +05:30
Kovid Goyal
8fe87a0df5
Search PATH when executing login shell
2022-03-06 11:13:40 +05:30
Kovid Goyal
ff01df3b16
Dont byte compile the bootstrap script during build
2022-03-06 10:54:58 +05:30
Kovid Goyal
c713dc0ca8
Allow using a --kitten argument with the ssh kitten to make it easier to override settings from ssh.conf
2022-03-06 10:07:46 +05:30
Kovid Goyal
31ea5d74a7
Exclude junk directories when adding user files as well
2022-03-06 10:00:02 +05:30
Kovid Goyal
31b01d42c0
use inherited instead of inherit
2022-03-06 09:54:33 +05:30
Kovid Goyal
482b853908
Add a note about typing before the prompt being lost
2022-03-05 15:49:21 +05:30
Kovid Goyal
675411df85
Start work on python bootstrap
2022-03-05 15:43:55 +05:30
Kovid Goyal
f94d33fa6a
...
2022-03-05 15:29:09 +05:30
Kovid Goyal
7fe110dff1
Move code to initialize TTY into its own function
2022-03-05 15:16:04 +05:30
Kovid Goyal
591f711886
DRYer
2022-03-05 15:10:09 +05:30
Kovid Goyal
1dc7fc8ac7
Note that zsh's read function is terminally broken
2022-03-05 14:56:57 +05:30
Kovid Goyal
ffa79d731c
Allow configuring the ssh kitten via env vars
2022-03-05 12:29:55 +05:30
Kovid Goyal
01dd0416ac
Add an option to control the login shell
2022-03-05 11:16:15 +05:30
Kovid Goyal
0bd1676978
Some cleanup
2022-03-05 10:58:42 +05:30
Kovid Goyal
f3407959a6
Start work on python bootstrap script
2022-03-05 10:54:21 +05:30
Kovid Goyal
30e635a934
Use zsh's builtin functions to do I/O with TTY
...
Far more robust than the system tools
2022-03-05 10:31:00 +05:30
Kovid Goyal
f6706a55ec
...
2022-03-05 09:20:08 +05:30
Kovid Goyal
f0b79f88b2
Merge branch 'fix-copy-or-interrupt' of https://github.com/page-down/kitty
2022-03-05 08:08:40 +05:30
Kovid Goyal
262ba0197d
Allow using - as a synonym for /dev/stdin when reading the config
2022-03-05 08:07:32 +05:30
pagedown
31c2447fb8
Fix not scrolling to the bottom when an interrupt is sent
...
Replicates the same side effects of keyboard key event.
2022-03-05 10:25:49 +08:00
Kovid Goyal
54a4ebfe48
Merge branch 'dte-kbd-proto' of https://github.com/craigbarnes/kitty
2022-03-05 07:51:13 +05:30
Craig Barnes
106c7a1706
Mention dte text editor in list of apps in docs/keyboard-protocol.rst
2022-03-04 23:56:17 +00:00
Kovid Goyal
e469b46ce5
Avoid calling who is either of SSH_TTY or SSH2_TTY are defined
2022-03-04 21:40:24 +05:30
Kovid Goyal
0c79561977
Fix the ssh_copy test on macOS
2022-03-04 21:31:13 +05:30
Kovid Goyal
9e82397de9
Merge branch 'test-ksi-fish' of https://github.com/page-down/kitty
2022-03-04 21:22:02 +05:30
pagedown
7c166e2194
Try to make the fish vi cursor test more stable
2022-03-04 23:46:39 +08:00
Kovid Goyal
0a2b09da40
Prevent inject loop
2022-03-04 21:12:41 +05:30
Kovid Goyal
c02d578468
Nicer error message if bash version < 4
...
macOS has bash 3
2022-03-04 20:59:22 +05:30
Kovid Goyal
e990d233e5
ooops
2022-03-04 20:54:26 +05:30
Kovid Goyal
a7cdcfcc16
Bash integration: Prevent shell integration code from running twice if user enables both automatic and manual integration
2022-03-04 20:48:57 +05:30
Kovid Goyal
75224e1661
Merge branch 'ksi-bash' of https://github.com/page-down/kitty
2022-03-04 20:37:05 +05:30
pagedown
d236b34fd4
Shell integration: Fix running bash non-interactively
...
In POSIX mode, bash does not perform ENV with non-interactive shell, so
the mode cannot be recovered. Check the arguments and do not change the
execution environment.
2022-03-04 19:47:44 +08:00
pagedown
c8313409ff
Explicitly call bash builtin
2022-03-04 19:36:38 +08:00
Kovid Goyal
6cba8e0166
remove unused variable
2022-03-04 14:52:55 +05:30
Kovid Goyal
0067726bbe
spelling
2022-03-04 13:52:33 +05:30
Kovid Goyal
ce620cec0a
Use a memoryview to avoid memcopies
2022-03-04 13:41:23 +05:30
Kovid Goyal
e797ba4800
Allow matching on hostname and username
2022-03-04 12:42:31 +05:30
Kovid Goyal
fe27ee2d79
Allow configuring the interpreter to use on the remote host
2022-03-04 12:18:27 +05:30
Kovid Goyal
95efeee7de
Also return user name when requesting bootstrap data
2022-03-04 12:16:45 +05:30
Kovid Goyal
da30536709
bash/zsh integration: Show hostname in title when in an SSH session
2022-03-04 11:13:59 +05:30
Kovid Goyal
108ccffcd8
assume grep is present
2022-03-04 10:13:23 +05:30
Kovid Goyal
c3ce0c26e7
...
2022-03-04 10:01:33 +05:30
Kovid Goyal
e0c984046c
EXEC_CMD must come after login_shell detection since it can use login_shell
2022-03-04 10:00:12 +05:30
Kovid Goyal
64d6337612
...
2022-03-04 09:54:17 +05:30
Kovid Goyal
603684211f
bootstrap should not fail if no tty present
2022-03-04 08:30:23 +05:30
Kovid Goyal
499b30d175
Allow specifying multiple matching hostnames
2022-03-04 07:23:35 +05:30
Kovid Goyal
3f3efab221
Fix hostname detection when hostname binary not present
2022-03-04 07:22:59 +05:30
Kovid Goyal
ef9adc92c8
Note on how to use include for DRYer config
2022-03-04 07:13:56 +05:30
Kovid Goyal
ad7c251f56
Fix ln failing if link exists
2022-03-04 07:08:04 +05:30
Kovid Goyal
1c0d254ec6
More ssh kitten docs
2022-03-04 07:03:38 +05:30
Kovid Goyal
f1ce8c0e8a
Add some docs for the ssh kitten
2022-03-03 22:37:24 +05:30
Kovid Goyal
1c558be524
Port HISTFILE fix to ssh bash launcher
2022-03-03 21:24:45 +05:30
Kovid Goyal
7d653cb7bf
Allow copying the same file to multiple locations
2022-03-03 21:24:45 +05:30
Kovid Goyal
b4cc38a1d9
Fix symlink extraction over ssh
2022-03-03 21:24:45 +05:30
Kovid Goyal
8867317b6a
Allow transferring files outside of HOME
2022-03-03 21:24:45 +05:30
Kovid Goyal
4b6bfaffba
More work on ssh copy
2022-03-03 21:24:45 +05:30
Kovid Goyal
fadae42715
Work on parsing copy instructions
2022-03-03 21:24:45 +05:30
Kovid Goyal
77c9affc00
Start work on copy instructions
2022-03-03 21:24:45 +05:30
Kovid Goyal
e5ba15949b
$size doesnt need to be global
2022-03-03 21:24:45 +05:30
Kovid Goyal
a3e59697a1
...
2022-03-03 21:24:45 +05:30
Kovid Goyal
0e2125cda3
When die-ing bring cursor back to zero column explicitly since it could happen in raw mode
2022-03-03 21:24:45 +05:30
Kovid Goyal
95da414511
Avoid one record read
2022-03-03 21:24:45 +05:30
Kovid Goyal
c0d5ace640
Prevent invalid root paths
2022-03-03 21:24:45 +05:30
Kovid Goyal
ae48407b20
untar files atomically
2022-03-03 21:24:45 +05:30
Kovid Goyal
e06bd68379
Split up ssh tests
2022-03-03 21:24:45 +05:30
Kovid Goyal
ae6665493a
Implement setting of env vars
2022-03-03 21:24:44 +05:30
Kovid Goyal
c6f37afeff
Add config to control shell integration per host
2022-03-03 21:24:44 +05:30
Kovid Goyal
59f656e3ca
Allow controlling where on the remote computer the ssh kitten installs its data
2022-03-03 21:24:44 +05:30
Kovid Goyal
12658c4756
Make ssh data start request transmission more robust
2022-03-03 21:24:44 +05:30
Kovid Goyal
37c185462a
Handle error messages form terminal during bootstrap
2022-03-03 21:24:44 +05:30
Kovid Goyal
53c8485a7a
Get env conf working with tests
2022-03-03 21:24:44 +05:30
Kovid Goyal
846021296f
Start work on config infrastructure for ssh kitten
2022-03-03 21:24:44 +05:30
Kovid Goyal
5c8651c7cd
bootstrap script should work even when stdout is redirected
2022-03-03 21:24:44 +05:30
Kovid Goyal
ad91f5af53
...
2022-03-03 21:24:44 +05:30
Kovid Goyal
02a68e7541
Pass the value of shell_integration in the tarfile
...
Allows per host overrides and also avoids needing to read kitty.conf in
the ssh kitten
2022-03-03 21:24:44 +05:30
Kovid Goyal
6e5dbc5285
Test for handling of leading data
2022-03-03 21:24:44 +05:30
Kovid Goyal
fda9415873
Use a record separator to delimit the start of data
...
Needed because the user could press keys and send data to the tty
before kitty can send the ssh data
2022-03-03 21:24:44 +05:30
Kovid Goyal
4054163447
DRYer
2022-03-03 21:24:44 +05:30
Kovid Goyal
e1f5ef59c8
Remove integration tests with login_shell=''since that is tested explicitly before
2022-03-03 21:24:44 +05:30
Kovid Goyal
44baeb6924
Run login_shell detection tests with all available shells
2022-03-03 21:24:44 +05:30
Kovid Goyal
c00e8b1709
Add tests for the individual login_shell detection functions
2022-03-03 21:24:44 +05:30
Kovid Goyal
3fb7ce7100
When using KITTY_DEVELOP_FROM load resources from the develop dir
2022-03-03 21:24:44 +05:30
Kovid Goyal
86b15ad693
fix detection of python when no python2 or python3 links present
2022-03-03 21:24:43 +05:30
Kovid Goyal
53c00ac631
Fix detection of login shell from passwd
2022-03-03 21:24:43 +05:30
Kovid Goyal
99d0c2d846
Get reading data working on macOS
2022-03-03 21:24:43 +05:30
Kovid Goyal
55ede897b9
faster fail
2022-03-03 21:24:43 +05:30
Kovid Goyal
a71e7d7eb1
Simplify data transmission
2022-03-03 21:24:43 +05:30
Kovid Goyal
3c28a4f723
sh on macOS doesnt have echo -n
2022-03-03 21:24:43 +05:30
Kovid Goyal
6b681df473
Include all terminfo variants in binary bundles
...
Needed so that they can be transmitted over ssh easily
2022-03-03 21:24:43 +05:30
Kovid Goyal
22c1ee7dc8
Cannot call the parser from callbacks that are themselves called from the parser
2022-03-03 21:24:43 +05:30
Kovid Goyal
c24e16e8cd
debug function
2022-03-03 21:24:43 +05:30
Kovid Goyal
d452a5cdce
...
2022-03-03 21:24:43 +05:30
Kovid Goyal
198dd52700
Better error messages
2022-03-03 21:24:43 +05:30
Kovid Goyal
2dfea0f213
Fix a couple of conditions so they work in older dash
2022-03-03 21:24:43 +05:30
Kovid Goyal
5064b5c2b1
Apparently posh on CI is utterly broken
2022-03-03 21:24:43 +05:30
Kovid Goyal
78b553e55e
Add tests for turning off shell integration in the bootstrap script
2022-03-03 21:24:43 +05:30
Kovid Goyal
8ca3a511cc
Get the ssh bootstrap tests fully working
2022-03-03 21:24:43 +05:30
Kovid Goyal
bf26a3f569
Skip bash if its too old when testing bootstrap script
2022-03-03 21:24:43 +05:30
Kovid Goyal
ddb8753548
Work on enabling shell integration over ssh
2022-03-03 21:24:43 +05:30
Kovid Goyal
e73525d0a2
Start work on testing the bootstrap script
2022-03-03 21:24:43 +05:30
Kovid Goyal
f37d947dd5
more work on ssh data transmission
2022-03-03 21:24:42 +05:30
Kovid Goyal
4279f20daf
Dont depend on the default bash prompt when testing
2022-03-03 21:24:42 +05:30
Kovid Goyal
2dd7c3b939
More work on ssh bootstrap
2022-03-03 21:24:42 +05:30
Kovid Goyal
cf01480ec8
An echo escape code to echo data via the TTY
2022-03-03 21:24:42 +05:30
Kovid Goyal
d8ed42ae8e
Move setting of ZLE_RPROMPT_INDENT to zshrc which will hopefully prevent it being overriden
2022-03-03 19:16:44 +05:30
Kovid Goyal
297592242c
Fix #4782
...
Presumably the failure is caused by zsh not having finished drawing the
prompt when the cursor shape is changed. So instead wait till the
expected prompt is drawn. There are probably more places where this
change needs to be made, which I cant tell since I cant reproduce.
2022-03-03 17:22:42 +05:30
Kovid Goyal
1c0a8a49fc
Merge branch 'fix-nerd-fonts' of https://github.com/page-down/kitty
2022-03-03 14:41:46 +05:30
pagedown
16298e49c7
Update Unicode input kitten names
2022-03-03 16:45:07 +08:00
pagedown
abb0b95006
Add some reasonable keywords from font awesome official aliases
...
These glyphs can be searched by name when using Unicode input kitten.
2022-03-03 16:44:56 +08:00
pagedown
32f5ea7b63
Fix overlapping nerd fonts glyph
2022-03-03 16:29:29 +08:00
Kovid Goyal
90ed5959de
version 0.24.4
2022-03-03 10:54:01 +05:30
Kovid Goyal
d999cc4143
Merge branch 'patch-1' of https://github.com/rqel/kitty
2022-03-03 08:03:25 +05:30
Kovid Goyal
6c1d8d5c63
Add instructions on where to get the NERD font
2022-03-03 08:01:36 +05:30
rqel
a316242a4b
Update symbol_map unicode codepoint range for Symbols Nerd Font
...
Signed-off-by: rqel <rqel@pm.me >
2022-03-02 18:19:13 -08:00
Kovid Goyal
a4ae090c37
commit surface even for out of order configures
2022-03-03 07:18:04 +05:30
Kovid Goyal
abdcc64053
Merge branch 'always-commit' of https://github.com/Nefsen402/kitty
2022-03-03 07:16:50 +05:30
Alexander Orzechowski
ac407d42de
wayland: always commit surface on configure
2022-03-02 14:43:49 -05:00
rqel
19c4a3f0a8
Add U+E0CA
...
Signed-off-by: rqel <rqel@pm.me >
2022-03-02 07:07:05 -08:00
rqel
3afd96d421
Update symbol_map
...
Signed-off-by: rqel <rqel@pm.me >
2022-03-02 06:37:18 -08:00
Kovid Goyal
f421666a27
Nicer error message when importing a kitten fails
2022-03-02 08:26:06 +05:30
Kovid Goyal
af6baa33be
Ignore out of order surface configure events
2022-03-01 07:59:17 +05:30
Kovid Goyal
1096cbe236
Use an anonymous struct
2022-03-01 07:46:45 +05:30
Kovid Goyal
998be9b90c
Merge branch 'wayland-fix-configure' of https://github.com/Nefsen402/kitty
2022-03-01 07:45:24 +05:30
Alexander Orzechowski
854cb8f27e
wayland: handle resize requests after acknowledging the configure
...
The wayland protocol requires that clients commit a new buffer sometime
after `xdg_surface_ack_configure`.
2022-02-28 19:42:11 -05:00
Alexander Orzechowski
e359094cff
wayland: move window state
2022-02-28 19:42:11 -05:00
Kovid Goyal
db57230987
Cleanup changelog
2022-02-28 20:47:08 +05:30
Kovid Goyal
4de3cecbbe
Update changelog for previous PR
...
Fixes #4763
2022-02-28 20:21:06 +05:30
Kovid Goyal
c37a8bd3b1
Merge branch 'fix-read-scr-size' of https://github.com/page-down/kitty
2022-02-28 20:19:44 +05:30
Kovid Goyal
e103b280fd
Add test for HISTFILE
2022-02-28 20:09:54 +05:30
pagedown
2235ea67e2
Fix ScreenSizeGetter
2022-02-28 22:39:19 +08:00
Kovid Goyal
1f6a4f7bd4
...
2022-02-28 20:07:57 +05:30
Kovid Goyal
8c7ffc90f3
Fix the default bash HISTFILE changing to .sh_history instead of .bash_history
...
Fixes #4765
2022-02-28 20:06:48 +05:30
Kovid Goyal
29d85833f1
Merge branch 'ksi-fish' of https://github.com/page-down/kitty
2022-02-28 17:50:05 +05:30
pagedown
74c56d69ac
Also fall back to check the last known working version of fish
2022-02-28 19:26:20 +08:00
Kovid Goyal
cf520646a9
Merge branch 'feat-launch-url-err' of https://github.com/page-down/kitty
2022-02-28 13:12:14 +05:30
pagedown
da5213346a
show_error kitten: Use green color for closing tips
2022-02-28 15:02:16 +08:00
pagedown
bdcb98eafc
Use show_error kitten to display launch URL error messages
2022-02-28 15:02:05 +08:00
Kovid Goyal
ef637cd7d3
...
2022-02-28 11:28:42 +05:30
Kovid Goyal
dbbabd73c5
Repeat hold message on ctrl+c/d instead of completely ignoring or ending hold
2022-02-28 11:17:00 +05:30
Kovid Goyal
436ef0074a
DRYer
2022-02-28 11:08:32 +05:30
Kovid Goyal
0904dec810
Fix exception on ctrl+c exit of program under --hold
2022-02-28 11:02:06 +05:30
Kovid Goyal
0aa07ead7e
Bundle wayland client libraries in the binary build
...
The version of libwayland kitty builds against is now 1.20 and this
introduces the new wl_proxy_marshal_flags function. The usual suspect
distros have too old libwayland-client so we need to bundle.
Fixes #4760
2022-02-28 10:27:44 +05:30
Kovid Goyal
d87cac87ff
version 0.24.3
2022-02-28 08:00:18 +05:30
Kovid Goyal
7e8c96896f
Do a shutdown and rebuild
2022-02-28 07:21:46 +05:30
Kovid Goyal
2619db0e58
Cleanup previous PR
2022-02-27 21:31:39 +05:30
Kovid Goyal
ee3632b85d
Merge branch 'ksi-zsh' of https://github.com/page-down/kitty
2022-02-27 21:31:31 +05:30
pagedown
1c88c13fc2
Shell integration: Try to get ZDOTDIR from /etc/zshenv when no RC files
2022-02-27 23:25:26 +08:00
Kovid Goyal
7f476eb924
Merge branch 'test-ksi-zsh' of https://github.com/page-down/kitty
2022-02-27 18:30:13 +05:30
pagedown
2d4f7e3446
Disable system startup files in zsh integration test with --noglobalrcs
2022-02-27 20:21:05 +08:00
Kovid Goyal
165c1240a9
Make the test a little more robust
2022-02-27 11:04:12 +05:30
Kovid Goyal
ef5c66ee17
Dont bother with new escape code for setting title
...
Since we are only sending the last command, it cannot have CSI
sequences in it anyway except in extremely contrived situations, so just
strip all ctrl chars out.
2022-02-27 10:55:02 +05:30
Kovid Goyal
33abd31d1a
...
2022-02-27 10:48:52 +05:30
Kovid Goyal
f91463a494
Also add test for handling of control chars in zsh title reporting
2022-02-27 10:47:23 +05:30
Kovid Goyal
30146007d3
Avoid extra tr invocation
2022-02-27 10:23:04 +05:30
Kovid Goyal
d53f8f24c4
Fix #4757
...
Still have to do the fix for zsh/fish
2022-02-27 10:20:19 +05:30
Kovid Goyal
f9621b1e11
Merge branch 'fix-ksi-fish' of https://github.com/page-down/kitty
2022-02-27 09:32:37 +05:30
pagedown
e2f16ff624
Add fish pipestatus integration tests and changelog entries
2022-02-27 00:27:31 +08:00
pagedown
121778e5c6
Remove unnecessary function checks
2022-02-27 00:08:36 +08:00
pagedown
ef32488890
Shell integration: Fix fish pipestatus being overwritten
2022-02-27 00:07:46 +08:00
Kovid Goyal
9d349d618a
Fix #4743
2022-02-26 14:42:21 +05:30
Kovid Goyal
9f0a4f43b8
Add some video reviews to press mentions
2022-02-26 09:54:16 +05:30
Kovid Goyal
a8826f0d02
When dropping URLs/files onto kitty at a shell prompt insert them appropriately quoted and space separated
2022-02-25 10:30:15 +05:30
Kovid Goyal
6689d312a3
macOS: Paste multiple URLs separated by newlines
...
Fixes #4734
2022-02-25 10:17:36 +05:30
Kovid Goyal
2d7cb25b20
Fix #4739
...
I hope, since I cannot reproduce.
2022-02-25 05:50:42 +05:30
Kovid Goyal
da10eaca00
Merge branch 'docs' of https://github.com/page-down/kitty
2022-02-24 19:19:12 +05:30
Kovid Goyal
6d3995d4ac
Merge branch 'feat-eof-exit' of https://github.com/page-down/kitty
2022-02-24 19:18:52 +05:30
pagedown
e3adf8c6bf
show_error kitten: Exit at EOF
2022-02-24 21:13:57 +08:00
pagedown
b8e522484d
...
2022-02-24 20:50:06 +08:00
Kovid Goyal
ef4240e196
Add Python bytes 272 to press mentions
2022-02-24 18:01:55 +05:30
Kovid Goyal
8fa4a48ae5
Merge branch 'ksi-fish' of https://github.com/page-down/kitty
2022-02-24 17:59:41 +05:30
pagedown
4f3da2bc00
Output warnings for outdated versions of fish
2022-02-24 20:25:48 +08:00
pagedown
7b8c2c846f
Shell integration: Check fish version and exit on outdated versions
2022-02-24 18:43:46 +08:00
Kovid Goyal
b212fd5bcd
Dont actually need a thread for PTY
2022-02-24 10:05:13 +05:30
Kovid Goyal
0a297f4656
proper ordering during shutdown
2022-02-24 00:27:09 +05:30
Kovid Goyal
fa397a1d24
PTY: Write to child in separate thread
2022-02-24 00:26:08 +05:30
Kovid Goyal
0610daaec7
Remove echo dance
2022-02-24 00:08:17 +05:30
Kovid Goyal
8278e2b88d
Dont fail test in no PATH in environ
2022-02-23 23:27:24 +05:30
Kovid Goyal
cb4a9d89cf
Cleanup linenum matching and add some tests
2022-02-23 23:06:19 +05:30
Kovid Goyal
7800c598f6
hints kitten: Fix a regression that broke recognition of path:linenumber:colnumber
...
Fixes #4675
2022-02-23 22:38:54 +05:30
Kovid Goyal
fc651b72ab
Merge branch 'refactor' of https://github.com/page-down/kitty
2022-02-23 19:52:11 +05:30
pagedown
a9a7912372
...
2022-02-23 21:37:41 +08:00
pagedown
43f435c334
Avoid shadow the global variable name
2022-02-23 21:30:05 +08:00
pagedown
693fc0f0c7
CI: Disable codeql auto install python dependencies
2022-02-23 21:28:29 +08:00
Kovid Goyal
12e011c481
Merge branch 'test-ksi-fish' of https://github.com/page-down/kitty
2022-02-23 18:31:13 +05:30
Kovid Goyal
668783ba1c
Use a version check when skipping bash test
2022-02-23 18:27:20 +05:30
pagedown
c18ebef702
...
2022-02-23 20:49:32 +08:00
Kovid Goyal
03f9f29ce4
DRYer
2022-02-23 18:14:40 +05:30
Kovid Goyal
f62acab715
Install fish on macOS CI
2022-02-23 18:07:06 +05:30
Kovid Goyal
28ab9bfa2a
Merge branch 'test-ksi-fish' of https://github.com/page-down/kitty
2022-02-23 18:02:53 +05:30
pagedown
9c05481f14
...
2022-02-23 20:05:30 +08:00
pagedown
8ca92e0536
Disable fish integration on CI since the version is outdated and broken
2022-02-23 19:58:09 +08:00
pagedown
c0f6201ac3
Add fish shell integration tests
2022-02-23 19:55:19 +08:00
Kovid Goyal
27f3a5e16a
Fix previous PR breaking bash integration
2022-02-23 12:30:02 +05:30
Kovid Goyal
de10dfe91b
Merge branch 'ksi-bash' of https://github.com/page-down/kitty
2022-02-23 12:22:00 +05:30
pagedown
444a690a86
Remove the extra comment line
2022-02-23 14:37:45 +08:00
pagedown
3d7b3f7d72
Use the official project name of Bash
2022-02-23 14:21:13 +08:00
pagedown
741ef7f115
Remove new lines with bash
2022-02-23 14:09:13 +08:00
pagedown
e0c84c7176
Use bash builtin
2022-02-23 14:01:47 +08:00
pagedown
393425e3d1
Remove trailing spaces
2022-02-23 13:59:39 +08:00
Kovid Goyal
fc9645832d
Add tests for --noprofile, --rcfile, --norc as well
2022-02-23 10:42:25 +05:30
Kovid Goyal
c47f41cfc0
Add tests for bash startup file sourcing
2022-02-23 08:35:24 +05:30
Kovid Goyal
08221489fd
Cleanup previous PR
2022-02-23 07:59:41 +05:30
Kovid Goyal
3c6766ff06
Merge branch '4721-lig-check-fallback' of https://github.com/nickwynja/kitty
2022-02-23 07:57:36 +05:30
Kovid Goyal
e28aae620a
Add tests for reset of cursor shape when running commands
2022-02-23 07:48:42 +05:30
Nick Wynja
c240e7deaf
Also check ### to confirm spacer strategy
...
relates to #4721
2022-02-22 14:59:19 -05:00
Kovid Goyal
31a5965b01
Splits layout: A new value for :option:launch --location to auto-select the split axis when splitting existing windows.
2022-02-22 22:37:26 +05:30
Kovid Goyal
7a2a849a97
Add a note that shell integration should be removed from bashrc
2022-02-22 21:45:31 +05:30
Kovid Goyal
2c96e49566
...
2022-02-22 21:40:03 +05:30
Kovid Goyal
e7846f916a
Cleanup how it works for bash
2022-02-22 21:37:50 +05:30
Kovid Goyal
d4f4d56f94
DRYer
2022-02-22 21:32:33 +05:30
Kovid Goyal
0108037076
Dont leak the ENV environ var we use to load our integration script into the shell
2022-02-22 21:29:32 +05:30
Kovid Goyal
88091b4ab3
BASH integration: No longer modify .bashrc to load shell integration
...
I think I have things setup robustly so that the shell integration
is loaded transparently via env vars and the normal bash startup files
are sourced, in the same way that vanilla bash does it. Let's hope I
haven't overlooked something.
2022-02-22 21:24:51 +05:30
Kovid Goyal
4487462b0d
bash assumes ECHO is enabled for the tty
2022-02-22 20:43:58 +05:30
Kovid Goyal
dac9b07f16
bash shell integration: Handle both literal and escaped newlines in PS1
2022-02-22 18:30:20 +05:30
Kovid Goyal
b59212696a
Skip testing bash on macOS as it is too old
2022-02-22 14:53:46 +05:30
Kovid Goyal
7fe1376e34
DRYer
2022-02-22 14:52:54 +05:30
Kovid Goyal
e25b90c1b6
Add bash integration tests
2022-02-22 12:23:19 +05:30
Kovid Goyal
cb32a0b8fc
Handle remote print callback in tests
2022-02-22 11:47:44 +05:30
Kovid Goyal
05617f7dca
strip kitty markup from ps1 before checking for newlines
2022-02-22 11:40:09 +05:30
Kovid Goyal
2d2f4b9ba9
Multi-line processing of bash prompts should only be done when the prompt actually contains a newline
2022-02-21 22:54:10 +05:30
Kovid Goyal
65c7ecbc30
Test prompt drawing after screen is shrunk
2022-02-21 21:17:52 +05:30
Kovid Goyal
da5e37620e
Also test changing of title when running command
2022-02-21 21:17:52 +05:30
Kovid Goyal
261057396c
Fix zsh integration test on CI
...
Also, add various other robustness improvements to the test
2022-02-21 21:17:41 +05:30
Kovid Goyal
a43f610555
Better error msg when cursor is not changed
2022-02-21 18:23:35 +05:30
Kovid Goyal
45ae52e5d0
Fix assert ordering
2022-02-21 18:07:54 +05:30
Kovid Goyal
a565443d4a
Saner tempdir removal
2022-02-21 18:05:36 +05:30
Kovid Goyal
081d6a3f16
Install various shells ON CI so we can test with them
2022-02-21 18:00:23 +05:30
Kovid Goyal
c9cc832875
Add basic tests for zsh shell integration
2022-02-21 17:57:25 +05:30
Kovid Goyal
595698d8e9
Remove dirs in HOME from PATH wen running tests
2022-02-21 16:57:11 +05:30
Kovid Goyal
b28d94ac97
Always use kitty as the python interpreter to run in the tests
2022-02-21 14:45:12 +05:30
Kovid Goyal
b9684879e7
Try to fix tests failing on CI
2022-02-21 14:24:08 +05:30
Kovid Goyal
63f974531b
Framework for testing with external programs via a PTY
2022-02-21 14:08:10 +05:30
Kovid Goyal
a559210923
Retry macOS builds as well on nightly
...
They seem to be failing with some regularity
2022-02-21 11:18:21 +05:30
Kovid Goyal
8d36fb9edc
Fix copying of selection after selection has been scrolled off history buffer raising an error
...
Fixes #4713
2022-02-20 13:07:31 +05:30
Kovid Goyal
f652b23169
Retry ca certs download on macOS
2022-02-20 11:09:58 +05:30
Kovid Goyal
d50a2ea288
Note that Konsole also supports the kitty graphics protocol
2022-02-20 10:59:26 +05:30
Kovid Goyal
80fc3a1faa
Fix incorrect function used to get tuple size
2022-02-19 15:29:59 +05:30
Kovid Goyal
9a04405ad2
Cache the bell sound in the canberra server since it is a frequently played sound
2022-02-19 13:07:44 +05:30
Kovid Goyal
fdc9835587
Cleanup previous PR
2022-02-18 13:44:25 +05:30
Kovid Goyal
702bb2cd06
Merge branch 'fix-macos-cur-update' of https://github.com/page-down/kitty
2022-02-18 13:40:05 +05:30
pagedown
58e8609c1a
macOS: Ensure the cursor is updated once
...
macOS will set the cursor to arrow after milliseconds after the switch
desktop animation ends. So the cursor that was updated immediately after
the focus will be changed again. This also affects toggling fullscreen.
2022-02-18 13:52:19 +08:00
pagedown
69c5c49094
Disable cursor rects
2022-02-18 13:52:00 +08:00
pagedown
ff8de7607a
Also handles the case where toggleFullScreen does not get called
2022-02-18 13:50:46 +08:00
Kovid Goyal
cfd0872cea
Merge branch 'feat-macos-fullscreen' of https://github.com/page-down/kitty
2022-02-17 17:41:00 +05:30
pagedown
7007f2e7fc
macOS: Allow to customize global menu full screen shortcut
2022-02-17 16:31:46 +08:00
pagedown
6d0721341b
Fix phantom window appears when executing full screen in transition
2022-02-17 15:47:03 +08:00
Kovid Goyal
7a156d5ef3
Also fix --hold not working if program to be executed is not found
2022-02-17 11:16:08 +05:30
Kovid Goyal
185c3320a4
Fix --hold not working with some programs that cause keyboard interrupt to be passed to python
2022-02-17 11:12:33 +05:30
Kovid Goyal
1c9cf32735
Add a few more important env vars to debug output
2022-02-17 07:45:36 +05:30
Kovid Goyal
6bfb6da0ad
Make the regex for sgr stripping tighter
2022-02-15 22:33:51 +05:30
Kovid Goyal
56a5738018
Remove unused code
2022-02-15 22:22:07 +05:30
Kovid Goyal
919667129f
hints kitten: Avoid double scan of input text
2022-02-15 22:21:31 +05:30
Kovid Goyal
e9f49a3292
Make ANSI sanitizer pattern re-useable
2022-02-15 22:14:14 +05:30
Kovid Goyal
711f8b024e
Properly sanitize pagerhist when returning as plain text
2022-02-15 22:11:57 +05:30
Kovid Goyal
53716c084b
hints kitten: Strip prompt mark escape codes
2022-02-15 22:04:10 +05:30
Kovid Goyal
2b495bcf9d
Merge branch 'docs' of https://github.com/page-down/kitty
2022-02-15 15:26:50 +05:30
pagedown
d10812c6b0
Docs: Fix GitHub discussion link in commented config
2022-02-15 17:42:33 +08:00
Kovid Goyal
80202d2679
Fix show_last_command_output not working when the output is stored partially in the scrollback pager history buffer
...
Fixes #4435
2022-02-15 13:04:02 +05:30
Kovid Goyal
5d120a2f36
Output prompt marking when serializing to ANSI
2022-02-15 08:57:17 +05:30
Kovid Goyal
cc11326baa
Linux: Do not rescale fallback fonts to match the main font cell height
...
Fixes #4707
2022-02-15 07:51:15 +05:30
Kovid Goyal
f63dbc0ebd
clamp min_lines when mouse is grabbed
2022-02-15 07:24:12 +05:30
Kovid Goyal
88630731dc
Cleanup previous PR
2022-02-14 20:21:17 +05:30
Kovid Goyal
3e2a8d80d7
Merge branch 'feat-mouse-scroll-min' of https://github.com/page-down/kitty
2022-02-14 20:12:00 +05:30
Kovid Goyal
55626e5a41
Fix symbol_map in gen-config.py
2022-02-14 19:56:41 +05:30
pagedown
7ff07f7620
Add changelog entry
2022-02-14 22:07:01 +08:00
pagedown
d2f522277c
Add wheel_scroll_min_lines to set the minimum scrolling lines
2022-02-14 21:53:02 +08:00
Kovid Goyal
0248edbdb9
xkb debug events should be printed to stderr
2022-02-14 15:03:31 +05:30
Kovid Goyal
d24248e93b
Merge branch 'master' of https://github.com/ichigozero/kitty
2022-02-14 14:03:45 +05:30
Gary Sentosa
dcd7890a0c
Show tab name otherwise tab title for select_tab
2022-02-14 15:48:08 +09:00
Kovid Goyal
f219b10c30
Changelog entry for previous PR
2022-02-14 07:19:54 +05:30
Kovid Goyal
cc039afc1e
Merge branch 'glfw-wl-touchpad-scale' of https://github.com/xsrvmy/kitty
2022-02-14 07:18:49 +05:30
Rui Ming (Max) Xiong
d2288d8f83
Scale touchpad input by display scale on wayland
2022-02-13 20:47:02 -05:00
Kovid Goyal
4b4f904aac
Dont use global variables for the axis discrete counts
2022-02-13 20:56:55 +05:30
Kovid Goyal
e06b774174
Avoid double scan of output to look for escape codes
2022-02-13 17:33:13 +05:30
Kovid Goyal
8d4772f804
Update bundled pygments
...
Fixes #4702
2022-02-13 17:10:55 +05:30
Kovid Goyal
3be00bd712
Reduce radius for detection of double click
2022-02-13 15:51:59 +05:30
Kovid Goyal
a0e4449fb2
Ensure prefixchar is written even for empty lines
2022-02-13 15:49:46 +05:30
Kovid Goyal
ebfc19def5
Only add an SGR reset at the end if there is atleast one escape code in the ansi output
2022-02-13 15:14:32 +05:30
Kovid Goyal
a4abe26d32
Fix copy ansi to clipboard ignoring newlines
2022-02-13 15:09:14 +05:30
Kovid Goyal
5f8cb22d02
Merge branch 'fix-mouse-extra-btn' of https://github.com/page-down/kitty
2022-02-13 14:53:40 +05:30
pagedown
cafc3973ec
mouse_demo: Add mouse scroll wheel buttons
2022-02-13 16:45:48 +08:00
pagedown
436a57a61e
mouse_demo: Fix mouse extra button bit mask
2022-02-13 16:36:51 +08:00
Kovid Goyal
da5111a267
Cleanup mouse debug input reporting
2022-02-13 11:14:41 +05:30
Kovid Goyal
ee5cf90684
Cleanup previous PR and add changelog entry for it
...
Fixes #4694
2022-02-13 10:53:24 +05:30
Kovid Goyal
108974f4f7
Merge branch 'pointer-resolution' of https://github.com/xsrvmy/kitty
2022-02-13 10:45:17 +05:30
Rui Ming (Max) Xiong
79fa9f1c95
Use counters for discrete flags instead
2022-02-12 17:45:28 -05:00
Rui Ming (Max) Xiong
40bf12af7a
Check for discrete mouse events on wayland
2022-02-12 02:12:59 -05:00
Kovid Goyal
263d121f3e
Rescale symbol_map faces for the desired cell height
...
Matches treatment of fallback faces. See #4670
2022-02-12 07:57:03 +05:30
Kovid Goyal
9222d002f7
Merge branch 'docs' of https://github.com/page-down/kitty
2022-02-11 20:46:06 +05:30
pagedown
9a6aab034d
Add link for packaging status
2022-02-11 23:05:12 +08:00
Kovid Goyal
b931b06941
Add mouse co-ords to debug output for move events
2022-02-11 15:09:43 +05:30
Kovid Goyal
90dc9b6fe6
...
2022-02-11 15:00:11 +05:30
Kovid Goyal
275ede6f0a
Fix a fast click, move mouse, click sequence causing the first click event to be discarded
...
Fix #4603
2022-02-11 14:46:37 +05:30
Kovid Goyal
9fd4f8e5c2
Merge branch 'feat-hints-qm' of https://github.com/page-down/kitty
2022-02-11 13:05:34 +05:30
Kovid Goyal
01b4654461
A new option narrow_symbols to turn off opportunistic wide rendering of private use codepoints
2022-02-11 13:04:44 +05:30
pagedown
d40e6a9ece
hints kitten: Match and strip Unicode single and double quotes
2022-02-11 14:59:35 +08:00
Kovid Goyal
b2317e0f12
Merge branch 'fix-macos-shortcuts' of https://github.com/page-down/kitty
2022-02-11 12:14:55 +05:30
pagedown
444d9bd341
macOS: Ignore when the global shortcut is disabled
2022-02-11 14:23:57 +08:00
Kovid Goyal
8fbe96744b
...
2022-02-11 10:50:33 +05:30
Kovid Goyal
1c48ec7196
Allow passing a "reset" argument to resize_window
2022-02-11 08:16:17 +05:30
Kovid Goyal
c4b3bbd057
Update changelog for previous PR
...
Fixes #4657
2022-02-11 06:55:53 +05:30
Kovid Goyal
502ed94f31
Merge branch 'fix-macos-shortcuts' of https://github.com/page-down/kitty
2022-02-11 06:54:31 +05:30
Kovid Goyal
18ce091bfa
Fix symbol/PUA glyphs loaded via symbol_map instead of as fallbacks not using following spaces to render larger versions
...
Fixes #4670
2022-02-11 06:36:54 +05:30
Kovid Goyal
60f675758f
Fix touch_scroll_multiplier also taking effect in terminal programs such as vim that handle mouse events themselves
...
Fixes #4680
2022-02-11 06:22:00 +05:30
Kovid Goyal
9bfa4553a8
Shell integration: bash: Fix rendering of multiline prompts with more than two lines
...
Fixes #4681
2022-02-11 06:08:34 +05:30
pagedown
358f30ca7a
No longer need to fall back and check the default shortcuts
2022-02-11 02:39:50 +08:00
pagedown
e32785831b
macOS: Add missing global shortcuts that will be enabled by default
2022-02-11 02:19:27 +08:00
Kovid Goyal
728eceb620
Add implementation for focus moving hardcoded shortcuts
2022-02-10 18:56:47 +05:30
Kovid Goyal
57f591d1ce
Simplify default global shortcut lookup
...
Now if a shortcut is present in the plist, it will not be considered for
default matching
2022-02-10 17:47:11 +05:30
Kovid Goyal
e4397a1c73
Framework for Apple's default global shortcuts
2022-02-10 14:15:21 +05:30
Kovid Goyal
1170cf474f
A new action copy_ansi_to_clipboard to copy the current selection with ANSI formatting codes
...
Fixes #4665
2022-02-10 12:20:19 +05:30
Kovid Goyal
ce8b0cf748
Allow using line_as_ansi with ranges
2022-02-09 21:40:33 +05:30
Kovid Goyal
696f371aa4
Merge branch 'ci' of https://github.com/page-down/kitty
2022-02-09 19:55:05 +05:30
pagedown
8ebd514251
Update Brewfile format
2022-02-09 21:35:22 +08:00
Kovid Goyal
d3bc6001d8
Merge branch 'ksi-fish' of https://github.com/page-down/kitty
2022-02-09 10:58:25 +05:30
pagedown
f5415ca824
Restore XDG_DATA_DIRS right after fish integration script is loaded
2022-02-09 13:06:38 +08:00
Kovid Goyal
0dbe27438d
Ensure CSI are stripped from menbar title as well
2022-02-09 08:07:18 +05:30
Kovid Goyal
7448789951
Improve CWD detection when there are multiple foreground processes in the TTY process group
2022-02-08 20:30:00 +05:30
Kovid Goyal
dc6138d286
Add a note about why we check _ksi_prompt_command
2022-02-08 19:52:02 +05:30
Kovid Goyal
7457f637a2
bash shell integration: Dont call _ksi_prompt_command from PROMPT_COMMAND unlessit is set
2022-02-08 19:48:30 +05:30
Kovid Goyal
c9da734c0e
Show the output from failed ssh commands
2022-02-08 10:46:34 +05:30
Kovid Goyal
141c814d72
Merge branch 'docs' of https://github.com/page-down/kitty
2022-02-08 05:35:36 +05:30
Kovid Goyal
bdb98cf210
Count chars not bytes when truncating menubar title
2022-02-07 22:37:58 +05:30
pagedown
7cc3d5907f
Docs: Prefer namespaced launch points
2022-02-08 01:07:23 +08:00
Kovid Goyal
3c709a28f7
...
2022-02-07 22:08:28 +05:30
Kovid Goyal
e9ea7b13b6
macOS: Add an option to control the max length of the window title displayed in the global menubar
...
Fixes #2132
2022-02-07 21:57:36 +05:30
Kovid Goyal
ac16880eec
Linux: Fix fontconfig alias not being used if the aliased font is dual spaced instead of monospaced
...
Fixes #4649
2022-02-07 21:02:47 +05:30
Kovid Goyal
c54bdd921a
Allow pressing esc to exit --hold as well
2022-02-07 18:14:54 +05:30
Kovid Goyal
fc17528337
Get --hold to work even when stdin is redirected
2022-02-07 15:39:21 +05:30
Kovid Goyal
9b2db6ec53
Another alternate icon
2022-02-07 14:19:04 +05:30
Kovid Goyal
0fcfaa2a98
Report errors correctly when launching multiple URLs
2022-02-07 14:07:17 +05:30
Kovid Goyal
ba97a728f2
Reduce max remembered window size of 50K pixels
2022-02-07 12:19:32 +05:30
Kovid Goyal
a3b046fdcd
Merge branch 'fix-macos-new-tab' of https://github.com/page-down/kitty
2022-02-07 12:07:17 +05:30
pagedown
ddfda3efde
Fix launching a new tab when there is no OS window
2022-02-07 13:55:43 +08:00
Kovid Goyal
a2269cb66e
Fix launch command not creating a new window if no OS window is present
2022-02-07 11:14:29 +05:30
Kovid Goyal
1358f00969
Raise an exception for empty url schemes
2022-02-06 21:10:41 +05:30
Kovid Goyal
eedc849c45
Cleanup previous PR
2022-02-06 20:49:40 +05:30
Kovid Goyal
89679d07ae
Merge branch 'feat-macos-handle-url' of https://github.com/page-down/kitty
2022-02-06 20:29:16 +05:30
Kovid Goyal
01d866f482
Also add openable mimetypes to kitty-open.desktop
2022-02-06 20:27:50 +05:30
Kovid Goyal
73b0312dcb
Merge branch 'minor-tweaks' of https://github.com/page-down/kitty
2022-02-06 20:14:26 +05:30
Kovid Goyal
f9d9fe6db4
Shell integration: bash: Dont fail if an existing PROMPT_COMMAND ends with a semi-colon
...
Fixes #4645
2022-02-06 19:02:39 +05:30
pagedown
e31ca68875
macOS: Add a way to set kitty as the default handler for the URL schemes
2022-02-06 19:51:39 +08:00
pagedown
8ae273ee3a
Simplify reassembling for the command
2022-02-06 19:24:02 +08:00
pagedown
73a197fcde
Add kitty-launcher.desktop to handle URL scheme for Linux
2022-02-06 19:12:57 +08:00
pagedown
648bff02b5
Only remove the initial window if no startup session is configured
2022-02-06 18:58:52 +08:00
pagedown
7740bc138b
Add changelog entry for previous PR
2022-02-06 18:58:40 +08:00
pagedown
f5337096d5
Rename LAUNCH_URL to LAUNCH_URLS
2022-02-06 18:57:40 +08:00
Kovid Goyal
dddff91fad
Linux: Fix rendering of emoji when using scalable fonts such as Segoe UI Emoji
2022-02-06 13:31:11 +05:30
Kovid Goyal
f047678711
More robust initial window replacement when launching URLs
2022-02-06 07:11:57 +05:30
Kovid Goyal
aa8b23395f
Merge branch 'feat-macos-open-with' of https://github.com/page-down/kitty
2022-02-06 06:53:36 +05:30
Kovid Goyal
7c36c19de0
Cleanup previous PR
2022-02-06 06:31:56 +05:30
Kovid Goyal
49183ced3b
Merge branch 'fix-launch-cmd-args' of https://github.com/page-down/kitty
2022-02-06 06:31:22 +05:30
pagedown
007e9697c4
macOS: Add Open with kitty Service
...
There are still some file types that cannot be matched.
Add a standalone Open With service.
Users can configure shortcut for this service in System Preferences.
2022-02-05 23:20:19 +08:00
pagedown
9989edbe42
macOS: Add archive file type to info plist
...
List kitty in the Open With menu for archive files.
E.g. compressed files or disk image files
2022-02-05 23:19:33 +08:00
Kovid Goyal
9742e2ec48
Make mypy happy
2022-02-05 19:53:16 +05:30
pagedown
b47711e23a
Fix kitty_exe() being executed when the script doesn't have shebang
2022-02-05 20:28:06 +08:00
pagedown
3dfdb3ac89
Fix missing args when running a script without exec perms via launch
2022-02-05 20:28:06 +08:00
Kovid Goyal
4d3e2a07d1
Cleanup previous PR
2022-02-05 17:45:46 +05:30
Kovid Goyal
a42eb3e643
Merge branch 'feat-lines-on-scr' of https://github.com/page-down/kitty
...
Fixes #4462
2022-02-05 17:44:21 +05:30
Kovid Goyal
39c77a9486
Allow running the launch actions by invoking the kitty executable with +open
2022-02-05 17:39:48 +05:30
pagedown
e22546c56a
Add arguments to get the first and last line of text for launch command
2022-02-05 20:02:24 +08:00
Kovid Goyal
ced61096df
Add some docs for the previous PR
2022-02-05 12:57:15 +05:30
Kovid Goyal
c0ea127810
Merge branch 'feat-macos-open-url' of https://github.com/page-down/kitty
2022-02-05 12:46:39 +05:30
Kovid Goyal
29b1e3fa46
Sanity check for main() args
2022-02-05 11:56:18 +05:30
Kovid Goyal
b2faa0d9f7
Fix #4637
2022-02-05 11:35:40 +05:30
pagedown
ddb9b67de3
Restrict custom launch actions to be prefixed with kitty:///launch/
...
Preserve the kitty URL scheme for further use.
2022-02-05 13:23:41 +08:00
pagedown
ffbc533565
Add ftps, ircs, kitty, sftp, and ssh to url_prefixes
2022-02-05 13:10:21 +08:00
pagedown
206e490491
macOS: Add common URL schemes to info plist
2022-02-05 13:09:13 +08:00
pagedown
135066f38c
Add default launch action for ssh links
2022-02-05 13:05:58 +08:00
pagedown
51d591e177
macOS: Allow opening URLs with kitty
2022-02-05 13:05:41 +08:00
pagedown
80a62c8d71
Add preamble to generated file and fix gen-config.py filename
2022-02-05 13:05:13 +08:00
Kovid Goyal
90b54c5f7f
Get build-dep working again for changes to bypy
2022-02-05 10:27:47 +05:30
Kovid Goyal
99c81e6858
Bump bundled version of wayland
2022-02-05 07:56:40 +05:30
Kovid Goyal
8fcb6278d7
Cleanup previous PR
2022-02-04 20:38:32 +05:30
Kovid Goyal
89e0abd41d
Merge branch 'feat-reverse-scroll' of https://github.com/page-down/kitty
2022-02-04 20:34:37 +05:30
pagedown
a1a0c9ab80
Add new mappable action scroll_prompt_to_bottom
2022-02-04 22:52:06 +08:00
Kovid Goyal
9ab2a38d5c
...
2022-02-04 18:26:36 +05:30
Kovid Goyal
b5676a53ee
Use a special role for actions documentation
2022-02-04 18:24:39 +05:30
Kovid Goyal
94898a8758
fix incorrect use of :ac:
2022-02-04 17:54:32 +05:30
Kovid Goyal
97a6a11066
Capitalization of menu action
2022-02-04 16:12:46 +05:30
Kovid Goyal
9fe22a5c27
Do a single pass over the cell vertex shader to set the defines
2022-02-04 14:34:41 +05:30
Kovid Goyal
f9b35c71d7
Another place to use NUM_UNDERLINE_STYLES
2022-02-04 14:16:31 +05:30
Kovid Goyal
6b47f6f769
Make adding new underline styles easier in the future
2022-02-04 14:05:19 +05:30
Kovid Goyal
37d8483728
Fix a regression in the previous release that broke strikethrough
2022-02-04 13:37:38 +05:30
Kovid Goyal
4776a9e785
When moving text into scrollback upto cursor actually move up to the prompt the cursor is at
2022-02-04 13:19:24 +05:30
Kovid Goyal
50bc5b0302
macOS: Add the default shortcut cmd+k to clear the terminal screen and scrollback up to the cursor
...
Fixes #4625
2022-02-04 11:58:52 +05:30
Kovid Goyal
7d496f20a1
Add changelog entry for previous PR
2022-02-04 11:43:57 +05:30
Kovid Goyal
42fbd0a1af
A new action to clear scrollback+screen upto the line with the cursor
2022-02-04 11:42:42 +05:30
Kovid Goyal
8960bfebc0
...
2022-02-04 11:41:45 +05:30
Kovid Goyal
b1209c1e7a
Be explicit about python3
2022-02-04 11:19:51 +05:30
Kovid Goyal
365583efd7
Clarify SI docs a little
...
Fixes #4626
2022-02-04 10:51:41 +05:30
Kovid Goyal
926c2d71ee
Merge branch 'fix-macos-ime' of https://github.com/page-down/kitty
...
Fixes #4621
2022-02-04 10:46:43 +05:30
pagedown
ce57c747cc
macOS: Fix select next input source not working
...
For global shortcut to switch the next input source in the macOS system
preferences, final confirmation is only given when all modifier keys are
released.
2022-02-04 12:51:01 +08:00
Kovid Goyal
3e9129655a
...
2022-02-03 21:00:23 +05:30
Kovid Goyal
12f41f30b3
Only show important env vars in debug output
...
Also show their values since these are not sensitive
2022-02-03 20:43:23 +05:30
Kovid Goyal
1e7edd0218
...
2022-02-03 20:14:52 +05:30
Kovid Goyal
2fd8ef389e
Fix use-python not working reliably with SSH kitten
2022-02-03 19:58:10 +05:30
Kovid Goyal
53589c3954
ssh kitten: Fix location of generated terminfo files on NetBSD
...
Fixes #4622
2022-02-03 19:51:37 +05:30
Kovid Goyal
34a0218f35
Fix a regression in the previous release that broke active_tab_foreground
...
Fixes #4620
2022-02-03 18:12:42 +05:30
Kovid Goyal
6fa4110da9
version 0.24.2
2022-02-03 11:44:12 +05:30
Kovid Goyal
43ceaf0b7e
Merge branch 'shorten-long-line' of https://github.com/Luflosi/kitty
2022-02-01 17:15:09 +05:30
Luflosi
301ca76d14
Shorten a long line
...
This line is getting really close to the limit of 160 characters.
2022-02-01 12:16:13 +01:00
Kovid Goyal
a591304412
...
2022-02-01 13:39:42 +05:30
Kovid Goyal
8fffd6070a
Fix #4605
2022-02-01 12:01:08 +05:30
Kovid Goyal
a899a8ab6d
Sanitize window sizes read from cached values
2022-02-01 11:23:36 +05:30
Kovid Goyal
9c13e8a549
Allow controlling placement of bell and activity symbols in the tab title template
...
Fixes #4581
2022-02-01 08:58:49 +05:30
Kovid Goyal
68d2ea3f27
Get config generation working with py3.10
...
The typing classes now have a __name__ attribute
2022-02-01 08:29:34 +05:30
Kovid Goyal
2c0269930f
kitty @ get-text: Add a n option to clear the current selection after getting text
...
See #4600
2022-01-31 08:22:05 +05:30
Kovid Goyal
c4953504ba
...
2022-01-31 08:19:45 +05:30
Kovid Goyal
e7ee6d9e26
A new action to clear the current selection
...
Fixes #4600
2022-01-31 08:17:40 +05:30
Kovid Goyal
1cb3875cb5
Merge branch 'minor-tweaks' of https://github.com/page-down/kitty
2022-01-30 15:51:02 +05:30
pagedown
14ae2d0862
Make the colons colored like the others
2022-01-30 17:37:17 +08:00
pagedown
539ec69d3f
Remove a space that was introduced by mistake
2022-01-30 17:34:58 +08:00
Kovid Goyal
bc873ad838
bash shell integration: To title and cursor escape codes at end of PS1/PS0 so that they override pre-existing ones
...
This is needed because some distros like Debian patch the default bashrc
to set a user@host:/pwd style title which is extremely unsuitable for
kitty.
2022-01-30 11:13:46 +05:30
Kovid Goyal
f056b7c1da
Improve docs for splits layout
...
Fixes #4592
2022-01-30 09:44:33 +05:30
Kovid Goyal
2e790a119a
Merge branch 'refactor-fstring' of https://github.com/page-down/kitty
2022-01-30 09:26:17 +05:30
pagedown
4a3ed62809
Refactor: More f-string for kittens
2022-01-29 20:23:34 +08:00
pagedown
4110074580
Refactor: More f-string for kitty client.py
2022-01-29 20:22:44 +08:00
pagedown
c21f00c476
Refactor: More f-string for kitty fonts and rc send_text
2022-01-29 20:22:22 +08:00
pagedown
1ca1c2edad
Refactor: More f-string for conf
2022-01-29 20:18:11 +08:00
pagedown
ba0f61d752
Refactor: More f-string for kitty
2022-01-29 20:17:46 +08:00
pagedown
74e70d2548
Refactor: More f-string for bypy scripts
2022-01-29 20:15:17 +08:00
pagedown
74921c1373
Refactor: Sorting items when generating files
...
Make the files generated in different environments consistent.
2022-01-29 20:14:56 +08:00
pagedown
a22f37b919
Refactor: More f-string for tools
2022-01-29 20:14:36 +08:00
Kovid Goyal
9f250fdf26
Only dump env var names not values
2022-01-29 11:55:26 +05:30
Kovid Goyal
d92eba82bc
Dump env vars seen by kitty for debug config
2022-01-29 11:36:58 +05:30
Kovid Goyal
a052958a20
Merge branch 'macos' of https://github.com/page-down/kitty
2022-01-29 11:26:09 +05:30
pagedown
81e7e6a356
macOS: Disable sudden termination
...
Since we have the quit confirmation feature, so we explicitly specify
that sudden termination is not supported.
2022-01-29 13:41:59 +08:00
pagedown
953cf26369
macOS: Fix info plist structure version
...
Set the InfoDictionary version explicitly, hopefully the behavior will
be unchanged when the default version is upgraded.
2022-01-29 13:37:21 +08:00
pagedown
7649e2f3ea
Docs: Fix macOS shortcut for debug_config
2022-01-29 13:32:36 +08:00
Kovid Goyal
2a6a77467c
Merge branch 'refactor-fstring' of https://github.com/page-down/kitty
2022-01-28 17:26:43 +05:30
pagedown
dc61adf9d8
Refactor: More f-string
2022-01-28 19:34:13 +08:00
Kovid Goyal
e0c4a90aa3
DRYer
2022-01-28 13:21:54 +05:30
Kovid Goyal
5cdff7d6d0
themes kitten: Allow writing to a different file than kitty.conf
2022-01-27 20:24:39 +05:30
Kovid Goyal
4f6c16984a
Do not send arrow key presses to shells when clicking on a window with the mouse to focus it
...
Fixes #4128
2022-01-27 20:07:17 +05:30
Kovid Goyal
7e364b1606
Fix incorrect shortcut in docs
2022-01-27 19:45:35 +05:30
Kovid Goyal
a24df07d25
Merge branch 'fix-on-macOS-10.12' of https://github.com/Luflosi/kitty
2022-01-27 17:35:20 +05:30
Luflosi
347c0d4de4
Fix compilation on macOS 10.12
...
Without this commit, kitty would fail to compile on macOS 10.12 with the error "use of undeclared identifier".
This problem was introduced in f7be4fab48 , where some code was moved to a different file, without moving the corresponding `#define` statements.
2022-01-27 12:21:17 +01:00
Kovid Goyal
ca2e9f571f
Merge branch 'refactor' of https://github.com/page-down/kitty
2022-01-27 16:40:17 +05:30
pagedown
9be57de4a9
macOS: List kitty in the open with menu of an arbitrary file
...
Allow opening files without extension name following the rules in launch
actions configuration.
2022-01-27 18:16:35 +08:00
pagedown
cc84ee9734
Refactor: Replace string concat with f-string
2022-01-27 17:57:25 +08:00
pagedown
b5ad030a14
macOS: Categorize and update bundle info plist
...
Allow toggling input sources using CapsLock.
Allow programs to request photo, motion, speech recognition permissions.
Add local network unicast or multicast usage description.
Remove iOS-only items.
2022-01-27 17:55:43 +08:00
Kovid Goyal
40b5c43920
...
2022-01-27 12:14:42 +05:30
Kovid Goyal
9f2be8b696
Fix #4573
2022-01-27 11:29:33 +05:30
Kovid Goyal
4397e60206
Add changelog entry for cursor shape restoration
2022-01-27 11:19:53 +05:30
Kovid Goyal
caab98e70b
remove duplicate changelog entry
2022-01-27 11:18:15 +05:30
Kovid Goyal
11a4b75ffa
Merge branch 'fix-ime' of https://github.com/page-down/kitty
2022-01-27 10:46:37 +05:30
Kovid Goyal
d25dceacdd
Merge branch 'remote-control' of https://github.com/page-down/kitty
2022-01-27 10:38:43 +05:30
pagedown
b9a612fb9c
macOS: Clean up any text that may not have been sent when loses focus
2022-01-27 12:37:17 +08:00
pagedown
3b9a7914ee
Also add alias --dont-take-focus to new_window
2022-01-27 12:28:40 +08:00
pagedown
f646dfa238
Cancel IME for active kitty or OS window only
2022-01-27 11:48:48 +08:00
Kovid Goyal
0b2a533b44
Merge branch 'fix-ime' of https://github.com/page-down/kitty
2022-01-27 08:03:08 +05:30
Kovid Goyal
0e1246c15b
Merge branch 'fix-cache-defrag' of https://github.com/Luflosi/kitty
2022-01-27 07:49:54 +05:30
pagedown
a987fb81a0
Emits an IME lost focus event when the window lost focus or closed
2022-01-27 10:13:57 +08:00
pagedown
4d920b182f
macOS: Cancel IME composition when receive loss of focus event
2022-01-27 10:07:18 +08:00
pagedown
22f077b384
Clear overlay text after screen loses focus
2022-01-27 09:53:40 +08:00
Luflosi
4c78a50dcf
Add more copy_file_range() and sendfile() errno exceptions
...
On ZFS `copy_file_range()` and `sendfile()` fail for some reason, so add `EINVAL` to the list of error codes for which the code will fall back to a slower implementation.
While we are at it, add all the error codes from https://go.dev/src/internal/poll/copy_file_range_linux.go for different filesystems and older kernel versions to the list of error codes from `copy_file_range()`.
Without this, the cache defragmentation and the test testing it (`test_disk_cache`) fail with the error message "Failed to copy data to new disk cache file during defrag: Invalid argument" when the cache directory is stored on ZFS.
Perhaps this is caused by me running ZFS 2.1.2 on Linux 5.16.0, which is not a supported combination. This ZFS version is only "compatible with 3.10 - 5.15 kernels" according to the release notes. Or maybe it's just not implemented.
To reproduce the problem, execute `KITTY_CACHE_DIRECTORY=/path/to/zfs python3 test.py` with `KITTY_CACHE_DIRECTORY` pointing to a directory on ZFS.
2022-01-27 00:45:30 +01:00
Luflosi
9d87b08c52
Fix logic error in file copy helper functions
...
If `errno` is `EAGAIN`, the second if statement is never true and if `errno` is not `EAGAIN`, the function returns immediately, not checking the second if statement.
This commit fixes this.
A logically equivalent change would have been to simply swap the two if statements but I find this version to be more readable.
2022-01-26 23:35:54 +01:00
Kovid Goyal
97e58c5b86
Merge branch 'macos-ime' of https://github.com/page-down/kitty
2022-01-26 16:49:10 +05:30
pagedown
b3f678cf6f
Improve debug log
2022-01-26 18:28:37 +08:00
pagedown
7f3715cd3e
Use the input context instance from GLFWContentView
2022-01-26 18:25:37 +08:00
pagedown
a3aaaa1efb
macOS: Explicitly cancel IME composition when losing the focus
2022-01-26 18:21:20 +08:00
Kovid Goyal
d1531632a2
Add some notes on how to run IBUS for testing
2022-01-26 10:47:18 +05:30
Kovid Goyal
2151969ae5
IBUS: Hide the pre-edit text when receiving a HidePreeditText message
2022-01-26 10:12:48 +05:30
Kovid Goyal
44e3a6f0fb
Shell integration: Set cursor shape to whatever is specified in the cursor_shape option when executing a command rather than the block shape
2022-01-25 13:30:48 +05:30
Kovid Goyal
364bad504c
CSI 0 q should blink cursor as per xterm docs and behavior
2022-01-25 13:29:44 +05:30
Kovid Goyal
0648b4f568
Merge branch 'ksi-fish' of https://github.com/page-down/kitty
2022-01-25 11:33:06 +05:30
pagedown
a47b3bf578
Fix the blinking block cursor shape for commands in bash integration
2022-01-25 14:00:28 +08:00
pagedown
3aec573d40
Use blinking block for commands consistent with zsh and bash integration
2022-01-25 13:58:11 +08:00
pagedown
5d4b0c0bef
Set the pre-exec cursor shape in fish vi mode and config on demand
2022-01-25 13:01:54 +08:00
pagedown
11c0343420
Add comments and minor tweaks to fish integration
2022-01-25 11:52:34 +08:00
Kovid Goyal
287b843d13
add a comment
2022-01-24 22:14:56 +05:30
Kovid Goyal
1fea4777fa
zsh shell integration: Restore cursor to blinking block before running external commands
2022-01-24 22:06:52 +05:30
Kovid Goyal
b5a2f94185
The open_actions() test needs options set
2022-01-24 15:21:32 +05:30
Kovid Goyal
1000376a4f
...
2022-01-24 09:50:37 +05:30
Kovid Goyal
02e1272502
Slightly improve debug text
2022-01-23 20:40:41 +05:30
Kovid Goyal
393e5eb158
Merge branch 'fix-macos-ime' of https://github.com/page-down/kitty
2022-01-23 20:38:43 +05:30
pagedown
b2d0c35fc2
Clear the pre-edit text only when inserting non-control characters
...
Maintains the pre-edit input state after pressing the modifier key
combination or function key while using the IME.
2022-01-23 22:22:24 +08:00
pagedown
3ee12082f2
No need to update the pre-edit text
2022-01-23 22:16:26 +08:00
pagedown
1ce4fc9c8c
Check for ASCII control chars before sending text
2022-01-23 21:40:27 +08:00
pagedown
57e2866b68
macOS: Fix caps_lock not clearing pre-edit text when using IME
2022-01-23 18:50:55 +08:00
pagedown
195fc1a270
Minor tweaks to macOS key event debug log
2022-01-23 18:45:18 +08:00
Kovid Goyal
39e56f1864
Dont check the return value of handleEvent
...
It's apparently meaningless, despite what the docs say
2022-01-23 12:47:29 +05:30
Kovid Goyal
da96dfcad2
Forgot to use override
2022-01-23 11:33:58 +05:30
Kovid Goyal
053bb999d3
Merge branch 'fix-macos-ime-modifiers' of https://github.com/page-down/kitty
2022-01-23 10:41:45 +05:30
Kovid Goyal
e914f0df8e
Make FAIL_WARN a boolean
2022-01-23 10:12:11 +05:30
Kovid Goyal
78cd83845f
Fix sphinx failing to highlight fish
2022-01-23 09:43:15 +05:30
Kovid Goyal
f6228cc81e
Merge branch 'fix-macos-ime' of https://github.com/page-down/kitty
2022-01-23 08:17:16 +05:30
pagedown
83884f42f8
macOS: Fix text insertion by modifier keys when using IME
2022-01-23 01:50:37 +08:00
pagedown
fbaf3e2f49
Update preedit text with markedText
...
This fixes the preedit text being cleared when using shortcut keys to
switch candidate text in the input state.
2022-01-23 00:01:08 +08:00
Kovid Goyal
c0be0f74d8
Use commit text instead of a zero key event
...
Thanks @page-down
2022-01-22 21:11:26 +05:30
Kovid Goyal
a9e014226e
Merge branch 'docs' of https://github.com/page-down/kitty
2022-01-22 20:58:30 +05:30
pagedown
b498d86436
Docs: Add modifier key names and aliases
2022-01-22 23:08:44 +08:00
Kovid Goyal
ff836a85aa
Special case the IME injecting text in on_key_input
2022-01-22 20:00:03 +05:30
Kovid Goyal
688a3eaef7
Check if input context handles flagschanged event
2022-01-22 16:17:01 +05:30
Kovid Goyal
3b15b46d08
Also deal with setMarkedText called from event loop with actual marked text
2022-01-22 16:13:44 +05:30
Kovid Goyal
f21ddae94f
Handle setMarkedText called from the event loop
...
Also pass through text with zero key
2022-01-22 16:08:50 +05:30
Kovid Goyal
cd9b752926
...
2022-01-22 16:02:05 +05:30
Kovid Goyal
655a5a2808
Handle insertText called from the event loop by the text input system
2022-01-22 15:51:43 +05:30
Kovid Goyal
5f4e519d61
...
2022-01-22 15:13:53 +05:30
Kovid Goyal
720bf7efd6
Fix mouse position reported incorrectly on click event in a newly created window if the mouse has never moved in that window
2022-01-22 15:10:14 +05:30
Kovid Goyal
3867620be5
...
2022-01-22 14:58:10 +05:30
Kovid Goyal
03a7361325
Some debug prints for flagsChanged
2022-01-22 14:57:13 +05:30
Kovid Goyal
e8c683db8b
A new approach to handling flagsChanged with IME
...
Bypass cocoa's flagsChanged handling and call handleevent ourselves,
this allows us to know exactly what the IME is doing. Hopefully fixes
issues with IMEs that change state on modifier key presses.
Fixes #4541
2022-01-22 14:47:57 +05:30
Kovid Goyal
0a3acd9738
ask kitten: Use buttons for choices as well
2022-01-22 13:57:25 +05:30
Kovid Goyal
08f159c2ba
TypeCheck underline style names
2022-01-22 12:41:26 +05:30
Kovid Goyal
d4e7587686
use underline instead of color for default choice
2022-01-22 12:35:43 +05:30
Kovid Goyal
d219654387
Use a dedicated choose() method matching confirm()
2022-01-22 12:27:20 +05:30
Kovid Goyal
32e31a3c6b
Cancelling the choice kitten should return the empty response
2022-01-22 12:13:32 +05:30
Kovid Goyal
9419125387
Highlight the default choice in yellow
2022-01-22 11:45:01 +05:30
Kovid Goyal
1bbab217d0
ask kitten: Always have a default choice
2022-01-22 11:39:54 +05:30
Kovid Goyal
05d648d411
ask kitten: Draw yes/no buttons
2022-01-22 11:32:26 +05:30
Kovid Goyal
5c832d3190
Allow multiple clickable ranges
2022-01-22 10:52:44 +05:30
Kovid Goyal
ce7282a53c
DRYer
2022-01-22 10:47:52 +05:30
Kovid Goyal
0d33380e6a
Cleanup previous PR
...
yesno default should be yes.
Pressing q to quit is undiscoverable
Clicking empty cells should not trigger buttons as that is
undiscoverable and possibly surprising
2022-01-22 10:44:01 +05:30
Kovid Goyal
9944b895a6
Merge branch 'kitten-ask' of https://github.com/page-down/kitty
2022-01-22 10:06:52 +05:30
Kovid Goyal
fe7045dd2f
Ask kitten: Fix rendering of multiline messages
2022-01-22 09:40:05 +05:30
Kovid Goyal
d17757cc84
Merge branch 'feat-underline' of https://github.com/page-down/kitty
2022-01-22 09:28:13 +05:30
pagedown
7ef73babdd
Use fixed values for unchanging dict to replace split and for loops
2022-01-22 11:36:04 +08:00
pagedown
a47aca6fdb
Add new dotted and dashed underline enum
...
Also use "straight" for single underline, consistent with the protocol
extension document.
2022-01-22 11:00:49 +08:00
pagedown
bf9d47fddd
...
2022-01-22 09:51:28 +08:00
pagedown
4fe10fadb0
...
2022-01-22 09:45:32 +08:00
pagedown
d29faa0986
Allow tab title to be set to empty to use window title
2022-01-22 03:28:42 +08:00
pagedown
88ee5e95fc
Add default choices for features that use ask kitten
2022-01-22 03:21:59 +08:00
pagedown
9a119255fe
ask kitten: Use the default value as input text
...
Prefill the current value when changing the tab title.
2022-01-22 03:11:39 +08:00
pagedown
7ce11050cd
ask kitten: Esc to abort and Enter to confirm the default choice
2022-01-22 02:50:50 +08:00
pagedown
9b4d1219b8
Add default choice option for ask kitten
2022-01-22 02:46:37 +08:00
pagedown
4dd29c726a
Make the clickable range of No the same as Yes
...
Since the two options are treated equally, the same amount of mouse
clickable range are given.
2022-01-22 02:41:52 +08:00
Kovid Goyal
17e31565e2
Get it working even with 2 row windows assuming they are wide enough to fit the title on a single line
2022-01-21 21:46:27 +05:30
Kovid Goyal
dd72deb546
Allow ask kitten to function in a 3 line window
2022-01-21 21:43:25 +05:30
Kovid Goyal
7e82179c79
...
2022-01-21 21:20:49 +05:30
Kovid Goyal
d61e655953
Changelog entry for new underline styles
2022-01-21 21:16:23 +05:30
Kovid Goyal
cd0ca95877
Improve the UI of the ask kitten
...
Center the text in the window and allow pressing enter/esc when doing a
yes/no question
Fixes #4545
2022-01-21 20:02:13 +05:30
Kovid Goyal
d70610f5d9
more uses of extlinks
2022-01-21 08:45:03 +05:30
Kovid Goyal
f9cfb6f989
use sphinx extlinks instead of custon roles
2022-01-21 08:19:57 +05:30
Kovid Goyal
1f4372b34c
Test if text is being inserted rather than if text is present
2022-01-20 11:16:05 +05:30
Kovid Goyal
76e7e7d61f
...
2022-01-20 08:45:03 +05:30
Kovid Goyal
c09dc73476
...
2022-01-20 08:33:44 +05:30
Kovid Goyal
b090602fdb
macOS: Fix the shift key not clearing pre-edit text in IME
...
Fixes #4541
2022-01-20 08:00:17 +05:30
Kovid Goyal
16d3e82515
Add debug output when ignoring key press during IME
2022-01-19 14:50:12 +05:30
Kovid Goyal
9caa6bb306
Nicer event printing
2022-01-19 14:32:03 +05:30
Kovid Goyal
acf227803f
Move event formatting into the types
2022-01-19 14:30:08 +05:30
Kovid Goyal
f255c15fa9
DRYer
2022-01-19 14:04:14 +05:30
Kovid Goyal
7ce74ac688
Also change string based on event type
2022-01-19 13:58:45 +05:30
Kovid Goyal
6090673bb5
DRYer
2022-01-19 13:56:02 +05:30
Kovid Goyal
d1b5420b08
Display space as a word when printing keys
2022-01-19 13:33:53 +05:30
Kovid Goyal
e0f2b96fd2
Merge branch 'debug-config' of https://github.com/page-down/kitty
2022-01-19 13:16:26 +05:30
Kovid Goyal
47fdce6483
remove executable perms from boss.py
2022-01-19 13:12:52 +05:30
pagedown
bac84f31b3
Refactor the print functions to make it easier to use in kitten
2022-01-19 15:26:02 +08:00
Kovid Goyal
21bc5bf8c0
Dont leak a reference to input_source_at_last_key_event
2022-01-19 12:06:54 +05:30
Kovid Goyal
0ae928f409
Increase max cache size for distribute_dots
...
Since it is now also used to render dotted underlines
2022-01-19 12:00:17 +05:30
pagedown
7bf7cc284d
Add the missing mouse triggers click (-2) and double-click (-3)
2022-01-19 14:12:39 +08:00
pagedown
ff1efebf70
Fix mouse maps are indented with one more space
2022-01-19 14:07:45 +08:00
pagedown
9334ed773e
Adjust the order of modifier key names to match the config and docs
2022-01-19 14:05:51 +08:00
Kovid Goyal
5d8a0c4b09
Merge branch 'ksi-fish' of https://github.com/page-down/kitty
2022-01-19 08:38:15 +05:30
pagedown
c5e8a36f9b
Shell integration: Improvements for fish integration
...
Move the completion function to the autocomplete script.
Fix some issues with cursor shape setting, respect user configuration.
Functions and vars start with two underscores, following the convention.
Other minor refactoring.
2022-01-19 09:39:23 +08:00
Kovid Goyal
39f9efc816
Add changelog entry for last PR
2022-01-18 21:10:02 +05:30
Kovid Goyal
17a3be8cb1
Merge branch 'dotted-dashed-underline' of https://github.com/jcla1/kitty
2022-01-18 21:03:30 +05:30
Joseph Adams
ee2c9775a7
Use distribute_dots() to even out spacing in underline
2022-01-18 15:46:31 +01:00
Joseph Adams
da486153de
Add (possibly erroneous) test for new underline.
...
Also make more clear *what* exactly is rendered in the cell (i.e. a
strikethrough).
2022-01-18 12:52:59 +01:00
Joseph Adams
dd192ad0b7
Make old tests run
...
Previously, because of the new underline styles a couple of tests were
failing due to an unexpected number of sprites being returned from the
test-set-up. No new tests were added.
2022-01-18 12:28:24 +01:00
Joseph Adams
3c6c36487f
Update underline documentation
2022-01-18 12:13:51 +01:00
Kovid Goyal
85eedb96ac
Merge branch 'docs' of https://github.com/page-down/kitty
2022-01-18 16:37:11 +05:30
pagedown
3a8d867c87
Docs: Add macOS shortcuts and nth_os_window
2022-01-18 18:59:26 +08:00
Kovid Goyal
6a2522452f
Allow including config files matching glob patterns in conf files
...
Fixes #4533
2022-01-18 16:28:19 +05:30
Kovid Goyal
f9a4b6bb0d
Use an enum for state as well
2022-01-18 13:58:55 +05:30
Kovid Goyal
f1fbfe297d
Use an enum for background work
2022-01-18 13:50:05 +05:30
Kovid Goyal
2c0ac895e6
diff kitten: Fix exiting while highlighting is incomplete causes kitten to hang until highlighting is done
2022-01-18 13:43:39 +05:30
Joseph Adams
e86c7d668c
Add rendering functions for dotted and dashed underline.
...
Dashed underline looks pretty good regardless of conditions, but the
dotted underline only looks good/correct on certain font-sizes. This is
due to the underline being rendered on a per cell/glyph basis (so one
can not place a dot directly between two letters, say. Could be remedied
by pulling the rendering of the underlines into the shader, but that is
more work.
2022-01-17 13:25:08 +01:00
Kovid Goyal
4778e0eb23
Move the section about integration to a better location
2022-01-17 10:41:35 +05:30
Kovid Goyal
c3ded5eb72
...
2022-01-17 10:39:13 +05:30
Kovid Goyal
323355d4bb
Add a press mentions section to the kitty website
2022-01-17 10:26:49 +05:30
Kovid Goyal
92075a44d8
Add a note about using icat from other programs
2022-01-17 08:35:48 +05:30
Kovid Goyal
386bb837d8
Merge branch 'fix-macos-kbd-shortcuts' of https://github.com/page-down/kitty
2022-01-17 08:23:34 +05:30
Kovid Goyal
ea28029581
...
2022-01-17 08:05:00 +05:30
pagedown
507e570887
No longer need the patch for Sphinx KeyboardTransform
...
The issue with KeyboardTransform with dirhtml has been fixed in Sphinx 4.4.0.
2022-01-17 02:49:25 +08:00
pagedown
5182f79152
macOS: Fix global shortcuts with shift modifier key not working
2022-01-17 02:23:00 +08:00
Kovid Goyal
71106bcd39
Shell integration: Dont override fish's native title setting functionality
...
See discussion: https://github.com/fish-shell/fish-shell/issues/8641
2022-01-16 15:58:11 +05:30
Kovid Goyal
cf91e1973b
Show number of windows per tab in the select_tab action
...
Fixes #4523
2022-01-16 10:03:20 +05:30
Kovid Goyal
2170d4e21a
DRYer
2022-01-16 09:47:44 +05:30
Kovid Goyal
2538e94390
Use a single SGR regex pattern cache
2022-01-16 09:46:52 +05:30
Kovid Goyal
0be0836890
Add changelog entry for last PR
2022-01-16 03:48:00 +05:30
Kovid Goyal
725ddf4f8b
Merge branch 'fix-ksi-last-cmd' of https://github.com/page-down/kitty
2022-01-16 03:46:17 +05:30
pagedown
ce6f99044e
...
2022-01-16 04:14:59 +08:00
pagedown
30b81d98f1
Add tests for finding command output
2022-01-16 04:10:16 +08:00
pagedown
f0d2d01a36
Fix calculating the end of the command output
2022-01-16 04:02:13 +08:00
pagedown
ce32e64692
Check the continued attribute when searching for prompt marks
2022-01-15 20:19:12 +08:00
pagedown
7ea8a7d45f
Fix searching the last command output
2022-01-15 18:38:05 +08:00
Kovid Goyal
b32edf54f8
hints kitten: Document how to choose the empty hint for multi key hints
2022-01-15 15:17:30 +05:30
Kovid Goyal
06ff685f8e
oops
2022-01-15 14:54:30 +05:30
Kovid Goyal
c6ecdf0fa4
Ensure ignoreOSKeyboardProcessing is initialized
2022-01-15 14:43:10 +05:30
Kovid Goyal
ca4840717b
macOS: Fix using shortcuts from the global menu bar as subsequent key presses in a multi key mapping not working
...
Fixes #4519
2022-01-15 13:56:18 +05:30
Kovid Goyal
c473df4393
Ignore NSEventModifierFlagFunction when parsing global shortcuts
2022-01-15 12:16:18 +05:30
Kovid Goyal
fa6c74a9b1
...
2022-01-15 11:49:02 +05:30
Kovid Goyal
8174ecb318
Use only bash builtins to get currently executing command
2022-01-15 11:46:25 +05:30
Kovid Goyal
5f20d69309
Move extraction of last cmd into its own function
2022-01-15 10:58:16 +05:30
Kovid Goyal
aab121b35d
Also check for shiftable shortcuts in the virtual key code case
2022-01-15 10:23:18 +05:30
Kovid Goyal
1a374a7678
Merge branch 'ksi-fish' of https://github.com/page-down/kitty
2022-01-15 10:17:18 +05:30
Kovid Goyal
396906860d
macOS: When checking for global shortcuts handle shifted form of cmd+`
2022-01-15 10:14:06 +05:30
pagedown
85254746bf
Shell integration: Remove functions that run only once at start
2022-01-15 12:34:52 +08:00
Kovid Goyal
c3c7ad78c1
Merge branch 'ksi-fish-cursor' of https://github.com/page-down/kitty
2022-01-15 09:40:37 +05:30
pagedown
77787bdc7c
Shell integration: Improvements in fish integration
2022-01-15 12:01:47 +08:00
pagedown
9813ad04c2
Shell integration: Set the fish vi mode cursor to blink
2022-01-15 10:29:26 +08:00
Kovid Goyal
d2c20f9548
Add changelog entry for previous PR
2022-01-14 23:31:10 +05:30
Kovid Goyal
e51b520897
Merge branch 'ksi-fish-title' of https://github.com/page-down/kitty
2022-01-14 23:29:48 +05:30
Kovid Goyal
35207af3de
Another use of builtin
2022-01-14 23:28:10 +05:30
Kovid Goyal
96269510d3
Abort before defining anything and dont touch global state via set
2022-01-14 23:26:40 +05:30
pagedown
ceb7c440a1
Shell integration: Only override default fish_title
2022-01-15 01:46:14 +08:00
Kovid Goyal
25e1edf52e
...
2022-01-14 23:03:44 +05:30
Kovid Goyal
7a903adeea
let _ksi_debug_print handle multiple args
2022-01-14 22:53:39 +05:30
Kovid Goyal
914f4e9ec9
Dont break if user aliases or redefines various builtins we use
2022-01-14 22:47:49 +05:30
Kovid Goyal
4c5673dc4d
Freeze _ksi_prompt to prevent it from being edited
2022-01-14 22:35:37 +05:30
Kovid Goyal
8529a60d77
Use issue number in changelog
2022-01-14 22:26:54 +05:30
Kovid Goyal
58da5d4d29
Placate mypy
2022-01-14 22:26:05 +05:30
Kovid Goyal
4ce6d718c9
icat kitten: Add options to mirror images and remove their transparency before displaying them
...
Fixes #4513
2022-01-14 22:02:35 +05:30
Kovid Goyal
dd31ee60f2
Fix typing of to_color
2022-01-14 21:54:36 +05:30
Kovid Goyal
8bb2da3c37
Use with instead of closing manually
2022-01-14 21:12:08 +05:30
Kovid Goyal
47dbaac54f
Add changelog entry for previous PR
2022-01-14 20:36:15 +05:30
Kovid Goyal
346405299b
Merge branch 'ksi-fish-cursor' of https://github.com/page-down/kitty
2022-01-14 20:35:23 +05:30
pagedown
a0476c03c3
Improve fish cursor shape integration
2022-01-14 22:57:31 +08:00
Kovid Goyal
9dd5410433
Dont rely on declare -g existing in bash
2022-01-14 18:21:21 +05:30
Kovid Goyal
72745dfb62
Use red fg for activity symbol by default
...
Can be overriden via template, but for backwards compat keep it red
2022-01-14 13:27:35 +05:30
Kovid Goyal
3a0d8ada6a
Merge branch 'feat-macos-kbd-shortcuts' of https://github.com/page-down/kitty
2022-01-14 12:36:01 +05:30
Kovid Goyal
b53d756bc2
Shell integration: Fix bash integration not working when PROMPT_COMMAND is used to change the prompt variables
...
Fixes #4476
2022-01-14 12:14:48 +05:30
Kovid Goyal
bb8ebf32ae
Merge branch 'fix-macos-text-input-beep' of https://github.com/page-down/kitty
2022-01-14 11:53:37 +05:30
pagedown
704487f0ce
macOS: Release input context
2022-01-14 14:18:03 +08:00
pagedown
a9bdf70275
macOS: Watch for system preferences changes and update global_shortcuts
2022-01-14 13:51:46 +08:00
Kovid Goyal
017da1159c
Allow using templates with text formatting for tab_activity_symbol
...
Fixes #4507
2022-01-14 08:18:04 +05:30
pagedown
ab5b9fb329
macOS: Only check the "standard" type of the system shortcuts
2022-01-14 10:07:38 +08:00
pagedown
e0700d45de
macOS: Update to the latest and categorize the system shortcut names
2022-01-14 10:05:49 +08:00
Joseph Adams
a2c4f830b3
Enable use of higher options for underlining text.
...
In `Colored and styled underlines` it's proposed that the SGR codes
\e[4:4m and \e[4:5m are used to add a dotted or dashed underline to the
rendering context respectively. This commit prepares the necessary
changes to add the two additional underline style, while still rendering
them as a normal underline and curly underline.
2022-01-13 17:27:02 +01:00
Kovid Goyal
ecf4fcdeb0
Add changelog entry for previous PR
...
Fixes #4489
2022-01-13 20:24:17 +05:30
Kovid Goyal
0a89fe2e17
Merge branch 'fix-macos-text-input-beep' of https://github.com/page-down/kitty
2022-01-13 20:23:23 +05:30
pagedown
5b5651ca7d
macOS: Suppress the key combinations beep sound
2022-01-13 22:51:53 +08:00
Kovid Goyal
5e5cd1acc8
Simplify flagsChanged and make it more robust
...
Now it only sends a key event to kitty if an actual modifier key was
pressed/released.
2022-01-13 20:13:55 +05:30
Kovid Goyal
79fd01093a
fix typo in generating lookup keys for vk code based shortcuts
2022-01-13 19:21:49 +05:30
Kovid Goyal
ce63ddfe54
macOS: Print out unhandled exceptions
2022-01-13 16:54:36 +05:30
Kovid Goyal
a56471f7ed
Validate the parameters array
2022-01-13 16:44:43 +05:30
Kovid Goyal
96b46c554e
Add type annotations to dictionaries
2022-01-13 16:29:13 +05:30
Kovid Goyal
a819023ab7
remove redundant cast
2022-01-13 16:05:48 +05:30
Kovid Goyal
9504f50bd4
...
2022-01-13 16:04:50 +05:30
Kovid Goyal
8fe71e3dc8
Dont use a block for dictionary enumeration
...
Maybe that will fix the mysterious issue @page-down is having
2022-01-13 16:02:29 +05:30
Kovid Goyal
34d7643bed
Ensure global_shosrtcuts is initialized
2022-01-13 15:10:19 +05:30
Kovid Goyal
682eb7d802
Log when events are ignored because no keyWindow is present
2022-01-13 14:22:52 +05:30
Kovid Goyal
f86a954131
ooops
2022-01-13 14:21:58 +05:30
Kovid Goyal
8e3f6d37d9
...
2022-01-13 14:15:39 +05:30
Kovid Goyal
2c38360ca0
Handle no keyWindow case
2022-01-13 13:43:01 +05:30
Kovid Goyal
f9d2167c97
macOS: Respect the users system-wide global keyboard shortcut preferences
...
Note that we currently dont handle live reload of global shortcut
preferences. I cant be bothered. Patches welcome.
Fixes #4501
2022-01-13 13:36:58 +05:30
Kovid Goyal
17cada7a6a
Micro-optimization
2022-01-12 23:32:03 +05:30
Kovid Goyal
19e6f70655
Draw the dots for braille characters more evenly spaced at all font sizes
...
Fixes #4499
2022-01-12 23:18:18 +05:30
Kovid Goyal
d106089cb9
Micro-optimization
2022-01-12 22:25:58 +05:30
Kovid Goyal
0f7f69c218
move menu case outside auto-generated section
2022-01-11 22:57:05 +05:30
Kovid Goyal
f9171a767c
Also document menu key encoding
2022-01-11 22:48:53 +05:30
Kovid Goyal
34e939f9a1
Encode menu key the same as xterm in legacy mode
...
See #597
2022-01-11 22:44:56 +05:30
Kovid Goyal
ba76cacd74
Add changelog entry for previous PR
2022-01-11 20:10:38 +05:30
Kovid Goyal
fd1b64dcc6
Merge branch 'fixes-fullscreen-hide-macos-10.15' of https://github.com/npearson72/kitty
2022-01-11 20:09:10 +05:30
Nathan Pearson
7c33d7ef17
Bumps version from 10.15 to 10.15.7 (latest minor)
2022-01-11 07:31:37 -07:00
Nathan Pearson
2ccfecb5ae
Fixes comment
2022-01-11 06:39:48 -07:00
Nathan Pearson
a40ff85e1a
Fixes traditional fullscreen hide for Mac OS >= 10.15
2022-01-11 06:25:39 -07:00
Kovid Goyal
62953c2057
Mark parameters as unused
2022-01-11 11:26:08 +05:30
Kovid Goyal
0e6091773d
Add a poster for the demo video
2022-01-11 11:09:43 +05:30
Kovid Goyal
4c8ef26141
For the vertical and horizontal layouts have the windows arranged on a ring rather than a plane. This means the first and last window are considered neighbors
...
Fixes #4494
2022-01-11 08:08:11 +05:30
Kovid Goyal
7023c7a8ae
...
2022-01-10 21:15:24 +05:30
Kovid Goyal
b2bfc4408e
Fix common single letter extension files not being detected
...
Fixes #4491
Fixes #4492
2022-01-10 14:20:18 +05:30
Kovid Goyal
5b8aca3a2f
Use an f-string
2022-01-10 08:35:43 +05:30
Kovid Goyal
6715ee888e
Merge branch 'cleanup' of https://github.com/page-down/kitty
2022-01-10 08:01:13 +05:30
pagedown
4293325539
Cleanup previous PR
...
Revert the changes related to set_options debug_keyboard.
Remove the Carbon framework flag for glfw.
2022-01-10 10:24:10 +08:00
Kovid Goyal
24c44861ef
Cleanup previous PR
...
Simplify wrapping of toggle_secure_input
Dont duplicate debug_keyboard flag in two places
2022-01-09 22:11:22 +05:30
Kovid Goyal
eafd20b4b3
Merge branch 'feat-macos-sec-kbd' of https://github.com/page-down/kitty
2022-01-09 22:03:31 +05:30
pagedown
d9e5edac01
Refactor: Replace double quotes with single quotes
2022-01-09 22:54:33 +08:00
pagedown
f7be4fab48
macOS: Allow mapping secure keyboard entry shortcut
2022-01-09 22:54:03 +08:00
Kovid Goyal
50c822e05a
Merge branch 'zsh-integration' of https://github.com/romkatv/kitty
2022-01-09 15:44:43 +05:30
Roman Perepelitsa
6c1fd3015f
Fix a minor bug in zsh integration
...
This bug is extremely unlikely to cause issues.
2022-01-09 10:45:47 +01:00
Kovid Goyal
de3b9634ac
Add links to third party shell integrations
2022-01-09 04:30:32 +05:30
Kovid Goyal
722f6163aa
Use tabs for zsh/fish in hg kitten docs
2022-01-09 03:54:33 +05:30
Kovid Goyal
82a4e72c85
Merge branch 'patch-1' of https://github.com/ronjouch/kitty
2022-01-09 03:51:54 +05:30
Ronan Jouchet
c40bd7ce82
kittens/hyperlinked_grep: document how to tell fish to autocomplete with rg
...
It was documented for zsh but not fish (2 lines above).
While looking for how to do the same in fish, I couldn't find how to do
*exactly the same*, but turns out there's a neat way to do both the
aliasing and autocompletion mapping at the same time.
See https://fishshell.com/docs/current/cmds/function.html :
> `-w WRAPPED_COMMAND` or `--wraps=WRAPPED_COMMAND` causes the function
> to inherit completions from the given wrapped command. See the
> documentation for [complete](https://fishshell.com/docs/current/cmds/complete.html#cmd-complete )
> for more information.
2022-01-08 14:43:36 -05:00
Kovid Goyal
356897a32d
macOS: Persist "Secure Keyboard Entry" across restarts to match the behavior of Terminal.app
...
Fixes #4471
2022-01-08 14:13:14 +05:30
Kovid Goyal
ac0c10c170
Simplify if condition
2022-01-08 14:06:22 +05:30
Kovid Goyal
362c4147e4
...
2022-01-08 12:21:55 +05:30
Kovid Goyal
9b9eae7923
icat: Fix --hold not working with critical errors
2022-01-08 10:22:22 +05:30
Kovid Goyal
8622c47348
Fix #4430
2022-01-08 10:00:25 +05:30
Kovid Goyal
1bfc46a24f
...
2022-01-08 09:16:32 +05:30
Kovid Goyal
8de787a2f3
Create shlex.join if it doesnt exist
2022-01-07 20:17:23 +05:30
Kovid Goyal
fcc75689d8
...
2022-01-07 18:48:26 +05:30
Kovid Goyal
1eed35b8bb
Document launch-actions.conf
2022-01-07 18:47:37 +05:30
Kovid Goyal
1454af2d41
macOS: Allow customizing the launch actions
2022-01-07 18:43:07 +05:30
Kovid Goyal
cbb2597667
Merge branch 'feat-macos-open-with' of https://github.com/page-down/kitty
2022-01-07 17:11:42 +05:30
pagedown
9ca691c0c6
macOS: Add kitty to the open with list for text files and image files
2022-01-07 19:33:29 +08:00
Kovid Goyal
b9f21f285c
Remove non-namespaced launch points
...
As far as I can tell these were non-namespaced by accident
2022-01-07 14:34:41 +05:30
Kovid Goyal
bf84f95a94
macOS: When launching a shell script use its shebang, if present
2022-01-07 13:52:13 +05:30
Kovid Goyal
d42f2071c3
hold windows when running shell scripts via launch services
2022-01-07 13:45:02 +05:30
Kovid Goyal
5c343c918d
Add a --hold option for the launch command
2022-01-07 13:32:25 +05:30
Kovid Goyal
5bfed4fe2f
Also launch bash/zsh/fish scripts in their respective shells
2022-01-07 12:48:59 +05:30
Kovid Goyal
6c139600a0
macOS: Also open .sh and .command files in the default shell
2022-01-07 12:32:26 +05:30
Kovid Goyal
b80b8524e6
oops
2022-01-07 12:29:57 +05:30
Kovid Goyal
ffa63e27ea
macOS: Allow opening text files, images and directories with kitty when launched using "Open with" in Finder
...
Fixes #4460
2022-01-07 12:25:30 +05:30
Kovid Goyal
a155b081b7
Make hold_till_enter re-useable
2022-01-07 12:13:20 +05:30
Kovid Goyal
04807453ec
version 0.24.1
2022-01-06 10:40:59 +05:30
Kovid Goyal
1b7582e85c
Merge branch 'patch-1' of https://github.com/Silent-Crafter/kitty
2022-01-06 10:03:45 +05:30
Silent Crafter
e106562ef1
Bash: for loop array iteration fix
...
the array iteration wasn't implemented correctly for KITTY_SHELL_INTEGRATION variable. the i variable in for loop wasn't iterating through all the elements of that array
2022-01-06 09:52:59 +05:30
Kovid Goyal
d3a20f00d6
Add a comment explaining where we use PS2 marks
2022-01-06 09:25:41 +05:30
Kovid Goyal
de5443a4db
Add a reference to the discussion of using custom tab bar themes to the docs
2022-01-06 09:16:22 +05:30
Kovid Goyal
e8b19e08fa
Fix non-renderable combining chars causing some text to not be rendered on Linux
...
The test for non-renderable chars was broken and the variation selectors
were not included in the test. Fixes #4444
2022-01-05 22:33:53 +05:30
Kovid Goyal
a574081012
Merge branch 'zsh-integration' of https://github.com/romkatv/kitty
2022-01-05 21:29:30 +05:30
Roman Perepelitsa
4f06ce9d72
Once again start embedding marks in PS2 on zsh
2022-01-05 16:36:00 +01:00
Kovid Goyal
6713580455
Explicitly turn off aliases in a more functions
...
Not really needed, but I like to be explicit
2022-01-05 21:04:27 +05:30
Kovid Goyal
86f6c946b3
Merge branch 'zsh-integration-aliases' of https://github.com/romkatv/kitty
2022-01-05 20:49:08 +05:30
Roman Perepelitsa
9194d1db6b
Disable aliases when patching functions in zsh integration
2022-01-05 16:16:18 +01:00
Kovid Goyal
420a1b018a
Fix #4448
2022-01-05 20:14:23 +05:30
Roman Perepelitsa
8009b85073
Make writing to the TTY more robust in zsh integration
...
See https://github.com/kovidgoyal/kitty/issues/4440 .
2022-01-05 09:55:19 +01:00
Kovid Goyal
2a58af2be9
Ignore all errors rendering /etc/issue
2022-01-05 14:04:56 +05:30
Roman Perepelitsa
4decac26f6
Fix a typo in _ksi_debug_print
2022-01-05 09:22:00 +01:00
Roman Perepelitsa
a6b74f190f
Revert "Get _ksi_debug_print working again"
...
This reverts commit ff63e58f95 .
2022-01-05 09:20:33 +01:00
Kovid Goyal
bfbe60c90e
Update changelog
2022-01-05 09:05:20 +05:30
Kovid Goyal
384b2f8462
Add roundtrip and cursor positioning tests for all three zero width chars
2022-01-05 08:57:14 +05:30
Kovid Goyal
d875615c03
Fix a regression in the handling of some combining characters such as zero width joiners
...
Fixes #4439
2022-01-05 08:50:55 +05:30
Kovid Goyal
9aefcfe56f
Make --hold a bit more robust
2022-01-05 08:14:22 +05:30
Kovid Goyal
266e70222f
Avoid hooking LE widgets at all when using no-cursor
2022-01-05 07:46:20 +05:30
Kovid Goyal
d4639e2aea
Merge branch 'zsh-integration' of https://github.com/romkatv/kitty
2022-01-05 07:40:10 +05:30
Roman Perepelitsa
ca8975891b
Replace add-zle-hook-widget with a series of hacks in zsh integration
2022-01-04 19:56:57 +01:00
Kovid Goyal
bed3d2eb50
Fix #4434
2022-01-04 23:38:58 +05:30
Kovid Goyal
78495a7f64
spelling
2022-01-04 20:35:21 +05:30
Kovid Goyal
f66914f7bb
...
2022-01-04 20:29:53 +05:30
Kovid Goyal
58e1f6ee1f
Use ctermid() for tty_name
2022-01-04 20:25:16 +05:30
Kovid Goyal
0625035202
oops forgot to re-order second tab group
2022-01-04 20:18:49 +05:30
Kovid Goyal
f8fc272f58
Make loading IssueData more robust
...
Fixes #4424
2022-01-04 19:57:23 +05:30
Kovid Goyal
6d61de8a8f
Merge branch 'fladson/fix-documentation-typo' of https://github.com/fladson/kitty
2022-01-04 19:52:27 +05:30
Kovid Goyal
4c08709df1
Use same orders for all tab groups
2022-01-04 19:49:55 +05:30
Fladson Gomes
58a28da94d
Fix documentation typo
2022-01-04 14:46:25 +01:00
Kovid Goyal
26b976d17d
Merge branch 'fix-mouse-scroll' of https://github.com/page-down/kitty
2022-01-04 18:01:30 +05:30
pagedown
3141fc3f05
Update mouse cursor position when scrolling without OS window focus
2022-01-04 19:39:36 +08:00
Kovid Goyal
a45d6c8b55
Fix #4421
2022-01-04 16:21:00 +05:30
Kovid Goyal
dadf496a68
remove leftover debug print
2022-01-04 12:01:23 +05:30
Kovid Goyal
dae8ae33f0
hints kitten: Fix matching of filenames enclosed in quotes or brackets not stripping the surrounding quotes properly. Fixes #4419
2022-01-04 10:58:31 +05:30