sabof / project-explorer

A project explorer sidebar
266 stars 17 forks source link

Handle symlinked folders #7

Closed vemv closed 10 years ago

vemv commented 10 years ago

Given the following scenario:

mkdir ~/projects
cd projects
ln -s ~/proj1
ln -s ~/proj2
ln -s ~/proj3
(let ((default-directory "/Users/vemv/projects"))
  (call-interactively 'project-explorer-open))

The plugin lists the folders, but doesn't treat them as such.

Thank you,

Victor

sabof commented 10 years ago

What do you mean by "doesn't treat them as such"? It does on my machine.

vemv commented 10 years ago

I see one entry per directory, but the font-faces for them are of file type, not of directory type. When I click these entries, nothing happens...

I'm on OS X

Thanks - Victor

On Thu, Nov 7, 2013 at 8:17 PM, Evgkeni Sampelnikof < notifications@github.com> wrote:

What do you mean by "doesn't treat them as such"? It does on my machine.

— Reply to this email directly or view it on GitHubhttps://github.com/sabof/project-explorer/issues/7#issuecomment-27996943 .

sabof commented 10 years ago

Could be an emacs bug. file-directory-p, which I'm using should return true for symlinks pointing to directories. Can't help you here since I only have access to ubuntu and windows.

vemv commented 10 years ago

Turns out, issue was caused because I wasn't setting the project root properly. This was my init code:

(let ((default-directory "/Users/vemualim/projects"))
  (call-interactively 'project-explorer-open))

What's a correct way of programatically starting Project Explorer in a given directory?

sabof commented 10 years ago

Try adding a slash at the end of default-directory

vemv commented 10 years ago

Hey, it worked!

Thank you.