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: docs/docs/wsh-reference.mdx
+31-7Lines changed: 31 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -342,19 +342,36 @@ This will connect to a WSL distribution on the local machine. It will use the de
342
342
343
343
## web
344
344
345
-
You can search for a given url using:
345
+
The `web`command opens URLs in a web block within Wave Terminal.
346
346
347
347
```sh
348
-
wsh web open [url]
348
+
wsh web open [url] [-m] [-r blockid]
349
349
```
350
350
351
-
Alternatively, you can search with the configured search engine using:
351
+
You can open a specific URL or perform a search using the configured search engine.
352
+
353
+
Flags:
354
+
355
+
- `-m, --magnified` - open the web block in magnified mode
356
+
- `-r, --replace <blockid>` - replace an existing block instead of creating a new one
357
+
358
+
Examples:
352
359
353
360
```sh
354
-
wsh web open [search-query]
361
+
# Open a URL
362
+
wsh web open https://waveterm.dev
363
+
364
+
# Search with the configured search engine
365
+
wsh web open "wave terminal documentation"
366
+
367
+
# Open in magnified mode
368
+
wsh web open -m https://github.com
369
+
370
+
# Replace an existing block
371
+
wsh web open -r 2 https://example.com
355
372
```
356
373
357
-
Both of these commands will open a new web block with the desired page.
374
+
The commandwill open a new web block with the desired page, or replace an existing block if the `-r` flag is used. Note that `--replace` and `--magnified` cannot be used together.
0 commit comments