 Hey everybody welcome back to the channel today I'm going to be talking about how you can get drag-and-drop functionality from Ranger into whatever app you want to drag-and-drop to now if you don't know Ranger is a terminal-based file manager and By default there's no way to transfer Files out of Ranger by drag-and-drop with your mouse now I'm on record saying I'm trying to get rid of my mouse. I don't particularly like using my mouse I would like to use my keyboard for everything, but many web applications like Google Drive Dropbox a lot of these storage applications and stuff require you to be able to drag-and-drop things from your file manager into your web browser now Obviously you could use a file picker, but a lot of the times it's just easier to drag-and-drop something So this drag-and-drop functionality has actually kind of kept me having to use a GUI file manager in this case I use Nemo and Really that's kind of the only reason why I continue to use GUI file managers because they oftentimes find myself having to drag And drop something from one place to another now There is a very easy solution to this so this video shouldn't actually be that long. Let's go ahead and talk about how you could do this So in order to get drag-and-drop on Ranger you have to install a program called dragon, which is this right here now It's a really small program. It looks like it's written in C and a Little bit of shell I'm guessing it's mostly C and It's still in development. So there's been some recent activity on it But the most recent actual firm release was in 2019, but it seems to work just fine Now in order to install this you have to open up a terminal so let's go ahead and open up a terminal here and Once you've opened up a terminal you can get clone this repository here So we just copy this open up the terminal again And I always get do all my get things in a folder called get things and within my Downloads folder so I do get clone and then copy and paste that and I've already done this so you just hit enter on that and It will go through and it will clone that into that directory You can see it into Dragon and then you just do LS and then you just want to do make Install now. I've already done this. So I'm not going to do it again But it that's literally all you have to do in order to get this to work And once you've done that Then you want to go through and add this line right here. Let me zoom in here so you can actually see This line right here, you want to add that to your RC.com. So if we if I CD oops Oops, I CD into my dot config file Let's zoom in here. Oops, so you can actually see Dot config Ranger and then them into my RC.com and then at the bottom here I've actually already done this. So it's this line right here What you're basically doing is you're mapping command D to the Dragon program Okay, now let's take a look at what this looks like in practice. So let's go ahead and jump into a different tag here Now let's say I want to transfer this file right here, which is I'm not actually sure what it is I'm not actually getting a preview for some reason right now. It doesn't matter. It's it's gonna be a wallpaper of some sort But let's say I want to take this and transfer into Google Drive Now, obviously I could go through hit new upload and I'd get a file picker I don't want to have to go through and do that. What I want to do is be able to drag and drop this between them So to do that I hit control D. Oh I have to have make sure I actually um Have the right window. So Ranger has to be the active window in order for this to work So control D and then what you see is up here in the top Corner you actually get a representation of the file So you want to take that and actually drag it into Google Drive and it will go through and Upload the whole thing. I actually was focused on the wrong thing. I wasn't focused on the picture itself. So I Actually ended up dragging the whole folder of city porn into this Drive here so I can actually try this again. So it's actually the right thing so control D and then we can drop that there and We'll see that it shows up here in just a second and Yep, that's right. That's it right there. And that's how you do it. That's literally all there is I've been looking for a solution for this for quite a while and I'm astonishing. I'm astonished at how easy it was. So I know this was a short video But if you need drag and drop functionality and you want to make Ranger your default file manager This is one more step towards making it have that functionality that maybe you don't always want to have But it's good to have in case you need it So thank you for watching. Make sure you follow us on Twitter at the Linux cache You can follow us on Facebook at the Linux cache You can also support us on patreon at patreon.com slash Linux cast before I go. I'd like to take a moment to thank our current patrons Devon Marcus Meglin American camp. Thank you for your support. Thanks everybody for watching. I'll see you next time