List Info

Thread: New: Need shortcut and support for inserting comments




New: Need shortcut and support for inserting comments
user name
2007-03-30 16:33:09
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
         
http://bug
s.kde.org/show_bug.cgi?id=143647         
           Summary: Need shortcut and support for inserting
comments
           Product: kate
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kwrite-devel kde org
        ReportedBy: aaronw net com


Version:           2.5.6 (using KDE 3.5.6 "release
41.4" , openSUSE )
Compiler:          Target: x86_64-suse-linux
OS:                Linux (x86_64) release
2.6.18.8-0.1-default

I am a longtime Emacs user trying to migrate over to Kate. 
One feature I use frequently in Emacs is typing Meta+; which
maps to indent-for-comment.  I usually use this for C
programming, but this applies to other languages as well.

What this does is inserts a comment block based on where I
am in the code.  If I am at the end of a statement, it moves
to the right to a fixed column and inserts /*  */ and places
the cursor inside the comment block.  If I do it on a blank
line inside a function, the comment block is lined up with
the rest of the code.

Ideally, it would be nice if I could use a keystroke to
insert a comment block and have it smart enough to do single
line and multi-line comments.  Kate is able to do this to a
limited extent, but it would be nice if a single keystroke
could do this.

I suppose it's possible to do this by writing a macro,
though I will need to figure out how to do this.

And finally, it would be great of a comment is inserted just
before a function definition if a doxygen style comment gets
inserted, with all of the parameters automatically inserted,
i.e.

/**
 *  short 
 *  param parm1
 *  param parm2
 *
 *  return
 */
int myfunc(int parm1, void *parm2)...

and the cursor placed in the first line so a description can
be added.
_______________________________________________
KWrite-Devel mailing list
KWrite-Develkde.org
ht
tps://mail.kde.org/mailman/listinfo/kwrite-devel

Re: New: Need shortcut and support for inserting comments
country flaguser name
Israel
2007-03-31 09:38:29
control+d comments a line, or block if such is selected.
Doxygen is a more complicated issue, but there is a command
which does this in 
kdevelop (I usually map F2 to do this, since there is no
keyboard binding for 
this command by default).

IMHO, safe to close this bug.
_______________________________________________
KWrite-Devel mailing list
KWrite-Develkde.org
ht
tps://mail.kde.org/mailman/listinfo/kwrite-devel

Need shortcut and support for inserting comments
user name
2007-04-01 01:34:20
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
         
http://bug
s.kde.org/show_bug.cgi?id=143647         




------- Additional Comments From anders alweb dk  2007-04-01
08:34 -------
We don't have indent-for comment in kate, but maybe we
should. I suppose it is 
assumed to make the indentation required for code on the
same line?
_______________________________________________
KWrite-Devel mailing list
KWrite-Develkde.org
ht
tps://mail.kde.org/mailman/listinfo/kwrite-devel

Need shortcut and support for inserting comments
user name
2007-04-02 15:10:48
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
         
http://bug
s.kde.org/show_bug.cgi?id=143647         




------- Additional Comments From aaronw net com  2007-04-02
22:10 -------
That is what I was thinking, though there would be several
different modes depending on where the comment is added.

For example,

int myfunc(blarg foobar[])
{
    for (i=0; i<10; i++) {         /* Repeat for all
items */
        /* If foobar[i] is not initialized, skip it */
        if (!foobar[i])
            continue;
        }
        /* This is a multi-line 
         * comment block.
         */
    }
}

Similarly, function header support would be nice, but that's
already supported in part with doxygen support.

I'm sure there's all sorts of variations people would want,
for example, some people like the C++ style comments, etc. 
This would also probably be useful for other languages as
well.
_______________________________________________
KWrite-Devel mailing list
KWrite-Develkde.org
ht
tps://mail.kde.org/mailman/listinfo/kwrite-devel

Need shortcut and support for inserting comments
user name
2007-04-16 01:30:05
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
         
http://bug
s.kde.org/show_bug.cgi?id=143647         




------- Additional Comments From dhdev gmx de  2007-04-16
08:30 -------
Typical usecase for jscripts... 
_______________________________________________
KWrite-Devel mailing list
KWrite-Develkde.org
ht
tps://mail.kde.org/mailman/listinfo/kwrite-devel

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )