Kovid Goyal
23bb2e1b67
Fast function to replace c0 codes
2024-02-25 09:57:23 +05:30
Kovid Goyal
c81ac668da
Use a single code path for tests and live VT parsing
2024-02-25 09:57:23 +05:30
Kovid Goyal
f42b49e597
Avoid a double parse for pending mode
2024-02-25 09:57:23 +05:30
Kovid Goyal
969bd05fc5
Represent malformed UTF-8 with the replacement character
2024-02-25 09:57:23 +05:30
Kovid Goyal
8a83014f51
Dont construct memoryview when not needed in non dump code path
2024-02-25 09:57:23 +05:30
Kovid Goyal
76158f39ba
Pass the window id to the dump calback
2024-02-25 09:57:23 +05:30
Kovid Goyal
065866895c
Get pending mode working and add a few more tests
2024-02-25 09:57:23 +05:30
Kovid Goyal
52025ff030
misc parser and test fixes
2024-02-25 09:57:22 +05:30
Kovid Goyal
5168e0b576
Port parse_bytes() used in the tests
2024-02-25 09:57:22 +05:30
Kovid Goyal
e4bb00d942
Implement UTF-8 decoding for screen_draw()
2024-02-25 09:57:22 +05:30
Kovid Goyal
5f809bf249
Get kitty building with the new VT parser
2024-02-25 09:57:22 +05:30
Kovid Goyal
b2391553f9
Keyboard protocol: Fix the Enter Tab and Backspace keys generating spurious release events even when report all keys as escape codes is not set
...
Fixes #7136
2024-02-18 11:12:24 +05:30
Kovid Goyal
8cc2cad4d9
Use list of legal chars in URL from the WHATWG standard
...
Notably this excludes some ASCII chars: <>{}[]`|
See https://url.spec.whatwg.org/#url-code-points
Fixes #7095
2024-02-05 13:27:22 +05:30
Kovid Goyal
5a2ee2f9a3
macOS: Fix kitten @ select-window leaving the keyboard in a partially functional state
...
Fixes #7074
2024-01-27 12:53:58 +05:30
Kovid Goyal
4c46d2bc95
...
2024-01-26 20:07:55 +05:30
Kovid Goyal
c95fc3689b
A single multi-key mapping should not prematurely complete as that confuses people trying out the feature
...
See #7073
2024-01-26 20:04:33 +05:30
Kovid Goyal
8c50632a10
Fix a single key mapping not overriding a previously defined multi-key mapping
2024-01-26 18:02:25 +05:30
Kovid Goyal
ae1bf69a3d
Fix date in changelog
2024-01-26 17:24:45 +05:30
Kovid Goyal
4dfbcb539f
Add basic tests for modal mappings
2024-01-25 14:42:27 +05:30
Kovid Goyal
d6e55f72c0
Forgot to stub out one method for the test
2024-01-25 14:18:09 +05:30
Kovid Goyal
cd30de3727
Fix #7055
2024-01-25 14:06:52 +05:30
Kovid Goyal
cec427777c
Add some tests for mappings
2024-01-25 13:56:42 +05:30
Kovid Goyal
715548b144
Make test robust against wezterm's system wide shell integration
...
Not only is it system wide but it runs by default, even outside wezterm,
sigh.
2024-01-18 12:52:54 +05:30
Kovid Goyal
b0ba4b4a42
Fast and robust implementation of shlex.split
...
Also returns position of words in src string which we will need for
keymap parsing.
2023-12-02 14:57:02 +05:30
Kovid Goyal
53980d00f0
a couple more tests
2023-12-01 18:16:22 +05:30
Kovid Goyal
165f1ccfd1
Port the test
2023-11-30 20:06:20 +05:30
Kovid Goyal
716bf714db
Fix a couple of tests
2023-11-30 11:53:09 +05:30
Kovid Goyal
69e3e5c727
Use a boolean rather than an int
2023-11-14 16:35:01 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
...
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.
Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
77140fc798
Fix #6803
2023-11-10 08:49:33 +05:30
Kovid Goyal
52d5a4679f
Graphics protocol: Support for positioning images relative to other images
...
Fixes #6617
2023-10-27 15:27:30 +05:30
Kovid Goyal
defa2e29ac
Always ask for confirmation when pasting text with control codes in it
2023-10-20 13:02:28 +05:30
Kovid Goyal
56963c693e
When pasting in bracketed paste mode and the cursor is at a shell prompt, strip out C0 control codes
...
Some shells incorrectly interpret these allowing escape from bracketed paste mode. Thanks to David Leadbetter for discovering.
2023-10-20 12:17:13 +05:30
Kovid Goyal
4b997a961c
A new option single_window_padding_width to use a different padding when only a single window is visible
...
Fixes #6734
2023-10-20 08:37:45 +05:30
Kovid Goyal
5d5bbe9b96
Add a paragraph on legacy xterm compat for pointer shapes
2023-10-15 21:59:04 +05:30
Kovid Goyal
1693107608
A new escape code to change the shape of the mouse pointer
...
Fixes #6711
2023-10-15 19:57:36 +05:30
Kovid Goyal
1f91250a40
Fix trailing bracket not ignored when detecting a multi-line URL with the trailing bracket as the first character on the last line
...
Fixes #6710
2023-10-13 10:44:58 +05:30
Kovid Goyal
455d0a6048
Dont show hidden sub-commands during completion
2023-10-10 05:41:27 +05:30
Kovid Goyal
13bdb2035c
Merge branch 'pr-fix-reset' of https://github.com/sergei-grechanik/kitty
2023-09-04 07:34:12 +05:30
Sergei Grechanik
63cc5d7e49
Fix erasure of unicode placeholder images on reset
2023-09-03 15:33:30 -07:00
Jake Stewart
6354ef4cee
add tests for python config parser
2023-09-03 16:37:59 +08:00
Kovid Goyal
951951776a
Ensure group_count is never zero in any ImageRef
...
Now group_count means the number of refs pointing to the same image from
that ref onwards. This is needed because we can index the list of refs
at any point when drawing not just at the start of a group.
Fixes #6594
2023-09-02 12:48:44 +05:30
Kovid Goyal
93bb6680c5
flush after run_cli, more logical
2023-08-07 12:37:27 +05:30
Kovid Goyal
1347d1ad47
Let go tests run without blocking on stdio
2023-08-07 10:56:39 +05:30
Kovid Goyal
d6187b5bfc
...
2023-08-07 10:25:20 +05:30
Kovid Goyal
16132d0309
Fix stdio not actually being forwarded
2023-08-05 13:24:25 +05:30
Kovid Goyal
e2915601a4
More robust stdio forwarding in tests
2023-08-05 11:37:39 +05:30
Kovid Goyal
bc4d7f4cb1
Get stdio forwarding working in the PTY tests
2023-08-05 10:47:29 +05:30
Kovid Goyal
88beb58838
Prevent go test output being interleaved with python
2023-08-05 10:15:08 +05:30
Kovid Goyal
395e47cc9e
CI is even slower than I thought
2023-08-04 07:36:36 +05:30
Kovid Goyal
a74e93d241
Increase timeout for child exit on CI
2023-07-30 19:49:48 +05:30
Kovid Goyal
c11d1d3430
Add more integration testing for the transfer kitten
2023-07-30 19:49:47 +05:30
Kovid Goyal
47913a7c1f
Tests for normal mode home dir expansion
2023-07-30 19:49:47 +05:30
Kovid Goyal
995c447435
Get the multi file tests working for the receive kitten
2023-07-30 19:49:47 +05:30
Kovid Goyal
5578e34da8
...
2023-07-30 19:49:47 +05:30
Kovid Goyal
a30687125c
Start on tests for receive kitten
2023-07-30 19:49:47 +05:30
Kovid Goyal
2cae0ab695
Dont wait for cancel response when user denies permission
2023-07-30 19:49:46 +05:30
Kovid Goyal
bb897fa299
Ignore directory mtimes when testing
...
They are flaky on CI for some reason
2023-07-30 19:49:46 +05:30
Kovid Goyal
eecf24b986
Fix registering of mtimes
2023-07-30 19:49:44 +05:30
Kovid Goyal
e60fef3ba1
More tests for send kitten
2023-07-30 19:49:44 +05:30
Kovid Goyal
346a651a48
Add option to control compression modes
2023-07-30 19:49:44 +05:30
Kovid Goyal
84c680266a
Dont check exitcode on ancient python
2023-07-30 19:49:44 +05:30
Kovid Goyal
350af446d3
More tests
2023-07-30 19:49:44 +05:30
Kovid Goyal
39f7f2d7b4
Cant flush response in a parser callback as it can cause recursive parsing
2023-07-30 19:49:44 +05:30
Kovid Goyal
34dfd1881f
Update docs on what is needed for the transfer kitten
2023-07-30 19:49:44 +05:30
Kovid Goyal
15978c9c60
Infrastructure for testing the transfer kitten
2023-07-30 19:49:43 +05:30
Kovid Goyal
42edfa6a47
Prevent ruff from failing because of to be ported test
2023-07-30 19:49:43 +05:30
Kovid Goyal
86a1a40d1d
remove unused code
2023-07-30 19:49:43 +05:30
Kovid Goyal
edc1669ced
Ported tests all pass
2023-07-30 19:49:43 +05:30
Kovid Goyal
bbbc33d4dc
...
2023-07-30 19:49:43 +05:30
Kovid Goyal
b03fa08884
...
2023-07-30 19:49:43 +05:30
Kovid Goyal
9a5b3a7315
Start work on porting rsync roundtrip tests
2023-07-30 19:49:43 +05:30
Kovid Goyal
c84874ca8d
Add tests for the xxhash based hashers
2023-07-30 19:49:42 +05:30
Kovid Goyal
37d9a572ee
Restore a couple of needed functions to the rsync module
2023-07-30 19:49:42 +05:30
Kovid Goyal
25ed0c9c51
...
2023-07-30 19:49:38 +05:30
Kovid Goyal
b83e4d88f4
Implement fast padding-less base64 encode/decode for python
2023-07-30 19:49:38 +05:30
Kovid Goyal
6c79ae4443
Proper parsing of safe_string fields
2023-07-30 19:49:38 +05:30
Kovid Goyal
e05902e8ee
...
2023-07-30 19:49:38 +05:30
Kovid Goyal
55bbf175c6
Port send file mapping tests
2023-07-30 19:49:37 +05:30
Kovid Goyal
da31d21ddb
Port the shell integration tests to use the run-shell kitten
2023-06-26 16:53:08 +05:30
Kovid Goyal
098a38a3a9
Remove rendering via framebuffer for transparent windows with images
...
There is no need for it with the current rendering pipeline. Images are
blended with premult blending.
2023-06-21 16:06:07 +05:30
Kovid Goyal
af724090d2
Add a non-delete test as well
2023-06-14 09:44:51 +05:30
Kovid Goyal
80fb6f0f12
Merge branch 'master' of https://github.com/olzhasar/kitty
2023-06-14 08:08:51 +05:30
Kovid Goyal
4c5f4c4baf
Apparently Python 3.12 no longer raises FileNotFoundError when closing a deleted file
...
Fixes #6360 (I hope) dont have time to actually test with pre-release
python builds
2023-06-14 08:06:47 +05:30
olzhasar
d0a5d1b3a4
Fix misspellings
2023-06-14 03:39:53 +06:00
Kovid Goyal
9f377c5ccb
Cache shader source code loading
2023-06-13 17:58:17 +05:30
Kovid Goyal
750018e5fe
...
2023-05-25 12:25:46 +05:30
Kovid Goyal
cb936c1b5b
Use /dev/null rather than /dev/tty for the test
2023-05-25 12:24:59 +05:30
Kovid Goyal
624007c7aa
Refuse to read image files in /proc /sys and /dev
...
Also, open the image file with O_NONBLOCK to ensure we dont hang opening
a FIFO
2023-05-25 12:17:03 +05:30
Kovid Goyal
d059ddbb07
Only import resource module when actually running the test instead of at import time
2023-05-24 16:59:44 +05:30
Olivier Gayot
430768f38b
Skip crypto test if RLIMIT_MEMLOCK is too low
...
On systems where the max locked memory (a.k.a., RLIMIT_MEMLOCK) is too
low, the crypto test fails with "Cannot allocate memory".
Distros such as Debian and Ubuntu run the test-suite as part of the
build process. This results in failed builds if the build machine itself
does not have a sufficiently high value for RLIMIT_MEMLOCK. That said,
the resulting builds would run perfectly fine when installed on machines
that meet the requirements.
On supported systems, we now check if the RLIMIT_MEMLOCK is high enough
and skip the crypto test if it is not.
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-05-24 13:18:08 +02:00
Kovid Goyal
a2aadd4756
Remove python diff tests as no longer needed
2023-03-27 11:54:34 +05:30
Kovid Goyal
d30091034a
Remove the python diff kitten
2023-03-27 11:46:22 +05:30
Kovid Goyal
1bed92bed1
Cleanup previous PR
2023-03-20 07:42:10 +05:30
usertam
08fa7f19f7
kitty_tests, shell-integration: rework getpwuid() exceptions suppression
2023-03-20 03:31:23 +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
c19ac531cf
Fix some failing tests
2023-03-14 20:40:12 +05:30
Kovid Goyal
29dd2438c9
Port the subseq matcher to Go
2023-03-14 12:29:44 +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
b76b0c61ed
Port custom processor for hints
2023-03-10 10:45:37 +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
8add28de96
Merge branch 'pr-unicode-placeholders' of https://github.com/sergei-grechanik/kitty
2023-03-03 10:55:02 +05:30
Kovid Goyal
00b3437a05
Remove python implementation of SSH kitten
2023-02-28 12:42:30 +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
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
d656017f27
Move SSH askpass implementation into kitten
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
d98504e1a6
Finish porting SSH config file parsing
2023-02-26 08:01:02 +05:30
Kovid Goyal
2b7d6d45df
Finish up config parser port
2023-02-26 08:01:01 +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
ac5298ce76
Finish porting unicode input
2023-02-15 17:42:31 +05:30
Kovid Goyal
53e33a80ba
Start work on porting unicode input kitten to Go
2023-02-14 21:33:21 +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
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
a068e3e655
Fix issues reported by ruff
2023-01-09 15:54:41 +05:30
Kovid Goyal
e2543e8968
Fix #5852
2023-01-04 08:20:04 +05:30
Kovid Goyal
306f9e5735
Prettify URLs before displaying them to the user
2022-12-29 17:04:02 +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
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
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
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
James McCoy
9afd0309fc
tests: Use tempdir for XDG_RUNTIME_DIR
2022-12-21 22:21:48 -05:00
Kovid Goyal
c6360537e5
Try to fix tests failing on Python 3.11
2022-12-16 10:05:05 +05:30
Kovid Goyal
032e01ebf7
...
2022-12-11 20:55:06 +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
f9a22d0bc7
Port ANSI escape code parser to Go
2022-11-25 21:03:09 +05:30
Kovid Goyal
cfc6bd4da5
Native code implementation for expanding ANSI escape codes
2022-11-25 17:33:41 +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
efaf9faa38
Implement edit-in-kitty using kitty-tool
...
Fixes #5546
Fixes #5630
2022-11-17 20:48:20 +05:30
Kovid Goyal
a5a4a1bf8f
Increase timeout in test
2022-11-17 10:02:44 +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
Kovid Goyal
2e07f90baf
...
2022-11-14 15:42:07 +05:30
Kovid Goyal
f945ef8ee8
handle ctrl-c better when interrupting go test
2022-11-14 15:42:06 +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
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
3662efdf80
Nicer handling of python for typecheck
2022-11-14 15:42:02 +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
800dbf1f4d
extra message when tests have failed
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
e3b8de1ac0
Update test for new exe search
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
8796168469
Port code to truncate strings to visual width to Go
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
d84efe105c
...
2022-11-14 15:41:58 +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
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
4575a14873
work on framework for testing completion
2022-11-14 15:41:56 +05:30
Kovid Goyal
b33a684357
...
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
417c8887b9
Start on testing infra for command to JSON serialization
2022-11-14 15:41:47 +05:30
Kovid Goyal
82a0e56eb2
Fix go tests not being excluded correctly
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
14262b158d
Log which go exe is being used to run the tests
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
9d471782dd
Increase some more timeouts
2022-11-03 13:13:14 +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
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
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
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
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
26b8ab9adf
Use a regex for bracketed paste sanitization
2022-09-23 22:18:03 +05:30
Kovid Goyal
b1fa1c9820
Make test a bit more robust
2022-09-21 23:16:34 +05:30
Kovid Goyal
6f147544d2
Add ! to env var serialization test
2022-09-10 07:21:15 +05:30
Kovid Goyal
1559a2e15a
Cleanup previous PR
2022-09-05 21:19:58 +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
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
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
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
89a0c04d19
Fix exec in prewarm forked process sometimes inheriting env vars from grandparent process
2022-08-30 19:03:32 +05:30