Saturday, June 4, 2011

Re: non-interactive vimdiff to stdout

On Jun 3, 9:14 am, ZyX <zyx....@gmail.com> wrote:
> Reply to message «Re: non-interactive vimdiff to stdout»,
> sent 09:13:30 03 June 2011, Friday
> by ZyX:
>
> If you are interested, <input> hack is now implemented in frawor-port branch:http://formatvim.hg.sourceforge.net/hgweb/formatvim/formatvim/file/fr....
> Lots of examples are in *.ok files in directory «test/» (you should see those
> that have -r1, -n1 or -oN where N>=1).
> Live examples have urls likehttp://formatvim.sourceforge.net/concealed.tex_C0-D0-F0-L0-c0-l_q_q-n...
> (created using
>     zmv -C '(*).ok' 'outs/${${${${${1//_/__}//\%/_}//$/_d}//!/_b}//>/_g}.html'
>     scp outs/*.html \
>         zyxsf,format...@frs.sourceforge.net:/home/groups/f/fo/formatvim/htdocs
> : here following replacement are done:
> _ -> __, % -> _, $ -> _d, ! -> _b, > -> _g).
> It is not guaranteed that live examples were created using latest revision.
>

I've actually been playing around with some prototyping for this as
well.

What's the extra span for, with class=over? I could not figure out a
purpose for it.

I'm not 100% sure I'm going to implement this fully. The non-copyable
area is easy to accomplish with the input with readonly attribute set.
But the unselectable quality depends an IE-proprietary attribute
(unselectable) or on experimental CSS3 properties which if I am not
mistaken have been removed from the latest working draft. If someone
can point to a recent CSS3 draft with the user-select property
defined, I'd be happy to be proven wrong...

I am thinking that I will probably implement the non-copyable bit, but
I'm really not sure I can justify to myself the invalid markup
required for the unselectable portion. Any thoughts? I would really
like to have an unselectable, uncopyable region for the line numbers
and fold column.

By the way, I looked at the specific link you gave...how do you unfold
the text? Or is this an example of one which cannot be unfolded? I
know I read that your plugin supports this.

I'm not sure if you care, but the text is still selectable in Opera,
which doesn't seem to support the user-select property.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: