You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
feats: Option to open in split + CLI win parameter
There are now 3 main possible window configuration (`types` table):
- `preview`: the default one, opens a preview window, as it was until commit
a3f24fd
- `keep`: keeps the same window as input buffer for the output from Glow
- `split`: opens a split and puts the output there
The user can configure his preferred behaviour with
`glow.config.default_type` which can be "preview|keep|split".
The split direction can be configured with `glow.config.split_dir` to
either be "split|vsplit".
The user can also override the default window type via the `Glow` user
command, by providing the type:
- `Glow <file>` opens <file> with `glow.config.default_type`
- `Glow <type>` opens current file with <type>
- `Glow <file> <type>` opens <file> with <type>
- `Glow <type> <file>` opens <file> with <type>
The order is not required by the user, we internally order the args to
be file first and type second.
0 commit comments