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

shell-pop-shell change directory with dired #38

Closed
darkfeline opened this issue Aug 22, 2015 · 3 comments
Closed

shell-pop-shell change directory with dired #38

darkfeline opened this issue Aug 22, 2015 · 3 comments

Comments

@darkfeline
Copy link

When shell-pop-shell is called in a dired buffer, the resultant pop-up shell doesn't cd correctly for paths containing the user's home directory:

# Example opening popup shell in dired buffer /home/bob/foo
$ cd \~/foo/
cd: no such file or directory: ~/foo

EDIT: shell-pop-shell is shell-pop with the shell type set to "shell".

@darkfeline
Copy link
Author

In dired, default-directory starts with a tilde: ~/foo instead of /home/bob/foo. I don't know why this is, it might be caused by another package.

The tilde can be expanded using expand-file-name at https://github.com/kyagi/shell-pop-el/blob/master/shell-pop.el#L209 although that is not the intended usage of expand-file-name.

@syohex
Copy link
Collaborator

syohex commented Aug 22, 2015

Thanks for reporting issue.
I have fixed at this issue at #39. Please check latest version.

@darkfeline
Copy link
Author

Thanks for the quick fix.

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