Comments (44)
Support for kitty is landing in v1.0.49!
from fig.
You no longer need to be on a beta version of either Fig or Kitty. However, currently the integration is a bit tricky to setup which is why it is hidden by default.
Instructions for those who are brave enough to attempt it:
- Run
fig settings integrations.experimental true
and then restart the Fig app - Click the Fig menubar icon > Integrations > Kitty > "Attempt to Install"
- Go to a terminal and run
fig debug ime enable
. A System Preferences window will appear and prompt you to install a third party Input Method. - Run
fig debug ime select
- Restart Kitty and autocomplete should appearπ€
from fig.
Any update on when this is going to land?
from fig.
The other day a mailing got sent out that there is beta Kitty-support. How can one enable this? I've already set Fig to download the Beta-versions.
This is what was in the email:
from fig.
i reinstalled fig, after that it was possible to install the plugin for kitty, it works now π
from fig.
We are waiting for the next release of Kitty since our integration require a kitty.conf parameter (watcher
) that is not supported currently.
I misjudged how close the newest build of Kitty would be take to be released. But rest assured, everything else is ready to go for Fig to work with Kitty.
from fig.
Yes, this release of kitty is delayed because of waiting for
kovidgoyal/kitty#3948 to mature.
But, note that nightly builds of kitty are available if needed.
from fig.
FYI, the Kitty dependency mentioned above was closed and released earlier today:
kovidgoyal/kitty#3948 (comment)
from fig.
We are going to do a sprint on this next week. I believe that I've figured out a reliable way install (and enable) the input method.
from fig.
@mschrage You rock! Works like a charm!!!
from fig.
Thanks again for helping adding the watcher
parameter to Kitty @kovidgoyal. It makes our integration much more robust.
from fig.
We still need to push a new build @jim-at-jibba!
from fig.
Looks like I found fig just at the right time!
Thanks for the work on this, @kovidgoyal @mschrage
from fig.
We are going to do a sprint on this next week. I believe that I've figured out a reliable way install (and enable) the input method.
That sounds promising! Thanks for all your hard work β€οΈ
from fig.
@mschrage the instructions worked fine for me! Seems to be working as expected so far ππ»
Thank you!
from fig.
@mschrage as I understood, it's not supposed to be experimental any more. Although I did not try enabling/installing Kitty support as per the instruction you're referring to, it started working out of nowhere. Before I surely tried reloading terminal, shell, tmux, laptop, triple checked all the .zshrc and such, it did not work, but yesterday it just suggested me some autocomplete. So, it'll remain a mystery why it did not start right away. π€·
from fig.
For those who find this in the future, the command to enable Fig autocomplete in Alacritty is fig install --input-method
from fig.
Some helpful links to Kitten API:
- Remote Control
- List all window
- kitty.conf located in
~/.config/kitty/kitty.conf
- Documentation on the remote control protocol
Enabled allow_remote_control true
in kitty.conf and the run kitty @ ls
to view all windows and additional metadata.
from fig.
Alright I think I've figured out a way to get the information we need without polling!
- Update the user's kitty config to set
allow_remote_control true
- Add
--watcher ~/.fig/tools/kitty-integration.py
to~/.config/kitty/macos-launch-services-cmdline
- Write a watcher in
kitty-integration.py
that notifies the macOS app when the focus changes.
def on_resize(boss, window, data):
# Here data will contain old_geometry and new_geometry
def on_focus_change(boss, window, data):
# Here data kill contain focused
def on_close(boss, window, data):
# called when window is closed, typically when the program running in
# it exits.
from fig.
Ah so close! This automatically sets up the watcher for the first window, but doesn't for subsequent tabs and sessions. We could potentially define a custom startup_session
for this? (I think this is more likely to collide with user's existing customizations.)
from fig.
You are welcome!
from fig.
Thanks for letting me know @chrismilleruk
from fig.
Hey,
Now that this is done show Fig work in Kitty? I still get told its not suported
from fig.
Ace, sorry for jumping the gun. Just wanted to check I had not missed anything.
Thanks
from fig.
@mschrage also really looking forward to kitty support!
from fig.
hi, I updated to beta version, and saw an option for kitty integration. but it's saying that could not install the input method. could you let us know what should we do?
from fig.
Run fig debug ime status
and share the output here?
from fig.
i also tried the kitty nightly with the beta of fig and no success,
$ fig debug ime status
input method is not running.
from fig.
@tomsvogel can you try running the following commands one at a time and share the output here?
fig debug ime register
fig debug ime enable
fig debug ime select
fig debug ime status
from fig.
$ fig debug ime register
Registered input method!
$ fig debug ime enable
Enabled input method!
$ fig debug ime select
An error occured when selecting input method: The operation couldnβt be completed. (OSStatus error -50.)
$ fig debug ime status
input method is not running.
from fig.
Could you try restarting the macOS app and then running fig debug ime select
again? @tomsvogel
from fig.
$ fig debug ime select
Selected input method!
from fig.
~/.dotfiles on ξ master [β!+] took 14s οΌ 76%
Ξ» fig debug ime select
Input method is already selected!
~/.dotfiles on ξ master [β!+] οΌ 76%
Ξ» fig debug ime status
Input source is not enabled
from fig.
Seems like there is still some room to improve the install process - the TextInputServices APIs are super finicky.
from fig.
I followed all the instructions above but fig still says kitty is not supported. I upgraded kitty with brew to latest version. I reinstalled fig. No luck. Fig works in iTerm but wish I could get it working in Kitty (FYI - fig also not working in Alacritty)
from fig.
@kingluddite you tried kitty knightly and fig beta?
from fig.
@kingluddite you tried kitty knightly and fig beta?
Not yet. @tomsvogel Is there a link to the fig beta install? Can't seem to locate it.
I found that the kitty nighly can be installed with:
$ curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin \
installer=nightly
from fig.
I got a "Learn More" button on a message when running the debug command, which gave me a 404 on the fig site.
Other than that, following the instructions was easy and everything is working as expected. I'm really happy to be able to use this with Kitty!
from fig.
A System Preferences window will appear and prompt you to install a third party Input Method.
I have some questions about this. After downloading the third-party input method, don't you need to apply it? I don't see it in the list.
from fig.
Worked well for a few days and then stopped. tried repeating with no success :(
from fig.
@pistazie run fig doctor --verbose
from fig.
thanks @mschrage in my case the issue was that Secure keyboard input disabled
was not disabled.
I fixed it using your documentation and fig+kitty
are awesome again.
from fig.
Here's the output of my fig doctor --verbose
and still, it does not work in kitty:
Let's check if you're logged in...
β Logged into Fig
Let's check your dotfiles...
β .bashrc contains valid fig hooks
β .profile contains valid fig hooks
β .zshrc contains valid fig hooks
β .zprofile contains valid fig hooks
Let's make sure Fig is running...
β Fig bin exists
β PATH contains ~/.local/bin and ~/.fig/bin
β Fig Integration
β Fig is running
β Fig socket exists
β Daemon
β Figterm socket
β Insertion lock does not exist
β PATH and PseudoTerminal PATH match
Let's check if your system is compatible...
β OS is supported
Let's check fig diagnostic...
β Installation script
β Compatible shell
β Fig app installed in the right place
β Autocomplete is enabled
β Fig CLI path
β Accessibility enabled
β Secure keyboard input disabled
Let's check your terminal integrations...
β VSCode integration is enabled
Fig still not working? Run fig issue to let us know!
Or, email us at [email protected]!
from fig.
@smileart have you followed the steps outlined here? #26 (comment)
from fig.
Related Issues (20)
- [email protected] HOT 1
- macos 14.2.1
- bug: fig daemon spamming logs resulting in high disk usage in /var/log/daemon.log
- Sunset HOT 22
- Do I need an aws login to use codewhisperer or can i use my old fig account HOT 2
- Fig Scripts Replacement HOT 4
- Why Not Fork The Fig? HOT 3
- Just migrated to CodeWhisperer and it doesn't work HOT 6
- bug: $USER env var value can be empty HOT 1
- CodeWhisperer not work with intel chip (Sonoma 14.1.1) HOT 3
- Missing Features CodeWhisperer HOT 3
- fig export error HOT 1
- Terminal support: Unsupported terminal, if you believe this is a mistake or would like to see support for your terminal, run `fig issue` HOT 1
- IBus Env Check: IBus environment variable is not set HOT 2
- zsh /home/aliali/.zshrc integration check: /home/aliali/.zshrc does not source post integration last HOT 2
- MallocStackLogging error message keeps writing on command line
- installing fig HOT 1
- Fig never works after system starts. HOT 2
- bug: fig-daemon.service restarts indefinitely HOT 7
- bug: Goland plugin unisntall keeps coming back
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fig.