-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 on :change-current-directory to subdirectory of hidden directory #629
Comments
This looks like a missing tilde expansion, you likely need to provide the full directory path? |
I wondered if this was the case, but the subdirectory listing is working fine inside helix. You're right that providing the full path works, but now I'm curious why the behavior is different between the listing and changing. |
That's because we expand the tilde there, as well as hide it on document names: helix/helix-view/src/document.rs Lines 320 to 348 in 16bf8e1
You should be able to call expand_tilde on the argument inside the command: helix/helix-term/src/commands.rs Lines 1830 to 1847 in 16bf8e1
|
Trying to change directory to
~/.config/helix
when I found this error. Semi-related question: is it possible via config to automatically change the working directory to the directory opened with helix, instead of the current shell path when opening (e.g.hx ~/code/some-directory
sets that to thecwd
even when executed in `~/some/other/directory)?CleanShot.2021-08-19.at.22.26.53.mp4
The text was updated successfully, but these errors were encountered: