You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the ObsidianSearch command currently relies on either telescope, fzf-lua, or fzf.vim for fuzzy searching. i'd like to propose adding support for an alternative fuzzy search tool, mini.pick, which is part of the mini.nvim module ecosystem and is currently my preferred choice for fuzzy searching.
Alternatives
No response
Additional context
i attempted to implement this enhancement through a pull request, and while i successfully implemented it, the search functionality is limited to the current working directory where neovim was started. i've provided my initial implementation below, and also linked a repository where i explored multiple approaches without success.
i invite you to review my implementation and explore the provided fork for further details.
it would be greatly appreciated if you could consider incorporating support for mini.pick into the obsidiansearch command.
["mini.pick"] =function()
-- Check if mini.pick is availablelocalhas_mini_pick, mini_pick=pcall(require, "mini.pick")
ifnothas_mini_pickthenreturnfalseend-- Set up the arguments for mini.picklocalgrep_arguments=vim.tbl_flatten {
base_cmd,
{
"--color=always",
"--",
util.quote(data.args),
tostring(client.dir),
},
}
-- Use mini.pick's grep_live or grep picker depending on whether there are argumentsifdata.args:len() >0thenmini_pick.builtin.grep({ tool='rg', args=table.concat(grep_arguments, "") })
elsemini_pick.builtin.grep_live({ tool='rg', args=table.concat(grep_arguments, "") })
endreturntrueend</details>
Thank you so much
The text was updated successfully, but these errors were encountered:
Hey @bassamsdata I'd be happy to add this. It looks like you got a good start. Can you open a PR with your changes and I'll give it a try. Maybe I can figure out how to fix the working directory issue.
🚀 The feature, motivation and pitch
the
ObsidianSearch
command currently relies on eithertelescope
,fzf-lua
, orfzf.vim
for fuzzy searching. i'd like to propose adding support for an alternative fuzzy search tool,mini.pick
, which is part of themini.nvim
module ecosystem and is currently my preferred choice for fuzzy searching.Alternatives
No response
Additional context
i attempted to implement this enhancement through a pull request, and while i successfully implemented it, the search functionality is limited to the current working directory where neovim was started. i've provided my initial implementation below, and also linked a repository where i explored multiple approaches without success.
i invite you to review my implementation and explore the provided fork for further details.
it would be greatly appreciated if you could consider incorporating support for mini.pick into the
obsidiansearch
command.My fork commits
Click to expand code in `command.lua` file
Thank you so much
The text was updated successfully, but these errors were encountered: