File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3855,13 +3855,16 @@ previewers.new_termopen_previewer() *telescope.previewers.new_termopen_previewer
3855
3855
- `title ` a static title for example "File Preview"
3856
3856
- `dyn_title(self, entry)` a dynamic title function which gets called when
3857
3857
config value `dynamic_preview_title = true`
3858
+ - `env` table: define environment variables to forward to the terminal
3859
+ process. Example:
3860
+ - `{ ['PAGER'] = '', ['MANWIDTH'] = 50 }`
3858
3861
3859
3862
It's an easy way to get your first previewer going and it integrates well
3860
3863
with `bat` and `less` . Providing out of the box scrolling if the command
3861
3864
uses less.
3862
3865
3863
- Furthermore, it will forward all `config.set_env` environment variables to
3864
- that terminal process.
3866
+ Furthermore, if `env` is not set, it will forward all `config.set_env`
3867
+ environment variables to that terminal process.
3865
3868
3866
3869
3867
3870
Original file line number Diff line number Diff line change 90
90
--- Additionally you can define:
91
91
--- - `title` a static title for example "File Preview"
92
92
--- - `dyn_title(self, entry)` a dynamic title function which gets called
93
+ --- when config value `dynamic_preview_title = true`
93
94
--- - `env` table: define environment variables to forward to the terminal
94
95
--- process. Example:
95
96
--- - `{ ['PAGER'] = '', ['MANWIDTH'] = 50 }`
96
- --- when config value `dynamic_preview_title = true`
97
97
---
98
98
--- It's an easy way to get your first previewer going and it integrates well
99
99
--- with `bat` and `less`. Providing out of the box scrolling if the command
You can’t perform that action at this time.
0 commit comments