Skip to content

Commit 9b4ca0f

Browse files
authored
File Operations Documentation (#2005)
Add docs for directory preview drag and drop to copy Modify docs for the file operations to reflect new changes
1 parent 1a90474 commit 9b4ca0f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/docs/widgets.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ When looking at a directory, preview will show a file viewer much like MacOS' _F
6262

6363
The simplest way to view a new file is to double click its row in the file viewer. Alternatively, while the widget is focused, you can use the <Kbd k="ArrowUp" /> and <Kbd k="ArrowDown" /> arrow keys to select a row and press enter to preview the associated file.
6464

65+
##### Copy a File
66+
67+
If you have two directory widgets open, you can copy a file or a directory between them. To do this, simply drag the file or directory from one directory preview widget to another that is opened to where you would like it dropped. This even works for copying files and directories across connections.
68+
6569
##### View the Parent Directory
6670

6771
In the directory view, this is as simple as opening the `..` file as if it were a regular file. This can be done with the method above. You can also use the keyboard shortcut <Kbd k="Cmd:ArrowUp"/>.

docs/docs/wsh-reference.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,13 +460,13 @@ This allows setting various options in the `config/settings.json` file. It will
460460
461461
## file
462462
463-
The `file` command provides a set of subcommands for managing files across different storage systems, such as `wavefile`, `wsh` remote servers, and S3 (not yet supported).
463+
The `file` command provides a set of subcommands for managing files across different storage systems, such as `wavefile`, `wsh` remote servers, and S3.
464464
465465
:::note
466466
467467
Wave Terminal is capable of managing files from remote SSH hosts, S3-compatible
468468
systems, and the internal Wave filesystem. Files are addressed via URIs, which
469-
vary depending on the storage system.
469+
vary depending on the storage system. If no scheme is specified, the file will be treated as a local connection.
470470
471471
URI format: `[profile]:[uri-scheme]://[connection]/[path]`
472472
@@ -509,8 +509,6 @@ Supported URI schemes:
509509
- `wavefile://temp/...` - stored globally, but removed on startup/shutdown
510510
- `wavefile://[uuid]/...` - an entity id (can be a block, tab, workspace, etc.)
511511
512-
All file operations respect a maximum file size of 10MB.
513-
514512
:::
515513
516514
### cat
@@ -545,7 +543,7 @@ cat config.json | wsh file write //ec2-user@remote01/~/config.json
545543
wsh file append [file-uri]
546544
```
547545
548-
Append data from stdin to a file, respecting the 10MB total file size limit. This is useful for log files or accumulating data. For example:
546+
Append data from stdin to a file, respecting a 10MB total file size limit. This is useful for log files or accumulating data. For example:
549547
550548
```sh
551549
tail -f app.log | wsh file append wavefile://block/logs.txt

0 commit comments

Comments
 (0)