Menu

Does NP++ offer block (=column mode) operns?

Anonymous
2008-07-19
2012-11-13
  • Anonymous

    Anonymous - 2008-07-19

    One of the things I am using frequently and which I miss in nearly all of editors like
    NP++ is the column mode feature.

    I want to to mark certain columns in certain lines and have the possibility to delete them
    and insert something from the starting column. See this snaphsot from UltraEdit:

    http://img380.imageshack.us/my.php?image=columnmodeultraeditsnaprf3.png

    The only editor I found so far which is capable to do this kind of operations is
    UltraEdit (which costs $$$)

    Does NP++ offer such an feature?

    If yes: How can I enable this mode?
    If not: Can this mode be included in the next release? It shouldn't be tooo difficult to implement.

    Thomas

     
    • Bill Wire

      Bill Wire - 2009-04-03

      Thomas,

      It does offer some column-mode functionality.  In my opinion, the functionality offered in N++ is not quite as mature as some of the other aspects.  But the developers are always looking to make improvements - and at least some column-mode functionality is on the radar.

      Holding down the Alt key while click-dragging or Alt=Shift using the arrow keys will create a column selection.

      Currently, (until the next version) you are limited to a "block" that extends to the right only so far as the end-of-line on the last line of your block.  Even if there are longer lines in your selection.  Adding blanks to the end of the last line you wish to work on is one work-around.  Regular expressions to do the work instead of using column-editing is another.

      Anyway, once you do have a block selection, what you can do with it is somewhat "different" than I've seen in other editors.  You can easily clear it by pressing delete or backspace, but if you want to replace the text with other text, you'll need to open the column-editor (mapped to Alt C in mine, reachable under the Edit menu).  Simply typing without the benefit of the column editor in my opinion acts rather strangely - filling the entire selection with the last character typed.

      -Bill

       
    • Anonymous

      Anonymous - 2009-03-29

      When will this feature be available in NP++

       
    • cchris

      cchris - 2009-03-29

      TextFX Quick -> Find/Replace (or Ctrl-R).

      Tgere is a small text field that reads "#-# column". This indeed is a mask that limits between which and which columns a match is to be found.
      Perhaps not what UE offers, but it may do what you'd like, perhaps with a little more work.

      CChris