← Back to team overview

zim-wiki team mailing list archive

Re: 1:1 vs. piped links

 

On Mon, Dec 14, 2009 at 16:13, 0x0000 <zero_hex@xxxxxxxxx> wrote:

>
> > M$ Office AutoCorrect/AutoFormat
> > leverages Undo for similar functionality: the
> > autolinking/autoformating is added to the undo list as a
> > separate action from the typing, so that you can just type
> > and press Ctrl+Z to supress the autothings when your
> > don't want them.
> >
> > Currently in zim they are fused: FooBar<SPACE> turns
> > it into a link when you add the <SPACE>; Ctrl+Z
> > removes the link but also the <SPACE>; pressing
> > <SPACE> again to continue typing restores the link.
> >
> > So maybe we want to adopt the separately-undoable
> > autolinking model?
>
> I like this - in fact, I already use that (the format and/or markup going
> into the undo buffer separately from the text) other editors
>
> UPDATE: turns out it already works this way in perl zim, and almost-works
in pyzim!
pyzim does undo the autolinking separately, but currently places the cursor
before the space.
So to enter a non-link "FooBar ", you press: FooBar<SPACE><Ctrl+Z><RIGHT>.
Will be fixed.  See https://bugs.launchpad.net/zim/+bug/487084 for details.

-- 
Beni Cherniavsky-Paskin <cben@xxxxxxxxxxxx>

References