 Okay, so this video is going to be on URL view, which is a very nice terminal tool. I only recently ran across. I wish I had run into it earlier. So the idea behind it is, so there are a lot of times where you have like links on your screen or links in the terminal in different places. And it's always sort of a pain in copying and pasting them into a browser or doing whatever you want with them. URL view is a nice little tool that sort of makes that easier. So the basics are, well, let me just show you how it works. So again, the basics, let's say we have some output on the screen. I'm just going to output my website. So here we have a couple of links here and let's say I want to follow one of them. Now what you can do with URL view is you just take any kind of output and you can just pipe it straight to URL view. And what URL view does first is actually takes that text and it finds all the links in it, all the URLs. And then you can go up and down with Vim keys or arrow keys to choose which one you actually want. So let's say I want this one. You can also, once you press enter, you can modify it if you want to add something onto it or whatever. But after that, it's going to take the link and feed it to a URL handler. I'll talk about mine in a second, but mine is, so here we have our nice little link and that's all we have to worry about. So it's a totally mouse free way of getting links off the terminal. Now, of course, I've done here, I've catted something into URL view. That's probably not what you're going to be doing. But you can basically take what you have in your screen in Vim or MUT or another terminal application and put it into URL view and get the kind of things you want. So I said I'll show you how that works. I'll show you how to set that up in a second. But let me show you how a URL view actually works. So it's really just a parser that finds individual links. But I'm opening up the config file for it now, just .url view. What it actually does is once it finds the link and once you select one, it actually then has to look for another script or it has to decide what to do after that, right? So I've actually made my own script called WebView that basically decides how to handle URLs because I don't want them all opening up in the browser. Let me show you what I mean by that. So let me go ahead and go to WebView. So WebView is this nice little script I made that whenever I use URL view, it is using this thing. So all this script does is it takes the extension and based on the extension, it's going to do something a little different. So the reason I did this is sometimes, let's say I'm like using my RSS reader, which is in the terminal. Sometimes it has links to images. Now I don't want to open those images up in a browser. That's a waste of time. So what I have it do is I just have it sort of download them in my image viewer, which is fair. Or if I have a GIF or a movie file that I'm linked to, it just opens it in MPV because I don't want to actually go to the web page for that. And it also just W gets some things that if it's like MP3 file, I usually just want that downloaded or PDF file. I just have it W get it. Everything else is just going to open it in the browser. So anyway, that was a lot of talking, but let me just show you it in action. So I actually just emailed myself. So this is MUT. So I actually just emailed myself this little email with a bunch of links in it. So we can see that there's an image, there's a GIF, there's a PDF, and then there's the actual link to a website. So I've set it up in MUT. So whenever I type in capital U, I get URL view. So let me click on some of these. So if I click on just the image, I don't want it to open up a browser. It's just going to open up fast. So there it is. There's the image that we can download. Well, technically it's already downloaded, but if you want to save it in case you don't know how fail works, you just press S and now it's saved. So I can download, let's say the PDF, or no, that was the GIF, but whatever. So there's our GIF. It's running in MPV. It's actually running on repeat. And we'll go ahead and get the CV, and that's going to actually output, yeah. So that outputs right into the home directory. Okay, so that's how you get different files with URL view. So how do I actually set this up in MUT and other programs? It actually isn't too difficult. I'm going to put the links to this in the video description, or really just the text of it. So in, let's see, in MUT, for example, I really just set up this shortcut, which MUT can actually pipe things into external programs, and that's just what I tell it to do. So it's now piping into URL view. Simple enough. I also have the same thing in VIM. Actually, let me go back to this email. Let me save it, and then I'm going to open it up. Oh, didn't actually save it. Let's save file. So now this is saved on my home directory, and I'm going to open this up. In VIM, I have the same kind of shortcut. If I type leader U, it gives me the same menu. And to get that, you just have to throw this little line in your VIM RC. And the same thing. I also have one for news-buter, yeah, or news boat is what it's called nowadays. Just if you want to see that, I think I have a shortcut to that. Yeah, all you have to do is set a URL viewer, which it has as a built-in feature, and then set a key to actually view those URLs. So I'll put the specifics in the video description. They'll also be on my config files on GitHub or whatever. But yeah, so this is a really nice way of not A, not having to use the mouse. B, of having a solution to links on the terminal that work basically for every term, I mean for every terminal. You don't have to worry about anything else. So I don't have to run a terminal that has all this extra stuff just so you can click on links or something like that. So I'll also say that URL viewer, just as an aside if you want to do something a little crazy. So URL viewer, you can set what regular expression it's looking for with links. So hypothetically, you could have a totally different regular expression that captures something else, maybe not a URL link, maybe some kind of syntactic configuration in a programming language. And you could have it run a command which doesn't have to be a web handler. It could be any other script just running some command on it. So that's just something for you to think about if you want to dive into that yourself. But anyway, so this is, I've only been using this thing a couple days, but I could use it for life at this point. So I actually really enjoy it. And I'm only upset that I didn't know about this before. So anyway, hope you learned something. Check the description for everything. I'll see you guys next time.