 I don't think that there's another Linux YouTuber out there that has done as many videos about file managers and file pickers than I have I've done some many that people might think I'm a little bit obsessed with it and there may be some truth to that I mean cuz really how much energy should one spend on actually talking about file choosers and file managers I spend way too much on it. I'll be honest about that now about six months ago Maybe a little bit longer than that I made a video talking about how file pickers on Linux are terrible and I stick by that that I think that the worst part about Linux that I can even say is that the file pickers are just so bad They're fragmented mess and none of the ones that are used are good in any way they're just varying levels of absolute terrible garbage and That has just been the case forever and it doesn't seem to be something that Anybody's interested in solving and I'm not talented enough to go out and solve it myself So maybe someday that can happen. I'm learning some coding, but we'll see how it goes but anyways the thing is is I though my dream is to be able to use Ranger as my file picker and For years now that dream has been unrealized until today because today my friends I have learned how to make Ranger the file picker for a browser now to be honest It's cute browser So if you can't use cute browser, then I still have no solutions for you But if you are a cute browser fan or if you use cute browser There is a way to make cute browser use Ranger as its file pickers file chooser, whatever you want to call it and That's what I'm going to show you how to do today. It's really really simple and I'm I've spent the whole morning playing with it, and I'm just so happy I'm such a nerd Anyways, let's go ahead and show you how to do this. So let's go ahead and go to the terminal here and we'll go into my dot files and Then CD into cube oops if I can actually type this keyboard is so bad cute browser I bring I blame the keyboard when I miss type stuff. Yes, that's the what that's just the way it is anyways Anyways, what you need to do in order to enable this obviously you'll need Ranger installed Okay, so you can't do this without Ranger and you'll need to figure out what your default terminal is So obviously if you probably know this because you probably use your terminal all the time if you use Ranger But you need to actually go through and figure out what the syntax for calling that terminal is from a prompt So for example, if you use alacrity, you'll need the dash E flag now The deep the dash E flag is pretty much standard for most terminals I know most of them use it But just check with your the man page of your terminal to make sure that that's the flag You'll need to use in order to open up a terminal with a program already running I'm using alacrity because it has a special feature that allows you to define a class name for that specific terminal So when I open up Ranger using the file picker now and keep browser It has the class of Ranger that way I can define a rule in DWM that allows it to be floating So that's really cool as well. That's not something that I that any other terminal does as far as I'm aware kitty Might do that. I'm not sure but I know Ranger does do it and it's awesome So here are the lines you need you need config dot set and then parentheses quotation marks file select dot handler quotation marks comma quotation marks external quotation marks parentheses Okay, and then you need this one here. I'm not reading all this out Anyways, the the commands here I'll copy them down in the video description below so you can just copy and paste Obviously the only thing you'll need to change if you're using a different terminal Is this here? And then if you're not using alacrity, you'll need to get rid of this these two Parts here because like I said, this is alacrity specific And then save this you add those two lines It can be anywhere in the config dot py file and obviously you'll need to be using the config dot py config file for cute browser in order for this to work if you're using the The graphical gooey settings manager that doesn't use config dot py you won't be able to do this as easily You probably there's probably settings in there for you to to manage this. I'm not sure I never used that so You have to have the config dot py enabled in order for this to work Okay, so once you've done that and you've pasted these lines and Save that file and then we can go through and open up cute browser So what better place to do this than on unix porn? Let's go ahead and upload a file here. So we just go to image and video upload and then voila We have ranger as our file picker. So we'll go ahead and go to my pictures here It'll work And then when just found the file that you want to upload hit enter and there you go. That's how you upload with with ranger so there is a way to Go through and upload multiple files as well And it's just how you'd expect when you want to select multiple files in ranger You use a spacebar to select them and then you hit enter now red It doesn't let you upload multiple files, but that's how you do it on a site that you needed to upload multiple files to And then you just enter and it would upload them now the thing is this is not perfect So in my brief time of using this this morning I've experienced some errors. So sometimes you'll get like a 403 error or something Or it will say the renderer crashed. I'm assuming that's either a bug with cute browser or a bug with ranger I'm not sure what that is. I'm gonna file it on their github later on when I see it again But just to keep that in mind that it's not a perfect solution Right and there's some Bugs that still need to be worked out. This is a fairly new feature. It just came out and cute browser 2.0 I think last year maybe the year before i'm not sure now Time flies just so fast. So it's not perfect I I've also noticed that sometimes ranger doesn't like navigating in this mode for whatever reason and it'll just show You know files in your directories. I've had that happen a couple times Just closing ranger and opening it back up with the proper steps to you know, press upload or whatever and It will open up the file picker, which is ranger and it will it should fix that problem as well So there are like I said, there are some bugs, but otherwise This is amazing It feels like such a weird thing to care about But this is a reason enough for me to go back to using cute browser because the the file picker for Firefox is horrible just like all the other gooey file manager file pickers are And I upload in a files that this is something that is going to affect me every day It's going to make me happy just to see this every day because I like rangers so much more than that generic gtk file picker that uh firefox uses and It's just one of those things that will improve or at least make my linux life a little bit happier and I think that that that's a good thing. I really wish that I could get this working in firefox though Because firefox has good ad blocking or at least you can add good ad blocking a cute cute browser Not so much. Anyway, so that is it for this video If you have questions, you can leave those in the comment section below Make sure you like and subscribe if you haven't already You can follow me on twitter at the linux cash You can support me on patreon at patreon.com slash linux cash before I go I'd like to take them think my current patrons Devon chris east coast web gen 2 is fun too patrick l primus sit a marcus maklin jackson I'm the tool steve a michael arson and emma taas merrick camp josh li day dog the bsd's rock and peter a Thanks everybody for watching. I'll see you next time