-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
67 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters