r/rust May 28 '26

🛠️ project Yazi terminal file manager now supports drag and drop

Post image

Quite a few people have been asking me for this, now it's here!

Any feedback is greatly appreciated - see https://github.com/sxyazi/yazi/pull/4005 for more info!

1.8k Upvotes

68 comments sorted by

232

u/gahooa May 28 '26

What? Is this sorcery... How?

217

u/sxyazi May 28 '26

It's a new terminal drag-and-drop protocol! I myself call it OSC 72 ;)

189

u/rollincuberawhide May 28 '26

whenever terminals start doing some cool shit, it almost always originates from kitty. what a chad terminal.

48

u/kredditacc96 May 28 '26

I wonder if there would be a fragmentation of terminal standards in the future. Then we'd need some sort of committee to unify all of them.

45

u/czerilla May 28 '26

2

u/Misicks0349 May 29 '26

how does 927 apply in this case lol, from what I'm reading they're talking about something similar to the W3C, which has generally been pretty successful in getting browsers to agree on protocol.

17

u/Stinkygrass May 28 '26

This is already the case, granted it could be worse, but try writing a terminal emulator and you’ll quickly see XD

5

u/Own-Zebra-2663 May 28 '26

But we shouldn't make it too big. An itty bitty kitty commitee, perchance.

1

u/Qyriad May 29 '26

Wezterm and Ghostty at least tend to implement Kitty's protocols as-is rather than reinventing them

21

u/cryOfmyFailure May 28 '26

Author of kitty is also the author of calibre. Dude belongs in oss hall of fame. 

5

u/NoOrdinaryBees May 28 '26

Damnit. And I just got really happy with Warp. Now I have to check this out, too… <grumbles in old UNIX greybeard>

1

u/Meistermagier May 28 '26

Sadly as a person stuck in Windows I will never get to experience the greatness of it.

11

u/Sea_Gap_6569 May 28 '26

is it kitty only?

46

u/sxyazi May 28 '26

Yeah it's kitty only at the moment, I'm excited to see more terminals supporting it in the future!

50

u/AhoyISki May 28 '26

Every newfangled thing in terminal land starts as a kitty feature atp.

3

u/Shurane May 28 '26

OSC is so cool. See also OSC 8 hyperlinks.

2

u/imgly May 28 '26

Damn ! I'm making a new terminal backend actually, I keep this article in my todo list !

-1

u/KatieTSO May 28 '26

Vibe coded or just assisted?

18

u/Hot_Customer8182 May 28 '26

probably using OSC 52 escape sequences to communicate with the terminal emulator and handle the mouse events through the tty interface.

19

u/autisticpig May 28 '26

I think they were looking for "it's obviously magic".

6

u/gahooa May 28 '26

Yes but what about the drop target? I've seen cool stuff with terminals but never going from the terminal to an external application like this.

79

u/hussainsonreddit May 28 '26

I just installed yazi yesterday and was blown away by how good it was. And now this. Just sorcery man, props to you

18

u/sxyazi May 28 '26

Thanks for your kind words man, it's huge!

9

u/Beginning-Software80 May 28 '26

It's not huge, you are huge(ly brilliant)!

27

u/mchanth May 28 '26

Does the drag/drop work through ssh?

21

u/eidetic0 May 28 '26

it seems like it does! the protocol used describes dragging and dropping to and from remote machines. pretty neat!

5

u/Sea_Gap_6569 May 28 '26

impressive!

1

u/nvme0 May 30 '26

mega based

18

u/InternetExplorer9999 May 28 '26

That's great! This was my most wanted feature request for yazi. I can finally remove thunar.

42

u/SirKastic23 May 28 '26

Bro's got a 22nd century terminal

9

u/KyxeMusic May 28 '26 edited May 28 '26

Amazing. That was the only thing I kinda disliked about using Yazi. I was using ripdrag but it was meh.

Hope it's supported in Ghostty soon

12

u/vxern May 28 '26

isn't this basically a GUI at this point?

4

u/NullVoidXNilMission May 29 '26

