On Wed, 29 Apr 2015 10:30:51 -0700 (PDT)
Largo84 <[email protected]> wrote:
> Was there a recent change in how abbreviations handle the insertion
> point? Up until yesterday, my abbreviations worked as expected and
> allowed for me to start typing over the block (<|text|>). Today, the
> insertion point goes to the end of the abbreviation. Is that
> intentional or an artifact of some other change?
I've noticed the problem too, hadn't had time to assess and report.
Edward, by some mechanism whose details I can't remember off the top of
my head, after insertion of an abbreviation it's scanned for `<|text|>`
and the first instance changed to `text` and selected. The
(pseudo?)abbreviation ',,' would then scan from the current point for
further `<|text|>` placeholders. Eg. def;; inserts
def test(this, here):
"""test - <||>
:param <|type this|> this: <|describe this|>
:param <|type here|> here: <|describe here|>
:return: <|returns|>
:rtype: <|return type|>
"""
<|code|>
and should delete the first `<||>` and place the cursor there (no
selection seeing <||> is "empty".
This got broken before, I fixed it at d0a776075, but it's broken again.
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.