fix: no longer leaking one buffer previewer in some occasions (#664)

* fix: stop leaking last preview buffer
* fix: formatting for docs
* fix: async check if file is dir or not and
  - fix for in_fast_event when overriding file_maker
* fix: filtering for space in keymaps and fzy
* fix: show correct result numbers when using file_ignore_patterns
* Handle early close. Caused because we actually cleaning up buffers now
* cleanup
* [docgen] Update doc/telescope.txt
This commit is contained in:
Simon Hauser
2021-03-30 12:32:18 +02:00
committed by GitHub
parent 2e03f67de9
commit aefc831735
7 changed files with 75 additions and 61 deletions

View File

@@ -59,8 +59,7 @@ function config.set_defaults(defaults)
config.values[name] = get(name, default_val)
if description then
-- TODO(conni2461): trim is wrong. We need to do dedent here
config.descriptions[name] = dedent(vim.trim(description))
config.descriptions[name] = dedent(description)
end
end
@@ -69,8 +68,7 @@ function config.set_defaults(defaults)
Available options are:
- "descending" (default)
- "ascending"
]])
- "ascending"]])
set("selection_strategy", "reset", [[
Determines how the cursor acts after each sort iteration.
@@ -78,16 +76,14 @@ function config.set_defaults(defaults)
Available options are:
- "reset" (default)
- "follow"
- "row"
]])
- "row"]])
set("scroll_strategy", "cycle", [[
Determines what happens you try to scroll past view of the picker.
Available options are:
- "cycle" (default)
- "limit"
]])
- "limit"]])
set("layout_strategy", "horizontal")
set("layout_defaults", {})
@@ -103,18 +99,15 @@ function config.set_defaults(defaults)
set("prompt_prefix", "> ", [[
Will be shown in front of the prompt.
Default: '> '
]])
Default: '> ']])
set("selection_caret", "> ", [[
Will be shown in front of the selection.
Default: '> '
]])
Default: '> ']])
set("entry_prefix", " ", [[
Prefix in front of each result entry. Current selection not included.
Default: ' '
]])
Default: ' ']])
set("initial_mode", "insert")
set("border", {})