Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] adding quick fixes to wikitext editor?

Max,

Your suggestions sound fine.  The WikiText editor is designed to work with all markup languages, so doesn't have any language-specific logic built in.  To make your suggestions work, we would need some kind of abstraction that could be implemented by language-specific UI bundles.  Feel free to prototype something for discussion.

David

On Mon, May 25, 2015 at 11:43 AM, Max Rydahl Andersen <manderse@xxxxxxxxxx> wrote:
Hey,

Is there a way to add quick fixes or similar for a bit more intelligent "templating" ?

i.e. I would like to be able to press Cmd+1 (or cmd+space) while cursor is on any part of
a text string and have it be intelligent about what to do with it.

For example (in context of asciidoc - same should apply to other languages)

When cursor is on a url like http://eclipse.org suggest to insert http://eclipse.org[|] where | is the cursor.

When cursor is on a text or selection like "Download Eclipse" suggest to insert |[Download Eclipse] where | is the cursor.

I tried doing similar with built in templates but there is no good way for logic in them to handle difference like this.

Could also imagine being able to select a blog of text and be able to do the "right thing" for it.

Like:

class Test {

}

since "class" is mentioned suggest to surround as code block.

Given a list of lines.

Line 1
Line 2
Line 3

suggest to turn in to (un)ordered bulleted list.
 etc.

Just wondering if there is something already i'm missing or if this would be a welcome feature addition ?

I think I would do it by extending the current completion processor to be a bit more smart and let languages
provide their own suggestions.

/max
http://about.me/maxandersen
_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mylyn-dev



--
David Green
VP of Architecture, Tasktop
Committer, Eclipse Mylyn


Back to the top