Skip to content
Discussion options

You must be logged in to vote

You're so desperate for that feature:

---@module 'snacks'
{
  'folke/snacks.nvim',
  ---@type snacks.Config
  opts = {
    picker = {
      actions = {
        choose_history = function(picker)
          local history = picker.history.kv.data
          local items = {}
          for i = 1, #history do
            local hist = history[#history + 1 - i]
            table.insert(items, {
              idx = i,
              pattern = hist.pattern,
              search = hist.search,
              live = hist.live,
              text = hist.search .. ' ' .. hist.pattern,
            })
          end
          Snacks.picker.pick {
            title = 'Picker history',
            items = items,…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@alcroito
Comment options

@emseidov
Comment options

Comment options

You must be logged in to vote
6 replies
@drowning-cat
Comment options

@alcroito
Comment options

@alcroito
Comment options

@drowning-cat
Comment options

@alcroito
Comment options

Answer selected by alcroito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants