Skip to main content

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

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


Back to the top