agkozak / zsh-z

Jump quickly to directories that you have visited "frecently." A native Zsh port of z.sh with added features.
MIT License
2.02k stars 76 forks source link

Show tilde instead of HOME during tab completions? #60

Closed silesky closed 2 years ago

silesky commented 2 years ago

Thanks for your work on this project.

Question / feature / bug?:

While ZSHZ_TILDE=1

I does not see a tilde when I do z tab:

 ➤ z /Users/me/bar
/Users/me/bar                                         /Users/me/baz              
/Users/me/barfoo                                    /Users/me/barbaz
/Users/me/barbar                                     /Users/me/bazfoo              
...

When I do z enter, I see a tilde instead of /Users/me.

➤ z 
173335     ~/foo
208498     ~/barfoo
323073     ~/bazfoo

Is there a reason that tilde is not visible during tab completions?

agkozak commented 2 years ago

I've got a fix for that behavior on the tilde branch. Would you be willing to help me test it out?

silesky commented 2 years ago

I've got a fix for that behavior on the tilde branch. Would you be willing to help me test it out?

Absolutely!

agkozak commented 2 years ago

OK, the fix seems to work, so I've merged it to master and am closing this issue. Thanks for helping to make ZSH-z better!