albert1017 / coffee-bytes

Automatically exported from code.google.com/p/coffee-bytes
0 stars 0 forks source link

Indication of User Defined Fold Contents #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Quote: "Start: {{{
End: }}}

Currently when you fold you must always add a comment
on to the fold line in order to say what is in the fold. eg

//{{{ define imports
import com.blar.*;
//}}}

which shows as:

//{{{ define imports

but

//{{{
import com.blar.*;
//}}}

just appears as

//{{{

In the cases that no extra comment is supplied, can we
have the 1st line of the fold as a surrogate comment. eg

//{{{
public Object foo(int p1, int p2)
{
return newObject();
}
//}}}

will appear as

//{{{ public Object foo(int p1, int p2)

This way it's easier to navigate code for a whole class eg

//{{{ imports

public class foo
{
//{{{ static vars
//{{{ Constructor

//{{{ public foo()
//{{{ private blar()
}

I think I am the only person here who does not use jEdit!

The company I work for has written it's own folding editor
(which is more like notepad than anything else) and
many people here are reluncant to switch to Eclipse
because it dose not support folding 'properly'.

Your plug-in is the closest I seen so far.

Keep up the good work.
Cheers,
David."

RJL: User defined regions need a lot of work - this is one key point.
Eclipse 3.1 added support for managing the area of the folding region that
should be in the preview box - we should harness that support for this
enhancement.

Original issue reported on code.google.com by rjlori...@gmail.com on 20 Oct 2006 at 9:09