logo       

Re: using mac drawers to display a directory: msg#00091

editors.vim.mac

Subject: Re: using mac drawers to display a directory

While I do agree that it would be unfortunate to diverge from standard
Vim, this would be really good to have. I don't have the list in my
head, but this shouldn't be too far from some item in the wishlist for
future Vim.

Just for completeness, how about something like:

:browsepanel <path>

Which would open "something" from which one could select files. A
"select" (double-click) would call ":e <path>" if path is a file, else
expand tree (use ":browsepanel <otherpath>" for switching dir).
Finally, ":browsepanel" w/o arg would close/toggle it.

Just off the top of my head, since I really like the idea.. (Though
this may lead to the slippery slope of IDE-like complexities I guess.
And then there will be the "how to work netrw into this". Still, we've
had ":browse" for years now..)

Best regards,
Niklas



On 3/25/07, Nicolas Weber <nicolasweber-Mmb7MZpHnFY@xxxxxxxxxxxxxxxx> wrote:
Hi,

> I really appreciate the drawer functionality for organizing the tabs
> in macvim. I was wondering if it would be possible to tweak the drawer
> to display the contents of a certain directory in a tree view?

everything is possible :-P We shouldn't diverge too much from
standard vim though, I guess...

> There are probably more pressing things to implement, so even if
> someone
> could point me to the appropriate source code file, it would be much
> appreciated.

The source file is vim-root/src/gui_mac.c, the tab stuff is at the
bottom (provided you already applied the tabs patch :-P).

HTH,
Nico





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise