Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added save explanation #447

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ ov is a terminal pager.
* 3.22. [Jump target](#jump-target)
* 3.23. [View mode](#view-mode)
* 3.24. [Output on exit](#output-on-exit)
* 3.25. [Save](#save)
* 4. [How to reduce memory usage](#how-to-reduce-memory-usage)
* 4.1. [Regular file (seekable)](#regular-file-(seekable))
* 4.2. [Other files, pipes(Non-seekable)](#other-files,-pipes(non-seekable))
Expand Down Expand Up @@ -620,6 +621,23 @@ You can change how much is written using `--exit-write-before` and `--exit-write

`--exit-write-before 3 --exit-write-after 3` outputs 6 lines.

### 3.25. <a name='save'></a>Save

If the file input is via a pipe, you can save it by pressing the `save buffer` (default `S`) key.

This will put you in input mode, so enter the file name.
Only the buffer currently in memory is saved.

```
(Save)file:savefile.txt
```

If the file name already exists, select Overwrite, Append, or Cancel.

```
overwrite? (O)overwrite, (A)append, (N)cancel
```

## 4. <a name='how-to-reduce-memory-usage'></a>How to reduce memory usage

Since **v0.30.0** it no longer loads everything into memory.
Expand Down