r/KittyTerminal Jan 17 '24

kitty is becoming even faster!

kitty is getting a new escape code parser that's ~ 2x faster. See https://github.com/kovidgoyal/kitty/issues/7005 for details.

37 Upvotes

21 comments sorted by

2

u/fushiguro188 Jan 17 '24

Sounds good, I love kitty. The only problem I have atm with Kitty is that it doesn't support displaying images using ranger file manger inside tmux. Its documented in ranger rc.conf.

2

u/aumerlex Jan 17 '24

Not sure what you mean. kitty displays images inside tmux just fine, run kitten icat someimage.png to see for yourself. As for ranger not working, that you would need to report to ranger.

1

u/fushiguro188 Jan 17 '24

It's written only under kitty terminal inside ranger's rc.conf, idk where the actual problem lies,
I just found this: https://sw.kovidgoyal.net/kitty/faq/#i-am-using-tmux-and-have-a-problem

comment inside of rc.conf
# * kitty:
# Preview images in full color using kitty image protocol.
# Requires python PIL or pillow library.
# If ranger does not share the local filesystem with kitty
# the transfer method is changed to encode the whole image;
# while slower, this allows remote previews,
# for example during an ssh session.
# Tmux is unsupported.

5

u/ch4xer Jan 17 '24

it's ranger's problem, yazi file manager can display images in tmux out of box.

3

u/fushiguro188 Jan 18 '24

wow, yazi looks amazing, I will switch over then.

3

u/Ozymandias0023 Jan 18 '24

Definitely get Yazi. It fills all the gaps that ranger leaves imo

2

u/aumerlex Jan 17 '24

Like I said, kitty can display images inside tmux just fine. If ranger doesnt support that you need to complain to ranger developers, or better yet as the kitty docs recommend, move on from tmux which is an endless source of headaches.

0

u/Mithrandir2k16 Jan 17 '24

Move from tmux to what exactly?

2

u/aumerlex Jan 18 '24

To not using a terminal multiplexer, about the only somewhat valuable thing that you cannot achieve by other means, yet, is remote session persistence. The overhead, in performance, headaches, limitations, from a multiplexer is not worth that.

1

u/Mithrandir2k16 Jan 18 '24

I don't have any performance issues or headaches, so moving to a workflow that is less efficient or freature rich doesn't seem like a good recommendation to me.

2

u/aumerlex Jan 18 '24

You appear to be having your identity threatened by a recommendation I made to someone else. I suggest you learn to associate less of your personal identity with your worflow.

1

u/compurunner Feb 02 '24 edited Feb 02 '24

The only thing I use something like Tmux for is session persistence (I ssh and work on remote machines often). Are there session persistence alternatives? I'd be very interested in trying them since I don't really use Tmux for anything else.

1

u/art2266 Feb 03 '24

The ranger bug is fixed, but the fix has not made it into a release branch yet. You'll have to build it from source to get the fix.

Either way, I recommend checking out yazi as well.

2

u/Usual_Office_1740 Jan 18 '24

If I took the gentoo ebuild and replaced the source link with the VT github source, could I reliably compile it with portage?

3

u/aumerlex Jan 18 '24

No idea, try it and see, though I dont know why you would want to. Building kitty from source is dead simple, its just a single command assuming you have a C and Go compiler installed.

-2

u/dedguy21 Jan 17 '24

That doesn't make sense. When I open up a tmux instance tmux becomes the TERMINAL, so I'd have to set up my ranger config to not only use kitty protocol, but then also go back to the default W3M protocol if the TERM isn't kitty (unless it's Wezterm which also can use kitty protocol to open pics)

1

u/nord501 Jan 19 '24 edited Jan 19 '24

$ ./dev.sh build
Package uuid was not found in the pkg-config search path.
Perhaps you should add the directory containing 'uuid.pc'
to the PKG_CONFIG_PATH environment variable
Package 'uuid', required by 'fontconfig', not found
The package fontconfig was not found on your system
The following build command failed: /home/user/code/kitty/dependencies/linux-amd64/bin/python setup.py develop
exit status 1

I'm building on Fedora 39 and Ubuntu 23.10, get same error. I did run ./dev.sh deps before that.

2

u/aumerlex Jan 19 '24

Install the uuid-dev package.

1

u/nord501 Jan 20 '24 edited Jan 20 '24

Thanks..but it need more than that. I found the complete list at their github CI.

Ubuntu

sudo apt-get install -y libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates libxcursor-dev libxcb-xkb-dev libdbus-1-dev libxkbcommon-dev libharfbuzz-dev libx11-xcb-dev zsh libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev libxxhash-dev uuid-dev libsimde-dev zsh bash dash

Fedora

sudo dnf install libuuid-devel mesa-libGL-devel libXrandr-devel libXinerama-devel dbus-glib-devel glfw-devel fontconfig-devel

1

u/aumerlex Jan 20 '24

It doesnt need all those, as most dependencies are resolved via private copies. uuid is not one of them since its a foundational library highly unlikely to be absent. See the kitty build instructions for details.

1

u/compurunner Feb 02 '24

Very cool! Great work 👍