Skip to content

Commit

Permalink
feat(fzf): select first entry on <Enter>, last on <S-Enter>
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Sep 4, 2023
1 parent a3f8aa9 commit 93ee5ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -611,15 +611,15 @@ https://github.com/Bekaboo/dropbar.nvim/assets/76579810/e8c1ac26-0321-4762-9975-
if not menu then
return
end
menu:fuzzy_find_click_on_entry(-1)
menu:fuzzy_find_click_on_entry()
end,
['<S-Enter>'] = function()
---@type dropbar_menu_t
local menu = utils.menu.get_current()
if not menu then
return
end
menu:fuzzy_find_click_on_entry(nil)
menu:fuzzy_find_click_on_entry(-1)
end,
['<Up>'] = function()
---@type dropbar_menu_t
Expand Down Expand Up @@ -1273,15 +1273,15 @@ appearance of the fuzzy finder interface.
if not menu then
return
end
menu:fuzzy_find_click_on_entry(-1)
menu:fuzzy_find_click_on_entry()
end,
['<S-Enter>'] = function()
---@type dropbar_menu_t
local menu = utils.menu.get_current()
if not menu then
return
end
menu:fuzzy_find_click_on_entry(nil)
menu:fuzzy_find_click_on_entry(-1)
end,
['<Up>'] = function()
---@type dropbar_menu_t
Expand Down
4 changes: 2 additions & 2 deletions lua/dropbar/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -406,15 +406,15 @@ M.opts = {
if not menu then
return
end
menu:fuzzy_find_click_on_entry(-1)
menu:fuzzy_find_click_on_entry()
end,
['<S-Enter>'] = function()
---@type dropbar_menu_t
local menu = utils.menu.get_current()
if not menu then
return
end
menu:fuzzy_find_click_on_entry(nil)
menu:fuzzy_find_click_on_entry(-1)
end,
['<Up>'] = function()
---@type dropbar_menu_t
Expand Down

0 comments on commit 93ee5ea

Please sign in to comment.