Passing command keys to Neovim #3673
Unanswered
notahat
asked this question in
Feature Requests, Ideas
Replies: 1 comment
-
|
Ghostty plans on being configurable by the command line but as is this is currently not possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks.
Congratulations on the 1.0 release, and thanks for all the hard work that has obviously gone into it. Looks really great so far! The performance, the sensible default config, and the quality font rendering are all impressive.
This post is a feature request for a thing I use in Kitty that (I think) Ghostty can't do right now: passing Mac command keys through to Neovim, but only when Neovim is open.
This is particularly useful for making command-X, command-C, and command-V work with the system clipboard in both the shell and Neovim.
(To be clear: I'm pretty sure I can configure Ghostty to always pass Command keys through by removing the built-in keybinds for them. It's the doing it only when Neovim is open that I think Ghostty can't do currently.)
I realise this might be a niche feature, but it at least aligns with Ghostty's goal of providing a rich set of terminal features, and might be something that wasn't on your radar before. ❤️
So how does Kitty handle this?
The Kitty docs have the recipe, but I'll describe my setup here for reference:
First, I get Neovim to tell Kitty when it's open in my Neovim config:
Then I tell Kitty to not handle the keys I want to pass through when
in_editoris set by doing this inkitty.conf:Then I can set up Neovim key mappings like this:
Beta Was this translation helpful? Give feedback.
All reactions