Skip to content

Commit c6a0187

Browse files
Global Code Search on GitHub Mobile - [GA] (#48640)
1 parent 982fd20 commit c6a0187

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

content/search-github/github-code-search/about-github-code-search.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ topics:
1212

1313
{% data variables.product.prodname_dotcom %} code search lets you rapidly search, navigate and understand your code, your team's code, and the code of the open source community. This search engine is designed to be scalable, code-aware, and support searching code across {% data variables.product.prodname_dotcom %} using regular expressions, boolean operations, specialized qualifiers, and symbol search. For more information on the syntax of code search, see "[AUTOTITLE](/search-github/github-code-search/understanding-github-code-search-syntax)."
1414

15-
Code search is integrated with features in the search interface on {% data variables.product.prodname_dotcom_the_website %}, such as suggestions, completions, and the ability to save your searches. On {% data variables.product.prodname_mobile %}, you can use the same methods to search through code in a specific repository. For more information, see "[AUTOTITLE](/search-github/github-code-search/using-github-code-search)."
15+
Code search is integrated with features in the search interface on {% data variables.product.prodname_dotcom_the_website %}, such as suggestions and completions. Your searches will be saved automatically and can be deleted at any time. On {% data variables.product.prodname_mobile %}, you can use the same methods to search through code {% ifversion global-code-search-mobile %}directly from the home screen{% else %} in a specific repository{% endif %}. For more information, see "[AUTOTITLE](/search-github/github-code-search/using-github-code-search)."
1616

1717
{% data reusables.search.code-search-login-requirement %}
1818

@@ -23,6 +23,7 @@ Code search is integrated with features in the search interface on {% data varia
2323
We have indexed many public repositories for code search, and continue to index more. Additionally, the private repositories of {% data variables.product.prodname_dotcom%} users are indexed and searchable by those that already have access to those private repositories on {% data variables.product.prodname_dotcom_the_website %}. However, very large repositories may not be indexed at this time, and not all code is indexed.
2424

2525
The current limitations on indexed code are:
26+
2627
- Vendored and generated code is excluded
2728
- Empty files and files over 350 KiB are excluded
2829
- Lines over 1,024 characters long are truncated
@@ -38,7 +39,7 @@ If you use the `path:` qualifier for a file that's in multiple repositories with
3839

3940
Code search 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 "[AUTOTITLE](/search-github/github-code-search/understanding-github-code-search-syntax#symbol-qualifier)."
4041

41-
{% ifversion mobile-code-search %}On {% data variables.product.prodname_mobile %}, you can only search the code in one repository at a time. For more information, see "[AUTOTITLE](/search-github/github-code-search/using-github-code-search#using-github-code-search-on-github-mobile)."{% endif %}
42+
{% ifversion global-code-search-mobile %}On {% data variables.product.prodname_mobile %}, you can use code search directly from the home screen. For more information, see "[AUTOTITLE](/search-github/github-code-search/using-github-code-search#using-github-code-search-on-github-mobile)."{% endif %}
4243

4344
## Feedback and support
4445

content/search-github/github-code-search/using-github-code-search.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,16 @@ On the search results view, you can navigate between different types of search r
5656

5757
## Using {% data variables.product.prodname_dotcom%} code search on {% data variables.product.prodname_mobile %}
5858

59-
On {% data variables.product.prodname_mobile %}, you can navigate to a repository and use code search on the code in that repository. Code search on {% data variables.product.prodname_mobile %} uses the same syntax as code search on {% data variables.product.prodname_dotcom_the_website %}. For more information, see "[AUTOTITLE](/search-github/github-code-search/about-github-code-search#limitations)."
59+
{% ifversion global-code-search-mobile %}On {% data variables.product.prodname_mobile %}, you can use code search directly from the search bar in the home screen.{% else %} On {% data variables.product.prodname_mobile %}, you can navigate to a repository and use code search on the code in that repository.{% endif %} Code search on {% data variables.product.prodname_mobile %} uses the same syntax as code search on {% data variables.product.prodname_dotcom_the_website %}. For more information, see "[AUTOTITLE](/search-github/github-code-search/about-github-code-search#limitations)."
60+
61+
{% ifversion global-code-search-mobile %}
62+
63+
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.
64+
65+
{% else %}
6066

6167
1. On {% data variables.product.prodname_mobile %}, navigate to the main page of a repository.
6268
1. Tap {% octicon "file-code" aria-hidden="true" %} **Code**, then tap the search bar.
6369
{% data reusables.search.type-code-search-query-step %}
70+
71+
{% endif %}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Reference: #12937.
2+
# Documentation for global code search on GitHub Mobile
3+
4+
versions:
5+
fpt: '*'
6+
ghec: '*'
7+
ghes: '>3.11'

0 commit comments

Comments
 (0)