telescope-zoxide icon indicating copy to clipboard operation
telescope-zoxide copied to clipboard

telescope-zoxide does not increment directories rank

Open alezunino opened this issue 8 months ago • 1 comments

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?

alezunino avatar Jun 22 '24 23:06 alezunino