minimal extui fuzzy finder for neovim

feat: add tabnew action to files picker

+21
+1
lua/artio/config.lua
··· 52 52 ["<m-q>"] = "setqflistmark", 53 53 ["<c-s>"] = "split", 54 54 ["<c-v>"] = "vsplit", 55 + ["<c-t>"] = "tabnew", 55 56 }, 56 57 } 57 58
+20
lua/artio/utils.lua
··· 99 99 local buf = fn(item) 100 100 vim.api.nvim_open_win(buf, true, { win = -1, vertical = true }) 101 101 end), 102 + tabnew = require("artio").wrap(function(self) 103 + coroutine.resume(self.co, 1) 104 + end, function(self) 105 + local item = self:getcurrent() 106 + if not item then 107 + return 108 + end 109 + local buf = fn(item) 110 + vim.api.nvim_cmd({ 111 + cmd = "split", 112 + args = { ("+%dbuf"):format(buf) }, 113 + ---@diagnostic disable-next-line: missing-fields 114 + mods = { 115 + tab = 1, 116 + silent = true, 117 + }, 118 + }, { 119 + output = false, 120 + }) 121 + end), 102 122 } 103 123 end 104 124