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

New strategy: Suggest based on PWD + other strategies #812

Open
knvpk opened this issue Nov 18, 2024 · 4 comments
Open

New strategy: Suggest based on PWD + other strategies #812

knvpk opened this issue Nov 18, 2024 · 4 comments

Comments

@knvpk
Copy link

knvpk commented Nov 18, 2024

Is your feature request related to a problem? Please describe.

I generally deal with lot of projects that means lot of folder, mostly all the project based on same framework either nix, pulumi and git, so most of the commands are same but with small difference like git push origin main and git push origin master, so im thinking if a suggestion stored per folder basis then it can be suggested back based on current working directory.

Describe the solution you'd like

Not sure as of now

Describe alternatives you've considered

Not sure as of now

Additional context

I think so many members will face the same problem.

References

  1. jimhester/oh-my-zsh@baa187e
@ericfreese
Copy link
Member

I think this is currently the best solution for what you want to do: https://github.com/larkery/zsh-histdb/blob/90a6c104d0fcc0410d665e148fa7da28c49684eb/README.org#integration-with-zsh-autosuggestions

@xpufx
Copy link

xpufx commented Nov 29, 2024

I was just about to ask for something similar to see if it can already be done. Especially with often used commands like 'cd' it would be nice if the plugin took pwd into consideration. For example I have directories 'rightdir', 'wrongdir' and while in 'rightdir' I 'cd' into a directory called 'mydir'. Currently the suggestion comes as 'mydir' when I am later in 'wrongdir'. This is a bit jarring especially because it sort of makes things confusing with the shells own expansion. I can't decipher the above solution 100% but I will give it a go and see if it helps.

@knvpk
Copy link
Author

knvpk commented Nov 29, 2024

Seems promising, i will try it today @ericfreese , thanks

@knvpk
Copy link
Author

knvpk commented Nov 29, 2024

I did updated my system to above solutions, let me use for two or more days and see if working as expected or not.

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

No branches or pull requests

3 participants