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

No supporting for temporary disable auto-ls #16

Open
AndrewLauu opened this issue Dec 4, 2022 · 1 comment
Open

No supporting for temporary disable auto-ls #16

AndrewLauu opened this issue Dec 4, 2022 · 1 comment

Comments

@AndrewLauu
Copy link

AndrewLauu commented Dec 4, 2022

I use this plugin for quite a while and I like it terribly, especially hit enter to ls. Thx for you work!

However, in my daily usage, I found it not supporting temporarily disable, especially when source and run other rcfile or .sh file containing cd.
e.g. I have a test.sh: fun() { cd ~ } and run source test.sh; ./test.sh it will unexpectly show ls .

I noticed your plugin has the AUTO_LS_CHPWD variant, and it's used just for initial binding to chpwd_function.

if [[ ${AUTO_LS_CHPWD} == true && ${chpwd_functions[(I)auto-ls]} -eq 0 ]]; then
  chpwd_functions+=(auto-ls)
fi

So I'm just wondering whether you could try to modify the script, and check this variant every time invoked.

@cocoonkid
Copy link

This is a great idea. I'd love to be able to only have the auto-ls on cwd but never on enter.

Would that be possible?

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

No branches or pull requests

2 participants