260420.2 · 8b664899876d5c1863a8c209905f312eeb75561f
Clean up non-ascii characters
reading declarations
Changes to ADVANCED.md. All files
@@ -309,16 +309,16 @@ I know it's a lot to digest, let's try to break down the code. available color options. - The value of `--preview-window` option consists of 5 components delimited by `,`- 1. `up` — Position of the preview window- 1. `60%` — Size of the preview window- 1. `border-bottom` — Preview window border only on the bottom side- 1. `+{2}+3/3` — Scroll offset of the preview contents- 1. `~3` — Fixed header+ 1. `up` -- Position of the preview window+ 1. `60%` -- Size of the preview window+ 1. `border-bottom` -- Preview window border only on the bottom side+ 1. `+{2}+3/3` -- Scroll offset of the preview contents+ 1. `~3` -- Fixed header - Let's break down the latter two. We want to display the bat output in the preview window with a certain scroll offset so that the matching line is positioned near the center of the preview window.- - `+{2}` — The base offset is extracted from the second token- - `+3` — We add 3 lines to the base offset to compensate for the header+ - `+{2}` -- The base offset is extracted from the second token+ - `+3` -- We add 3 lines to the base offset to compensate for the header part of `bat` output - ``` ───────┬──────────────────────────────────────────────────────────