{"id":17969,"date":"2017-05-12T11:00:04","date_gmt":"2017-05-12T15:00:04","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=17969"},"modified":"2017-05-12T11:00:04","modified_gmt":"2017-05-12T15:00:04","slug":"better-github-searching","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/05\/12\/better-github-searching\/","title":{"rendered":"Better GitHub Searching"},"content":{"rendered":"<p><a href=\"http:\/\/indiestack.com\/2017\/05\/better-github-searching\/\">Daniel Jalkut<\/a>:<\/p>\n<blockquote cite=\"http:\/\/indiestack.com\/2017\/05\/better-github-searching\/\">\n<p>To search any subpath, just modify the search with the &ldquo;path:&rdquo; flag: <a href=\"https:\/\/github.com\/apple\/swift\/search?utf8=&#x2713;&amp;q=%22struct+String%22+path%3A%2Fstdlib&amp;type=\">&ldquo;struct String&rdquo; path:\/stdlib<\/a>. Six results, all pertinent to the actual implementation of &ldquo;struct String&rdquo;. Just what I was looking for.<\/p>\n<p>There are <a href=\"https:\/\/help.github.com\/articles\/searching-code\/\">lots of fancy constraints<\/a> you can apply to GitHub searches, I simply hadn&rsquo;t thought to look them up until now. Maybe some of them will make your exploration easier, too.<\/p>\n<\/blockquote>\n<p>It&rsquo;s so great having access to the Swift source during development.<\/p>","protected":false},"excerpt":{"rendered":"<p>Daniel Jalkut: To search any subpath, just modify the search with the &ldquo;path:&rdquo; flag: &ldquo;struct String&rdquo; path:\/stdlib. Six results, all pertinent to the actual implementation of &ldquo;struct String&rdquo;. Just what I was looking for. There are lots of fancy constraints you can apply to GitHub searches, I simply hadn&rsquo;t thought to look them up until [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[524,71,343,901,96],"class_list":["post-17969","post","type-post","status-publish","format-standard","hentry","category-technology","tag-github","tag-programming","tag-search","tag-swift-programming-language","tag-web"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=17969"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17969\/revisions"}],"predecessor-version":[{"id":17970,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17969\/revisions\/17970"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=17969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=17969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=17969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}