#16 add edit_uncommentline

closed
None
5
2006-08-20
2006-07-13
u.l.m.o
No

add 'edit_uncommentline' to easily undo 'edit_commentline'

as an example, the keybinding <CTRL>+<SHIFT>+<D> could
be used (this is what Kate uses...) - makes it very
easy to toggle certain parts of the code on or off with
just one hand...

Discussion

  • Enrico Tröger

    Enrico Tröger - 2006-07-31
    • assigned_to: nobody --> eht16
    • status: open --> closed
     
  • Enrico Tröger

    Enrico Tröger - 2006-07-31

    Logged In: YES
    user_id=1117045

    Added in the current SVN version.

     
  • u.l.m.o

    u.l.m.o - 2006-08-19
    • status: closed --> open
     
  • u.l.m.o

    u.l.m.o - 2006-08-19

    Logged In: YES
    user_id=1554886

    thank you very much for implementing this. i'm not quite
    happy about this:

    hitting ctrl-d on this function:
    ----------------
    for fruit in fruits:
    tom.juggle(fruit)
    # remember to squash fruit!
    fruit.squash()
    ----------------
    will give you:
    ----------------
    #for fruit in fruits:
    #tom.juggle(fruit)
    # remember to squash fruit!
    #fruit.squash()
    ----------------
    and then hitting ctrl-shift-d will give you:
    ----------------
    for fruit in fruits:
    tom.juggle(fruit)
    remember to squash fruit!
    fruit.squash()
    ----------------

    the expected behavious for hitting ctrl-d is:
    ----------------
    #for fruit in fruits:
    #tom.juggle(fruit)
    ## remember to squash fruit!
    #fruit.squash()
    ----------------
    and for subsequent ctrl-shift-d:
    ----------------
    for fruit in fruits:
    tom.juggle(fruit)
    # remember to squash fruit!
    fruit.squash()
    ----------------

    see what i mean?

     
  • Enrico Tröger

    Enrico Tröger - 2006-08-19
    • status: open --> closed
     
  • Enrico Tröger

    Enrico Tröger - 2006-08-19

    Logged In: YES
    user_id=1117045

    I disabled the skipping of already commented lines. I think
    you are right and now(SVN r745) all lines get
    commented(un-commenting will work as expected). If anything
    doesn't work as expected, just reopen this item.

     
  • u.l.m.o

    u.l.m.o - 2006-08-19
    • status: closed --> open
     
  • u.l.m.o

    u.l.m.o - 2006-08-19

    Logged In: YES
    user_id=1554886

    thanks! it works as expected now.

    one more thing that i noticed: after hitting ctrl-d or
    ctrl-shift-d the current selection is lost. is this
    intentional?

     
  • Enrico Tröger

    Enrico Tröger - 2006-08-20
    • status: open --> closed
     
  • Enrico Tröger

    Enrico Tröger - 2006-08-20

    Logged In: YES
    user_id=1117045

    It was not really intentional but I knew it and for me it
    was not a problem. Now(SVN r750) the selection is kept when
    commenting or uncommenting code. Check it out, maybe there
    is something not yet perfectly working.

     

Log in to post a comment.