fdschmidt93 / telescope-egrepify.nvim

Variable user customization for telescope.live_grep to set rg flags on-the-fly
MIT License
115 stars 11 forks source link

search dirs support #12

Closed otavioschwanck closed 11 months ago

otavioschwanck commented 11 months ago

im trying to use search_dirs like on live_grep, but is not working:

                    require("telescope").extensions.egrepify.egrepify({
                        additional_args = "-j1",
                        search_dirs = dirs,
                    })

i use this to search in current folder:

dirs = { vim.fn.expand("%:p:h") }
fdschmidt93 commented 11 months ago

Not supported, at least yet.

Why not use a prefix and pass it to the prompt with { default_text = $PREFIX .. vim.fn.expand("%:p:h") }

See https://github.com/fdschmidt93/telescope-egrepify.nvim#prefixes

I would like to keep this plugin simple.

otavioschwanck commented 11 months ago

Not supported, at least yet.

Why not use a prefix and pass it to the prompt with { default_text = $PREFIX .. vim.fn.expand("%:p:h") }

See https://github.com/fdschmidt93/telescope-egrepify.nvim#prefixes

I would like to keep this plugin simple.

it wont work :/

otavioschwanck commented 11 months ago

Fixed on the PR