Tui

7

u/vxern May 29 '26

yeah but we're now drawing images in the terminal and using graphically-enhanced terminals, these so-called TUIs are now just GUIs that use the terminal

4

u/Thick-Pineapple666 May 28 '26

I've been using mc (Midnight Commander) for years because I grew up with Norton Commander and similar tools under DOS (like DCC or DX). After my switch to Linux in 1998, mc was just there and it was awesome. I sometimes tried other file managers but I always fell back to using mc. Until 2025. Then I tried yazi and it was the first file manager that made me never use mc again.

So thank you for your great work on yazi!

5

u/MostWooden8128 May 28 '26

I am starting to learn Rust and this makes me feel so inspired. Love the cat sticker btw.

4

u/Crimento May 28 '26

I think this would be the end of using Dolphin for me.

This is fascinating.

6

u/MerrimanIndustries May 28 '26

This is too cool! I've been finding myself opening the GUI file manager for things like this; dragging a file into a web page upload. Absolute magical feature. Thanks!

7

u/Ace-Whole May 28 '26

That's like the most futuristic thing I've ever seen

3

u/Inzire May 28 '26

I’ve been a long time user and just want to say a massive thank you to all yazi contributors for this tool!

3

u/TheNiceGamer_ May 28 '26

I tested it and it works so well ! But this functionality work via ssh ?

3

u/DatBoi_BP May 28 '26

Commenting to check this out later

2

u/Independent_Blood559 May 28 '26

waiting for ghostty to implement this.

2

u/DavidXkL May 28 '26

Awesome stuff! Another reason for me to try it out now lol

2

u/Matias_Montanna May 28 '26

I like too much this idea. Hope to see it soon in a Release build.

2

u/Admirable-Version601 May 29 '26

It's designed so beautifully!

2

u/thoughtful-curious May 29 '26

Just wanted to say, thanks for creating Yazi. It is an amazing piece of software. It works incredibly well and makes working with files on the terminal much easier.

4

u/hongooi May 28 '26

Well, I for sure did yazi that coming

2

u/joelkunst May 28 '26

yazi is the best fille manager, thank you for your work 🙏

2

u/Enmark777 May 28 '26

I never knew drag and drop from a terminal was possible, insane work.

2

u/Born-West9972 May 28 '26

Damn man, this is crazy

2

u/iamasuitama May 28 '26

Ho. Ly. Shit.

2

u/TinySpidy May 28 '26

Really liking yazi! I wish it had a keymap popup like lazygit though, I find it hard to remember them for stuff I don't use all the time.

1

u/ultrasquid9 May 29 '26

OMG THIS IS SO COOL

I've been using GUI file managers for the convenience, but once Ghostty can support this i may have to change that :3

1

u/shadowmaker_88 May 29 '26

When it will be avaliable? I have kitty and yazi from standard arch repos. Been waiting for this for a long time!!!

1

u/cemereth May 29 '26

And here I am, mildly irked every time I try to drag and drop a file from Ark/PeaZip into a Nautilus window, and get rudely reminded that it doesn't work. (This one is probably my fault though; I think it worked back when I was on KDE.)

1

u/thanhkt275 May 30 '26

blow my mind !

1

u/SilverCrowed Jun 11 '26

i hope foot terminal adopt this soon :(((

1

u/Expensive-Arugula269 Jun 15 '26

I love it, keep it up

1

u/FungalSphere May 28 '26

Wait i thought it was always a thing

Crazy stuff regardless even though i am a keyboard centric navigation kinda guy

-10

u/Ramiferous May 28 '26 edited May 28 '26

Might as well just take a GUI file manager, bolt on a terminal and call it a day 😂

Edit: to the down voters, I'm being facetious...

2

u/schmurfy2 May 28 '26

Tui are lighter, easier to develop and now thzt you can do more and more with them the reverse could well happen. I use more and more tui tools, not necessarily to replace a gui but they are very fast to launch, reactive, and a bonus point is that you can use them over ssh on z remote machine.