You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/search-github/github-code-search/about-github-code-search.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ We currently only support searching for code on the default branch of a reposito
49
49
50
50
Results for any search with the new code search (beta) are restricted to 100 results (10 pages). This limitation only applies to searching code with the new code search (beta) and does not apply to other types of searches.
51
51
52
-
The new code search(beta) supports searching for symbol definitions in code, such as function or class definitions, using the `symbol:` qualifier. However, note that the `symbol:` qualifier only searches for definitions and not references, and not all symbol types or languages are fully supported yet. For a list of what languages are supported, see "[Symbol qualifier](/search-github/github-code-search/understanding-github-code-search-syntax#symbol-qualifier)."
52
+
The new code search(beta) supports searching for symbol definitions in code, such as function or class definitions, using the `symbol:` qualifier. However, note that the `symbol:` qualifier only searches for definitions and not references, and not all symbol types or languages are fully supported yet. For a list of what languages are supported, see "[Symbol qualifier](/search-github/github-code-search/understanding-github-code-search-syntax#symbol-qualifier)."
53
53
## Feedback and support
54
54
55
55
You can view and share feedback about the new code search (beta) in our [discussion forum](https://github.com/orgs/community/discussions/categories/code-search-and-navigation).
intro: 'You can build search queries that return the results you want with specialized code qualifiers, regular expressions, and boolean operations.'
3
+
intro: 'You can build search queries for the results you want with specialized code qualifiers, regular expressions, and boolean operations.'
4
4
allowTitleToDifferFromFilename: true
5
5
versions:
6
6
feature: github-code-search
@@ -20,7 +20,7 @@ topics:
20
20
21
21
The search syntax in this article only applies to searching code with the new code search (beta) enabled. {% data reusables.search.non-code-search-explanation %}
22
22
23
-
Search queries consist of search terms, consisting of text you want to search for, and qualifiers, which narrow down the search.
23
+
Search queries consist of search terms, comprising text you want to search for, and qualifiers, which narrow down the search.
24
24
25
25
A bare term with no qualifiers will match either the content of a file or the file's path.
26
26
@@ -133,7 +133,7 @@ To search for files within an organization, use the `org:` qualifier. For exampl
133
133
org:github
134
134
```
135
135
136
-
To search for files within an organization, use the `user:` qualifier. For example:
136
+
To search for files within a personal account, use the `user:` qualifier. For example:
137
137
138
138
```
139
139
user:octocat
@@ -273,7 +273,7 @@ log4j NOT is:archived
273
273
274
274
## Using regular expressions
275
275
276
-
The new code search (beta) supports regular expressions to search for patterns in your code. You can use regular expressions in bare search terms as well as within many qualifiers, by surrounding the regex expression in backslashes.
276
+
The new code search (beta) supports regular expressions to search for patterns in your code. You can use regular expressions in bare search terms as well as within many qualifiers, by surrounding the regex in backslashes.
277
277
278
278
For example, to search for the regular expression `sparse.*index`, you would use:
Copy file name to clipboardExpand all lines: content/search-github/github-code-search/using-github-code-search.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,13 +37,13 @@ For more information about the search syntax of the new code search (beta), see
37
37
38
38
If you click on any of the specific suggestions, you will be taken directly to the page for that suggestion (for example, the repository or project page). If you click on a recent or saved search, you will be taken to the search results view for that search query.
39
39
40
-
1. Once you start typing a search query, you will see a list of completions and suggestions that match your query. You can click on those to jump to a specific location. As you type more qualifiers, you will see more specific suggestions, such as code files you can jump to directly.
40
+
1. Once you start typing a search query, you will see a list of completions and suggestions that match your query. You can click on a suggestion to jump to a specific location. As you type more qualifiers, you will see more specific suggestions, such as code files you can jump to directly.
41
41
1. After typing your query, you can also hit Enter to be taken to the full search results view. For more information, see "[Using the search results view](#using-the-search-results-view)."
42
42
43
43
## Creating and managing saved searches
44
44
45
45
1. In the top navigation of {% data variables.product.prodname_dotcom_the_website %}, click the search bar and start typing a search query (or any letter).
46
-
2. Under the search bar, the "Saved searches" section should now show. Click **Create saved search**.
46
+
2. Under the search bar, the "Saved searches" section should now appear. Click **Create saved search**.
47
47
3. In the pop-up window, fill out the name you want for your query and the query that you want to save. Click **Create saved search**.
48
48
49
49
If you click again on the search bar, you can now see your saved search in the "Saved searches" section under the search bar. Clicking on a saved search entry will add the query to the search bar and filter the suggestions accordingly.
@@ -56,6 +56,6 @@ This search results view already existed for the current search on GitHub, and t
56
56
57
57
To construct a search query and view, sort, and filter results using a visual interface, you can use {% data variables.search.search_page_url %} or {% data variables.search.advanced_url %}.
58
58
59
-
If you hit Enter after typing a search query in the search bar, you will also be taken to the search results view.
59
+
If you press Enter after typing a search query in the search bar, you will also be taken to the search results view.
60
60
61
-
On the search results view, you can navigate between different types of search results, including code, issues, pull request, repositories, and more. You can also view and click on filters and sort results.
61
+
On the search results view, you can navigate between different types of search results, including code, issues, pull request, repositories, and more. You can also view and click on filters, and sort results.
This article refers to the classic GitHub search experience. If you are participating in the new code search and code view beta and have enabled it, the syntax for searching code and the GitHub.com search interface will differ. However, the search syntax for non-code search types will stay the same. <br><br>
1
+
This article refers to the classic GitHub search experience. If you are participating in the new code search and code view beta and have enabled the new functionality, the syntax for searching code and the GitHub.com search interface will differ. However, the search syntax for non-code search types will stay the same. <br><br>
2
2
3
3
For information about the new code search and code view, currently in limited public beta, see "[About GitHub Code Search (beta)](/search-github/github-code-search/about-github-code-search.md)." To try out the new code search and code view beta, join the [waitlist](https://github.com/features/code-search-code-view/signup).
The new code search and code view are in limited public beta. To join the waitlist for access, navigate tohttps://github.com/features/code-search-code-view/signup.
1
+
The new code search and code view are in limited public beta. To join the waitlist for access, visithttps://github.com/features/code-search-code-view/signup.
0 commit comments