Menu

#795 Line transpose up and down

closed
SciTE (288)
4
2011-11-02
2011-03-23
No

Hello Neil,
I want add this feature into SciTE. I don't know if you're interested by this feature. That's reason why I propose this draft.
If you think that this feature can be integrate into SciTE. I could keep on working on it and you can give me some clues also ;)
Jérôme

Discussion

  • Jérôme LAFORGE

     
  • Neil Hodgson

    Neil Hodgson - 2011-03-23

    Its better to discuss new SciTE features on its mailing list. This particular issue has been discussed on the mailing lists before. For example, in
    http://groups.google.com/group/scite-interest/browse_thread/thread/89cf0bfbf63259c2/a9f2048e6af6d9ed?hl=en&lnk=gst&q=transpose#

    This implementation doesn't do much - a move selected lines up/down would appear more useful. I want to keep arrow key combinations for selection which has had many added features over time and is very important.

     
  • Neil Hodgson

    Neil Hodgson - 2011-03-23
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 4
     
  • Jérôme LAFORGE

    Plz find the new patch that managed the move of selected lines.

    Initially, I took ctrl+shift+up/down because for keeping consistent with other editors that already implemented this feature.
    So I change the key combinations (ctrl+shift+g/h), tell me if you have other preference on key combinations for this feature.

    On the other side, I think it's possible to overwrite this key combinations with user.shortcuts but that doesn't work for IDM_EDIT_LINE_UP and IDM_EDIT_LINE_DOWN. Do I miss something?
    currently, I overwrite IDM_COMPLETEWORD and that works...
    example :
    user.shortcuts=\
    Ctrl+Space|IDM_COMPLETEWORD|
    Ctrl+Shift+UP|IDM_EDIT_LINE_UP|\
    Ctrl+Shift+DOWN|IDM_EDIT_LINE_DOWN|

     
  • Jérôme LAFORGE

     
  • Jérôme LAFORGE

    I fix a pb with selection when reach the end of file. plz find the fix into files.2.tar.gz.

     
  • Jérôme LAFORGE

     
  • Neil Hodgson

    Neil Hodgson - 2011-03-25

    SciTE-ru's version of this has more functionality. http://scite-ru.googlecode.com/svn/trunk/pack/tools/MoveLines.lua

    Since I don't need this feature myself, I don't want to decide which variant of this is included or if users are instead pointed to the SciTE-ru script. People that are interested are on the mailing list.

    The code could also be simplified: For example, Call(SCI_GETSELECTIONSTART) is always <= Call(SCI_GETSELECTIONEND) so that the minimum and maximum calls can disappear. The two methods are very similar and could be merged.

     
  • Nobody/Anonymous

    RXkJrd <a href="http://parvolgnplla.com/">parvolgnplla</a>, [url=http://kmfvulkjkuym.com/]kmfvulkjkuym[/url], [link=http://vtjpzxmmmsog.com/]vtjpzxmmmsog[/link], http://xzmaosekljfu.com/

     
  • Jérôme LAFORGE

     
  • Jérôme LAFORGE

    In regard of the issue : Add MoveSelection[Up|Down] - ID: 3304850, I propose this new patch #3. I know that it isn't the best period with feature frozen :)
    By the way, as you told me, I will ask to users through mailling list whether this feature is useful.

     
  • Neil Hodgson

    Neil Hodgson - 2011-05-21

    Only bugs get fixed during feature freeze. If users want to assign these commands to keys they can use user.shortcuts which makes them work on Windows as well.

     
  • Jérôme LAFORGE

    I know for feature freeze, I've proposed you this patch for beginning to fill your buffer of todo for 2.27;)
    Please find this cleaned patch (#4) where user.shortcuts works (and also for windows, not tested).

     
  • Jérôme LAFORGE

     
  • Neil Hodgson

    Neil Hodgson - 2011-05-25

    Unless this proves very popular, leaving it up to users to assign to keys is good enough,

     
  • Neil Hodgson

    Neil Hodgson - 2011-11-02
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB