Skip to content

Commit afb6bbe

Browse files
committed
docs(termux): add workaround for search
1 parent 2d7b16f commit afb6bbe

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/install.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- [Fedora, CentOS, RHEL, SUSE](#fedora-centos-rhel-suse)
1111
- [Arch Linux](#arch-linux)
1212
- [Termux](#termux)
13-
- [yarn, npm](#yarn-npm)
13+
- [Known Search Issue](#known-search-issue)
1414
- [macOS](#macos)
1515
- [Standalone Releases](#standalone-releases)
1616
- [Docker](#docker)
@@ -134,6 +134,22 @@ Termux is an Android terminal application and Linux environment, which can also
134134

135135
To upgrade run: `yarn global upgrade code-server --latest`
136136

137+
### Known Search Issue
138+
139+
There is a known issue with search not working on Android because it's missing `bin/rg`. To fix:
140+
141+
1. Install `ripgrep` with `pkg`
142+
```sh
143+
pkg install ripgrep
144+
```
145+
2. Make a soft link using `ln -s`
146+
147+
````sh
148+
# run this command inside the code-server directory
149+
ln -s $PREFIX/bin/rg ./lib/vscode/node_modules/vscode-ripgrep/bin/rg
150+
151+
For more context, see [comment](https://github.com/cdr/code-server/issues/1730#issuecomment-721515979).
152+
137153
## yarn, npm
138154

139155
We recommend installing with `yarn` or `npm` when:
@@ -152,7 +168,7 @@ yarn global add code-server
152168
# Or: npm install -g code-server
153169
code-server
154170
# Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml
155-
```
171+
````
156172
157173
## macOS
158174

0 commit comments

Comments
 (0)