mirror of
https://github.com/peco/peco.git
synced 2026-09-10 07:16:29 -04:00
Explicitly document horizontal scrolling
This commit is contained in:
parent
4b209aaf84
commit
7b9a0b2021
18
README.md
18
README.md
|
|
@ -69,6 +69,23 @@ The Fuzzy filter allows you to find matches using partial patterns. For example,
|
|||
|
||||

|
||||
|
||||
## Horizontal Scrolling
|
||||
|
||||
When input lines are longer than the terminal width, they are clipped at the edge of the screen. You can scroll horizontally to reveal the rest of the line using the `peco.ScrollLeft` and `peco.ScrollRight` actions. These actions are **not bound to any key by default** -- you need to add keybindings in your config file:
|
||||
|
||||
```json
|
||||
{
|
||||
"Keymap": {
|
||||
"ArrowLeft": "peco.ScrollLeft",
|
||||
"ArrowRight": "peco.ScrollRight"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Each scroll moves by half the terminal width.
|
||||
|
||||
If your input contains very long lines (e.g. minified files) and they do not appear at all, try increasing `MaxScanBufferSize` in your config. The default is 256 (KB), which limits the maximum length of a single input line.
|
||||
|
||||
## Selectable Layout
|
||||
|
||||
As of v0.2.5, if you would rather not move your eyes off of the bottom of the screen, you can change the screen layout by either providing the `--layout=bottom-up` command line option, or set the `Layout` variable in your configuration file
|
||||
|
|
@ -800,6 +817,7 @@ Much code stolen from https://github.com/mattn/gof
|
|||
- [Select Multiple Lines](#select-multiple-lines)
|
||||
- [Select Range Of Lines](#select-range-of-lines)
|
||||
- [Select Filters](#select-filters)
|
||||
- [Horizontal Scrolling](#horizontal-scrolling)
|
||||
- [Selectable Layout](#selectable-layout)
|
||||
- [Works on Windows!](#works-on-windows)
|
||||
- [Installation](#installation)
|
||||
|
|
|
|||
Loading…
Reference in a new issue