feat(pickers): ctrl-r to refresh
This commit is contained in:
parent
0dd145b71e
commit
0938b9bbd6
2 changed files with 4 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ local function contest_picker(platform)
|
|||
|
||||
return fzf.fzf_exec(entries, {
|
||||
prompt = ('Select Contest (%s)> '):format(platform_display_name),
|
||||
fzf_opts = {
|
||||
['--header'] = 'ctrl-r: refresh',
|
||||
},
|
||||
actions = {
|
||||
['default'] = function(selected)
|
||||
if not selected or #selected == 0 then
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ local function contest_picker(opts, platform)
|
|||
pickers
|
||||
.new(opts, {
|
||||
prompt_title = ('Select Contest (%s)'):format(platform_display_name),
|
||||
results_title = '<C-r> refresh',
|
||||
finder = finders.new_table({
|
||||
results = contests,
|
||||
entry_maker = function(entry)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue