Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update display config methods #823

Closed
wants to merge 53 commits into from
Closed
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
fa38539
First attempt: add hierarchy and {padding=...} option
l-kershaw May 7, 2021
757fdc2
Update layout strategies to use new method
l-kershaw May 7, 2021
289b894
Update the validate layout_config function for hierarchy
l-kershaw May 7, 2021
b82c743
validate_layout_config: only check the given strategy
l-kershaw May 7, 2021
f558a53
Switch to included version of deepcopy
l-kershaw May 8, 2021
fc485ce
[docgen] Update doc/telescope.txt
May 8, 2021
f6722c1
Add layout_defaults
l-kershaw May 8, 2021
eec0a4d
Merge branch 'display_config' of https://github.com/l-kershaw/telesco…
l-kershaw May 8, 2021
e5a4364
Improve layout diagrams
l-kershaw May 8, 2021
d762448
[docgen] Update doc/telescope.txt
May 8, 2021
e4c797f
Add documentation for size resolver functions
l-kershaw May 8, 2021
0f3c9ee
[docgen] Update doc/telescope.txt
May 8, 2021
9d4fab8
Add resolver functions file to docgen
l-kershaw May 8, 2021
bd40df7
[docgen] Update doc/telescope.txt
May 8, 2021
911003c
Correct links to resolver functions
l-kershaw May 8, 2021
5d29e35
[docgen] Update doc/telescope.txt
May 8, 2021
245be0a
Remove get_width_opt, now handled by validate_layout_config
l-kershaw May 12, 2021
e710e46
Add documentation for defaults affecting layout
l-kershaw May 13, 2021
3256829
[docgen] Update doc/telescope.txt
May 13, 2021
f46d9b2
Rename `layout_defaults` to `layout_config`
l-kershaw May 14, 2021
c651f21
[docgen] Update doc/telescope.txt
May 14, 2021
e269210
Changes suggested by tjdevries
l-kershaw May 16, 2021
a8a97f6
Merge branch 'master' into display_config
l-kershaw May 16, 2021
7ba80ce
Fix typo
l-kershaw May 16, 2021
5b2fdef
Add resolving to `bottom_pane` strategy
l-kershaw May 16, 2021
bec87e3
Improve documentation for `resolve_height` and `resolve_width`
l-kershaw May 16, 2021
87ffc50
Small changes to documentation
l-kershaw May 16, 2021
eddc27b
Attempt to add functionality from PR #773
l-kershaw May 16, 2021
97dd75e
[docgen] Update doc/telescope.txt
May 16, 2021
c9da4d2
Message instead of error when using 'layout_default'
l-kershaw May 17, 2021
2c1d42f
Allow layout_config keys if they are valid for any layout_strategy
l-kershaw May 17, 2021
cc2c8b5
Merge branch 'display_config' of https://github.com/l-kershaw/telesco…
l-kershaw May 17, 2021
ee7e175
[docgen] Update doc/telescope.txt
May 17, 2021
5c45e79
feat: much code
tjdevries May 19, 2021
0cace86
Add layout function descriptions + some small changes
l-kershaw May 19, 2021
450d150
Refactor setting options using `config.set_defaults`
l-kershaw May 20, 2021
6ca31e2
Linting
l-kershaw May 20, 2021
33ce376
First attempt at `layout_default` inheritance tests
l-kershaw May 20, 2021
743601c
Second attempt at `layout_default` inheritance tests
l-kershaw May 20, 2021
904b8eb
Add more `layout_config` inheritance tests
l-kershaw May 21, 2021
557485e
Implements a smarter table extend for `layout_config`
l-kershaw May 24, 2021
9699e68
wip: preview_cutoff and prompt_position
tjdevries May 31, 2021
87b67d3
[WIP]: Wed 09 Jun 2021 08:48:06 AM EDT
tjdevries Jun 9, 2021
617d62e
working on docs and clarifications
tjdevries Jun 9, 2021
28f3b27
[docgen] Update doc/telescope.txt
Jun 9, 2021
3a1ce1f
Resolve `preview_cutoff` (first attempt)
l-kershaw Jun 9, 2021
172bd53
[docgen] Update doc/telescope.txt
Jun 9, 2021
b037cb1
Linting
l-kershaw Jun 9, 2021
dba65d3
Revert "Resolve `preview_cutoff` (first attempt)"
l-kershaw Jun 10, 2021
337c997
Revert "[docgen] Update doc/telescope.txt"
l-kershaw Jun 10, 2021
4935eae
Switch `preview_cutoff` to check lines for `center` and `vertical` st…
l-kershaw Jun 10, 2021
9863e71
[docgen] Update doc/telescope.txt
Jun 10, 2021
8a0d26b
Reduce duplicated layout info in readme
l-kershaw Jun 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,14 @@ require('telescope').setup{
'--column',
'--smart-case'
},
prompt_position = "bottom",
prompt_prefix = "> ",
selection_caret = "> ",
entry_prefix = " ",
initial_mode = "insert",
selection_strategy = "reset",
sorting_strategy = "descending",
layout_strategy = "horizontal",
layout_defaults = {
layout_config = {
l-kershaw marked this conversation as resolved.
Show resolved Hide resolved
horizontal = {
mirror = false,
},
Expand All @@ -159,10 +158,6 @@ require('telescope').setup{
generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter,
shorten_path = true,
winblend = 0,
width = 0.75,
preview_cutoff = 120,
results_height = 1,
results_width = 0.8,
border = {},
borderchars = { '─', '│', '─', '│', '╭', '╮', '╯', '╰' },
color_devicons = true,
Expand Down Expand Up @@ -196,19 +191,14 @@ EOF

| Keys | Description | Options |
|------------------------|-------------------------------------------------------|----------------------------|
| `prompt_position` | Where the prompt should be located. | top/bottom |
| `prompt_prefix` | What should the prompt prefix be. | string |
| `selection_caret` | What should the selection caret be. | string |
| `entry_prefix` | What should be shown in front of every entry. (current selection excluded) | string|
| `initial_mode` | The initial mode when a prompt is opened. | insert/normal |
| `sorting_strategy` | Where first selection should be located. | descending/ascending |
| `layout_strategy` | How the telescope is drawn. | [supported layouts](https://github.com/nvim-telescope/telescope.nvim/wiki/Layouts) |
| `winblend` | How transparent is the telescope window should be. | NUM |
| `layout_defaults` | Extra settings for fine-tuning how your layout looks | [supported settings](https://github.com/nvim-telescope/telescope.nvim/wiki/Layouts#layout-defaults) |
| `width` | TODO | NUM |
| `preview_cutoff` | TODO | NUM |
| `results_height` | TODO | NUM |
| `results_width` | TODO | NUM |
| `winblend` | How transparent is the telescope window should be. | number |
| `layout_config` | Extra settings for fine-tuning how your layout looks | [supported settings](https://github.com/nvim-telescope/telescope.nvim/wiki/Layouts#layout-defaults) |
| `borderchars` | The border chars, it gives border telescope window | dict |
| `color_devicons` | Whether to color devicons or not | boolean |
| `use_less` | Whether to use less with bat or less/cat if bat not installed | boolean |
Expand Down Expand Up @@ -604,7 +594,6 @@ Picker:new{
selection_strategy = "reset", -- follow, reset, row
border = {},
borderchars = {"─", "│", "─", "│", "┌", "┐", "┘", "└"},
preview_cutoff = 120,
default_selection_index = 1, -- Change the index of the initial selection row
}
```
Expand Down
Loading