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

error handling for blocked directories is annoying #75

Open
wbolster opened this issue Jan 3, 2022 · 0 comments
Open

error handling for blocked directories is annoying #75

wbolster opened this issue Jan 3, 2022 · 0 comments

Comments

@wbolster
Copy link
Owner

wbolster commented Jan 3, 2022

having direnv-mode activated and switching to a file in a directory with an .envrc that is not approved via direnv allow results in annoying behaviour: a big warning buffer pops up.

the readme has instructions to reduce the severity of that warning buffer, but perhaps it can be skipped altogether by showing an appropriate error message in the echo area instead.

this requires detecting this error condition, propagating that up to the caller, which should ‘unload’ direnv (if coming from another dir), and then showing that error instead of (or in addition to) the usual ‘diff’ status output.

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

1 participant