On Apr 30, 5:11 pm, "Wu, Yue" <[email protected]> wrote:
> On Thu, Apr 30, 2009 at 07:05:53AM -0700, Ben Fritz wrote:
>
> > On Apr 29, 10:22 pm, "Wu, Yue" <[email protected]> wrote:
> > > Ok, 2html now has supported folding, thanks for nice work, so fantasic!
>
> > No doubt you're referring to the patch in this thread:
>
> >http://groups.google.com/group/vim_dev/browse_thread/thread/84bcdc1a7...
>
> [snip]
>
> I have used it some time too from when you posted a full version here :)
>
> Still something I don't like: foldcolumn is too wide, actually I like to hide
> them at all, and I think if I can click the header text of a level of folding
> to fold and unfold would be more convenient for using.
>

In the discussions leading up to the patch, people liked the idea of
clicking the text to toggle a fold, but we were having trouble
figuring out what to do in the case of multiple folds opening on the
same line. The problem exists in Vim, too; you can't access all folds
if you have multiple folds on the same line when using "za". So, I
went with the foldcolumn route. Knowing, however, that some may think
the foldcolumn is ugly, I provided an option to allow the mouse to
open folds simply by hovering over them and the ability to turn off
the fold column.

>
> I don't know the web relating technology, but I think 2html can use the tag
> file of the current document, and then make all |foo| and *foo* in the
> document as a hypertext? Is it hard to implement?
>

I think the heart of the problem is the fact that 2html is designed to
work on a single file. Hyperlinking across files would be a very
different task. In addition, the file name when saved is left entirely
up to the user. It would be very difficult to get this right in all
cases. That being said, it should be possible to create an additional
plugin that would read the tag file and do a global find and replace
to make the hyperlinks, perhaps asking the user for an html file name
to correspond to each real file found.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui