After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 560233 - Comment a selection
Comment a selection
Status: RESOLVED OBSOLETE
Product: gedit-plugins
Classification: Other
Component: General
2.24.x
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-10 21:38 UTC by Jean-Philippe Fleury
Modified: 2020-11-24 10:17 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Removing the nested comment is pending (1.35 KB, patch)
2014-01-14 13:28 UTC, Sagar Ghuge
none Details | Review

Description Jean-Philippe Fleury 2008-11-10 21:38:06 UTC
Feature request for the "Code Comment" plugin: it would be useful to be able to comment just a selection. For example, if we select "zzzzz" in a PHP file:

Bla bla bla zzzzz bla bla

it would be great to have with the "Code Comment" plugin:

Bla bla bla /*zzzzz*/ bla bla

instead of:

#Bla bla bla zzzzz bla bla
Comment 1 Jeremy Nickurak 2011-10-29 17:39:18 UTC
Tricks in doing this well:

- Should be able to select it and *uncomment* it again
- Should be able to comment out things that have comments inside already -- this will result in nested comments, which will generally have to be escaped somehow (language-specific)
Comment 2 jessevdk@gmail.com 2014-01-13 12:10:51 UTC
Maybe it's useful to list some cases and expected behavior. For example, I would expect the following to happen:

1. Something /* commented inside */ rest of line
                ^--------------^ [uncomment]
=> Something commented inside rest of line
             ^--------------^

2. Something /* commented inside */ rest of line
                          ^----^ [uncomment]
=> Something /* commented */inside rest of line
                            ^----^

3. Something /* commented */inside rest of line
                     ^-----------^ [comment]
=> Something /* commented inside*/ rest of line
                     ^---------^

^--^ indicates a selection, action is within [brackets], result follows after => (including new selection)
Comment 3 Sagar Ghuge 2014-01-14 13:28:39 UTC
Created attachment 266251 [details] [review]
Removing the nested comment is pending
Comment 4 jessevdk@gmail.com 2014-01-16 07:28:48 UTC
Another case:

4. Something /* commented inside */rest of line
   ^-------------------------------------^ [comment]
=> /*Something  commented inside rest of/* line
Comment 5 Rubén Caro 2014-01-16 18:08:29 UTC
Even another case: Nothing selected, but the cursor position inside a commented area.

5. Something /* commented inside */rest of line
                    ^  [uncomment]
=> Something commented inside rest of line
Comment 6 Sébastien Wilmet 2020-11-24 10:17:01 UTC
Mass-closing of all gedit-plugins bugzilla tickets.

Special "code" to find again all those gedit-plugins bugzilla tickets that were open before the mass-closing:

2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3

By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements.

We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.