chrisant996 / clink-gizmos

A library of Lua scripts for use with Clink https://github.com/chrisant996/clink.
MIT License
72 stars 6 forks source link

[Feature] Allow z_popup_dir to work with zoxide #8

Closed eblis closed 6 months ago

eblis commented 6 months ago

It would be nice if the z_popup_dir worked with zoxide as well as z.

I'm currently using zoxide plus clink script which works nicely, I also have fzf working for it, but the z_popup_dir doesn't seem to work with it.

I tried to force the script to work with zoxide but looks like zoxide's z command doesn't have the -l parameter.

chrisant996 commented 6 months ago

z and zoxide are different, so the same script/command can't really work for both.

Obviously though, it's trivial to change -l to query --list.

eblis commented 6 months ago

Thanks for quickly looking into it. It's showing the folder list, but on selection it doesn't change the folder.

Created a small pull request to fix this, at least for me.

chrisant996 commented 6 months ago

Ah, yes, thanks!