feat: only cache picker if the prompt is non empty; support last non-empty search instead (#2817)
This commit is contained in:
committed by
GitHub
parent
955e50dfed
commit
e9fd72bdb8
@@ -526,6 +526,7 @@ append(
|
||||
{
|
||||
num_pickers = 1,
|
||||
limit_entries = 1000,
|
||||
ignore_empty_prompt = true,
|
||||
},
|
||||
[[
|
||||
This field handles the configuration for picker caching.
|
||||
@@ -538,15 +539,19 @@ append(
|
||||
('cache_picker.limit_entries`) are cached.
|
||||
|
||||
Fields:
|
||||
- num_pickers: The number of pickers to be cached.
|
||||
Set to -1 to preserve all pickers of your session.
|
||||
If passed to a picker, the cached pickers with
|
||||
indices larger than `cache_picker.num_pickers` will
|
||||
be cleared.
|
||||
Default: 1
|
||||
- limit_entries: The amount of entries that will be saved for each
|
||||
picker.
|
||||
Default: 1000
|
||||
- num_pickers: The number of pickers to be cached.
|
||||
Set to -1 to preserve all pickers of your
|
||||
session. If passed to a picker, the cached
|
||||
pickers with indices larger than
|
||||
`cache_picker.num_pickers` will be cleared.
|
||||
Default: 1
|
||||
- limit_entries: The amount of entries that will be saved for
|
||||
each picker.
|
||||
Default: 1000
|
||||
- ignore_empty_prompt: If true, the picker will not be cached if
|
||||
the prompt is empty (i.e., no text has been
|
||||
typed at the time of closing the prompt).
|
||||
Default: false
|
||||
]]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user