From the course: Practical GitHub Code Search
Search results - GitHub Tutorial
From the course: Practical GitHub Code Search
Search results
- [Instructor] Let's take a look at the search interface. It is truly a thing of beauty. The UI and UX are some of the best I've seen in any application. So to get there, I'm just going to hit the slash, and I'm going to start by typing org and then I'll choose Microsoft. I'm going to hit return. And you'll see that the first time I search for that it just tries to find the page for the organization. So I'm going to hit slash again and I'll replace that with user and then I'll type in planet of the web here. And you'll see that it'll just jump directly onto my profile page, which is interesting. However, if I hit the slash again and I'm already in here and I'm just going to hit return, basically the same query. This time or the second time, it tries to find the code for that particular owner, which is pretty interesting. Let's go back to Microsoft. So I'm going to hit the slash again and I'll hit delete a couple times to get to Microsoft again. And again, I'll do the slash and do it once again just to get to all of the different options. Now you can see that the main interface has two panes, one to the left and one to the right. The one on the left has all of the options, and you've probably been working with these before. You can filter by different options here. If you click right here, you can see more of the options, and then you have languages. And this is always going to be context sensitive. So depending on which one of these filter by categories you have chosen it will show you different things. So here for example, it's showing me popular repositories, popular paths, and then some other advanced options right here as well as the advanced search down at the bottom. Let's go to repositories. And there's 5,000 of those. Now, one thing I did want to point out, look how quickly it's searching. So I mentioned that this search engine is based on rust which is super fast, and they have done a lot of optimizations to make it super nice. Now notice that sometimes when you search for things you get this extra sidebar and this is sort of like a hints section of your code that encourages you, for example, to sponsor or it lets you give feedback and sometimes it'll give you even more things in here related to the type of things that you're doing. So I'm going to click on issues. I'm going to click through all these right here, just so that you can see that depending on what things you need it's going to give you that additional sidebar or not. And let's go back to repositories. So we can see that over here. It's going to tell you how many results it's received, and a lot of times you want to sort of sort that perhaps by like the number of forks or the number of stars, which you can find by scrolling down here. But there's another section in this main search result area that lets you do the same thing. So if you want to find, say, the project in Microsoft with the most stars, you can look for that. And not surprisingly, it's Visual Studio Code, as well as TypeScript is number two. It tells you the amount of stars that each one of those projects has received 146,000 for VS Code and 90,000 for TypeScript. It gives you some of the different tags right here as well as some additional information, and while this is updated six minutes ago. You can star projects directly, so I'm going to give VS Code a star. I really love that project. And you can also, right here, save the search results so that you can utilize it again later. So if you want to go back to this Microsoft page we can hit the safe button and I'm going to save Microsoft repos. And then you can refine the query and you can just save it. And you'll see that when we create a saved search, the list of the previous searches that I have done is right here. You can hit the delete button to delete this or create another safe search if you want to. So I'm going to hit the close box and now I'm going to hit the slash to get back in here. And I'll delete all this just to show you that your saved query is now in here. And give it whatever name you want, but now that's a quick way of getting back to where you were when you were searching.