jvgrootveld / telescope-zoxide

An extension for telescope.nvim that allows you operate zoxide within Neovim.
MIT License
320 stars 17 forks source link

telescope-zoxide does not increment directories rank #23

Open alezunino opened 5 months ago

alezunino commented 5 months ago

When using zoxide from the terminal, each time a directories is selected, its rank gets incremented. This does not occur when using telescope-zoxide because zoxide is used only for obtaining the list of directories, but it is not called on selection (telescope action). This is counterintuitive, since zoxide idea is to remember the most frequently used directories. This can by easily solved by calling:

vim.fn.system({ "zoxide", "add", selection.path })

in all actions. For example, the default action will become:

action = function(selection) vim.cmd.cd(selection.path) vim.fn.system({ "zoxide", "add", selection.path }) end,

Could you please add this fix to the plugin?

jvgrootveld commented 3 months ago

Ty for your suggestion! I was a little absent lately due to ... Life. I just want to let everyone know will check all Open issues and PR's shortly.

I didn't notice this, I will add this after the last open PR is merged.