sabof / project-explorer

A project explorer sidebar
266 stars 17 forks source link

Unable to expand directories inside the project-explorer buffer #2

Closed daemianmack closed 10 years ago

daemianmack commented 10 years ago

Cool project! I love the idea of collapsing empty folders.

I'm having difficulty expanding directories.

Here's what I'm starting off with, on a pretty stripped-down emacs file...

https://www.dropbox.com/s/uurqaps8d8c0o8o/Screenshot%202013-10-19%2012.15.05.png

If I put the point over, say, the tools directory, and hit TAB, I don't see an expanded view of that directory's contents.

Instead, emacs' message area reports Buffer is read-only: #<buffer *project-explorer*>.

Hitting RET produces the same message.

Am I doing something wrong?

sabof commented 10 years ago

What are the outputs of M-: major-mode, and C-h c <tab>? Does M-x pe/tab work?

daemianmack commented 10 years ago

M-: major-mode reports project-explorer-mode.

C-h c <tab> reports TAB runs the command indent-for-tab-command.

M-x pe/tab does work to expand the directory.

sabof commented 10 years ago

Try: M-: (local-set-key (kbd "<tab>") 'pe/tab), and if that doesn't work, M-: (local-set-key (kbd "TAB") 'pe/tab).

sabof commented 10 years ago

Try the latest version, and see if it works for you.

sabof commented 10 years ago

Incidentally, what version of emacs are you using? This package uses several functions that are only available on emacs 24.

daemianmack commented 10 years ago

I'm using emacs-24.3.

Pulling down the most recent project-explorer.el from GitHub did the trick. Thanks!