-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite zsh integration #4386
Rewrite zsh integration #4386
Conversation
Note: - Very lightly tested. - Docs not updated.
The same disclaimer as in #4377 applies here. I personally don't need these changes. If you don't like them, it won't upset me if you close or ignore this PR. |
I've benchmarked the new and the current integration code on Linux x86 and Darwin arm64. The impact on startup lag (the delay when you start a new shell) went down about by 2x on Linux and by at least 100x on Mac (the latter basically went down to zero). The impact on command lag (the delay every time you press enter) went down by 5x on Linux and 20x on Mac. I think at the point performance impact is not a serious concern. |
I have merged, but I do have one concern. Namely that this leaves us |
Have you tested it? I tested it very little. By the way, does Kitty have features that depend on extracting the command between OSC 133 B and C? They won't work with zsh because of right prompt and zle redisplay. As far as zsh goes, OSC 133 B and OSC A with k=s aren't useful. |
How about |
On Thu, Dec 23, 2021 at 06:54:44AM -0800, Roman Perepelitsa wrote:
Have you tested it? I tested it very little.
Yes, it works fine with my setup. And reviewing the code it looks logically OK. Further testing will have to rely on kitty users.
By the way, does Kitty have features that depend on extracting the command between OSC 133 B and C? They won't work with zsh because of right prompt and zle redisplay. As far as zsh goes, OSC 133 B and OSC A with k=s aren't useful.
No, kitty uses only A and C, see the notes for shell developers section
of shell-integration.rst.
As for zsh-kitty-integration its fine by me personally, but wont that
annoy people that are tab completing zsh? I dont knwo what zsh's
restrictions on autoloaded function names are, but if we can start it
with a period or underscore or hyphen or something like that, it would
be best I think.
|
We can unfunction it. I'll send you a PR later today. |
Sent #4388. |
Unrelated to the zsh integration: |
Note: