Coder Social home page Coder Social logo

Comments (44)

mschrage avatar mschrage commented on August 23, 2024 18

Support for kitty is landing in v1.0.49!

from fig.

mschrage avatar mschrage commented on August 23, 2024 16

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:

  1. Run fig settings integrations.experimental true and then restart the Fig app
  2. Click the Fig menubar icon > Integrations > Kitty > "Attempt to Install"
  3. 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.
  4. Run fig debug ime select
  5. Restart Kitty and autocomplete should appear🀞

from fig.

magus avatar magus commented on August 23, 2024 4

Any update on when this is going to land?

from fig.

risc12 avatar risc12 commented on August 23, 2024 4

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:
Screenshot 2021-11-22 at 11 30 29

from fig.

tomsvogel avatar tomsvogel commented on August 23, 2024 4

i reinstalled fig, after that it was possible to install the plugin for kitty, it works now πŸŽ‰

from fig.

mschrage avatar mschrage commented on August 23, 2024 3

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.

kovidgoyal avatar kovidgoyal commented on August 23, 2024 3

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.

chrismilleruk avatar chrismilleruk commented on August 23, 2024 3

FYI, the Kitty dependency mentioned above was closed and released earlier today:

kovidgoyal/kitty#3948 (comment)

from fig.

mschrage avatar mschrage commented on August 23, 2024 3

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.

kingluddite avatar kingluddite commented on August 23, 2024 3

@mschrage You rock! Works like a charm!!!

from fig.

mschrage avatar mschrage commented on August 23, 2024 1

Thanks again for helping adding the watcher parameter to Kitty @kovidgoyal. It makes our integration much more robust.

from fig.

mschrage avatar mschrage commented on August 23, 2024 1

We still need to push a new build @jim-at-jibba!

from fig.

Liquidmantis avatar Liquidmantis commented on August 23, 2024 1

Looks like I found fig just at the right time!

Thanks for the work on this, @kovidgoyal @mschrage

from fig.

matsdahlin avatar matsdahlin commented on August 23, 2024 1

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.

matsdahlin avatar matsdahlin commented on August 23, 2024 1

@mschrage the instructions worked fine for me! Seems to be working as expected so far πŸ‘ŒπŸ»
Thank you!

from fig.

smileart avatar smileart commented on August 23, 2024 1

@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.

mschrage avatar mschrage commented on August 23, 2024 1

For those who find this in the future, the command to enable Fig autocomplete in Alacritty is fig install --input-method

from fig.

mschrage avatar mschrage commented on August 23, 2024

Some helpful links to Kitten API:

Enabled allow_remote_control true in kitty.conf and the run kitty @ ls to view all windows and additional metadata.

from fig.

mschrage avatar mschrage commented on August 23, 2024

Alright I think I've figured out a way to get the information we need without polling!

  1. Update the user's kitty config to set allow_remote_control true
  2. Add --watcher ~/.fig/tools/kitty-integration.py to ~/.config/kitty/macos-launch-services-cmdline
  3. 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.

mschrage avatar mschrage commented on August 23, 2024

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.

kovidgoyal avatar kovidgoyal commented on August 23, 2024

You are welcome!

from fig.

mschrage avatar mschrage commented on August 23, 2024

Thanks for letting me know @chrismilleruk

from fig.

jim-at-jibba avatar jim-at-jibba commented on August 23, 2024

Hey,

Now that this is done show Fig work in Kitty? I still get told its not suported

from fig.

jim-at-jibba avatar jim-at-jibba commented on August 23, 2024

Ace, sorry for jumping the gun. Just wanted to check I had not missed anything.

Thanks

from fig.

hakamadare avatar hakamadare commented on August 23, 2024

@mschrage also really looking forward to kitty support!

from fig.

sandangel avatar sandangel commented on August 23, 2024

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.

mschrage avatar mschrage commented on August 23, 2024

Run fig debug ime status and share the output here?

from fig.

tomsvogel avatar tomsvogel commented on August 23, 2024

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.

mschrage avatar mschrage commented on August 23, 2024

@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.

tomsvogel avatar tomsvogel commented on August 23, 2024
$ 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.

mschrage avatar mschrage commented on August 23, 2024

Could you try restarting the macOS app and then running fig debug ime select again? @tomsvogel

from fig.

tomsvogel avatar tomsvogel commented on August 23, 2024
$ fig debug ime select              
Selected input method!

from fig.

sandangel avatar sandangel commented on August 23, 2024
~/.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.

mschrage avatar mschrage commented on August 23, 2024

Seems like there is still some room to improve the install process - the TextInputServices APIs are super finicky.

from fig.

kingluddite avatar kingluddite commented on August 23, 2024

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.

tomsvogel avatar tomsvogel commented on August 23, 2024

@kingluddite you tried kitty knightly and fig beta?

from fig.

kingluddite avatar kingluddite commented on August 23, 2024

@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

source

from fig.

dbowling avatar dbowling commented on August 23, 2024

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.

liby avatar liby commented on August 23, 2024

@mschrage

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.
image

from fig.

pistazie avatar pistazie commented on August 23, 2024

Worked well for a few days and then stopped. tried repeating with no success :(

from fig.

mschrage avatar mschrage commented on August 23, 2024

@pistazie run fig doctor --verbose

from fig.

pistazie avatar pistazie commented on August 23, 2024

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.

smileart avatar smileart commented on August 23, 2024

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.

mschrage avatar mschrage commented on August 23, 2024

@smileart have you followed the steps outlined here? #26 (comment)

from fig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.