🐻 minimal ui2 fuzzy finder for Neovim codeberg.org/comfysage/artio.nvim
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(picker): track input

robin 35f0007b 7e407344

+6
+6
lua/artio/picker.lua
··· 25 25 26 26 ---@class artio.Picker : artio.Picker.config 27 27 ---@field co thread|nil 28 + ---@field input string 28 29 ---@field idx integer 1-indexed 29 30 ---@field matches artio.Picker.match[] 30 31 ---@field marked table<integer, true|nil> ··· 41 42 local t = vim.tbl_deep_extend("force", { 42 43 closed = false, 43 44 prompt = "", 45 + input = nil, 44 46 idx = 0, 45 47 items = {}, 46 48 matches = {}, ··· 50 52 if not t.prompttext then 51 53 t.prompttext = t.opts.prompt_title and ("%s %s"):format(t.prompt, t.opts.promptprefix) or t.opts.promptprefix 52 54 end 55 + 56 + t.input = t.defaulttext or "" 53 57 54 58 Picker.getitems(t, "") 55 59 ··· 171 175 end 172 176 end 173 177 178 + ---@param input? string 174 179 function Picker:getmatches(input) 180 + input = input or self.input 175 181 self:getitems(input) 176 182 self.matches = self.fn(self.items, input) 177 183 table.sort(self.matches, function(a, b)