Skip to content

Commit

Permalink
Merge pull request #447 from noborus/save-doc
Browse files Browse the repository at this point in the history
Added save explanation
  • Loading branch information
noborus authored Sep 23, 2023
2 parents d692cd3 + 92ad0ff commit 23db449
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit 23db449

Please sign in to comment.