Commit Graph

599 Commits

Author SHA1 Message Date
Kovid Goyal
668783ba1c
Use a version check when skipping bash test 2022-02-23 18:27:20 +05:30
Kovid Goyal
03f9f29ce4
DRYer 2022-02-23 18:14:40 +05:30
pagedown
9c05481f14
... 2022-02-23 20:05:30 +08:00
pagedown
c0f6201ac3
Add fish shell integration tests 2022-02-23 19:55:19 +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
e28aae620a
Add tests for reset of cursor shape when running commands 2022-02-23 07:48:42 +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
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
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
711f8b024e
Properly sanitize pagerhist when returning as plain text 2022-02-15 22:11:57 +05:30
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
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
b5a2f94185
The open_actions() test needs options set 2022-01-24 15:21:32 +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
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
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
Kovid Goyal
362c4147e4
... 2022-01-08 12:21:55 +05:30
Kovid Goyal
1454af2d41
macOS: Allow customizing the launch actions 2022-01-07 18:43:07 +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
e45697f78a
Fix a regression that broke rendering of unicode regional indicators
At some point, unicode regional indicators became combining chars in the
unicode standard, which broke the handling of them in draw_codepoint().
The fix has the added advantage of improving performance in the common
case by only checking for combining chars. The flag check happens only
if the first check matches.

Fixes #4407
2021-12-31 09:28:47 +05:30
Kovid Goyal
8699f90fa4
Now have sphinx types on dev machine 2021-12-23 10:13:16 +05:30
Kovid Goyal
62dbc1129c
When setting the OS Window title strip out CSI escape codes
Fixes #4325
2021-12-08 16:04:23 +05:30
Kovid Goyal
0c274a9a0b
Parse actions on demand
This removes the startup cost of parsing hundreds of default actions
when action_alias or kitten_alias are used. Although the cost is on the
order of 1ms, this design feels cleaner and gives nicer debug config
output.
2021-11-29 21:51:42 +05:30
Kovid Goyal
16b4a4fa80
Forgot to change test for new zsh shell integration code 2021-11-27 07:49:32 +05:30
Kovid Goyal
2ca13e886a
Avoid cyclic infinite recursion
Note that this means that any alias is only expanded once per action
2021-11-23 15:36:58 +05:30
Kovid Goyal
a97a05b1ec
Allow action_alias to work with any action 2021-11-23 14:43:36 +05:30
Kovid Goyal
ee2520e036
Also prevent infinite recursion in kitten_alias 2021-11-23 07:53:40 +05:30
Kovid Goyal
d7f569b341
Add a test for recursion 2021-11-22 22:54:21 +05:30
Kovid Goyal
89069407d2
Make action_alias recursive 2021-11-22 22:15:04 +05:30
Kovid Goyal
ec5165d958
Fix action_alias not working when used with arguments 2021-11-22 21:41:55 +05:30
Kovid Goyal
aa4fa4cc85
Allow defining aliases for more general actions, not just kittens
Fixes #4260
2021-11-22 19:52:43 +05:30