Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: acronyms #1002

Open
bennypowers opened this issue Feb 26, 2025 · 4 comments · May be fixed by #1004
Open

feature: acronyms #1002

bennypowers opened this issue Feb 26, 2025 · 4 comments · May be fixed by #1004

Comments

@bennypowers
Copy link

bennypowers commented Feb 26, 2025

$ cd
$ cd Documents/hooli-interactive-computer-keyboard
$ z query hooli
/home/bachman/Documents/hooli-interactive-computer-keyboard
$ cd
$ z hick
zoxide: no match found

I'm sure it's a common experience among CLI users that they often work with repos whose names are long, but form acronyms. They likely even refer to the project with teammates or in their own minds by the acronym more often than by it's full name.

zoxide algorithm currently does not calculate acronyms for directories like ~/Documents/hooli-interactive-computer-keyboard or whatever. It would be nice to either

  1. compute acronyms for dirnames with more than one word, or
  2. allow users to specify aliases for their most-used projects a la support path alias? #608
Erio-Harrison added a commit to Erio-Harrison/zoxide that referenced this issue Feb 28, 2025
@Erio-Harrison
Copy link

Erio-Harrison commented Mar 10, 2025

Hi mate. Could you try to see whether the feature I implemented meets your needs?

@bennypowers
Copy link
Author

bennypowers commented Mar 26, 2025

here's what I did (fedora silverblue)

toolbox enter
gh repo clone Erio-Harrison/zoxide
cargo build
./install.sh
zoxide init fish | source
zoxide edit

first entry:

│ ▌ 2050.0 /home/bennyp/Developer/hooli-ux/hooli-interactive-computer-keyboard

z hick
pwd

/home/bennyp/Developer/hooli-ux/hooli-interactive-computer-keyboard/node_modules/@hick

Maybe I'm holding it wrong, but it looks like it doesn't work, or maybe I'd need to reset my database.

@bennypowers
Copy link
Author

lol yeah i'm definitely holding it wrong.

Mental note:

  1. actually check out the feature branch
  2. read the install script
  3. then ignore it and install the local binary

Yeah, @Erio-Harrison this branch slaps. Thanks

@Erio-Harrison
Copy link

@bennypowers Haha thanks! Glad you like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants