Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Copy/Cut/Paste Lines

Micha
2009-07-07
2012-12-07
  • Micha
    Micha
    2009-07-07

    Can u implement following:
    if nothing is selected, then
       strg+c = copy line
       strg+x = cut line
       strg+v = paste line
    maybe also to config this keys?

     
    • Hi,

      Assert "Strg+C" means "Ctrl+C".

      I can't guess why "Strg+C" should copy the current line if nothing is selected ; the same for "Strg+X" and cutting. ("Strg+V" has no change). These would be absolutely non-standard features.

      Technically speaking, it seems possible to add an option to implement such a line-auto-select feature, but... why should it be done ?

      Best regards,
      Pierre (who just needs to understand the needs)

       
    • Micha
      Micha
      2009-07-07

      Hi,
      Yes, Strg == Ctrl

      Sure, is no standard, but i know it from Ultraedit and V$.Net, there it works and its very helpful.
      Its just a feature, if u work some years with it, u miss it.
      Also im thinking, the vi have this features (dd,yy) for cut and copy.

      micha

       
      • Ok. Next version (>= 2.3.2.322), but will have to be enabled thru (new)
        Option->General options->General->Apply Cut or Copy without selection

        Thanks for your report,
        Pierre.

         
    • Micha
      Micha
      2009-07-08

      Hi Pierre,

      great, big Thank You

      micha

       
    • Micha
      Micha
      2009-07-16

      Hi Pierre,

      very big thanks, i just saw that i have 2.3.2.322, looked in settings and works fine.
      Im very happy

      mfg
      micha

       
    • Micha
      Micha
      2009-07-16

      Hi again,

      there is a little problem with this feature.
      When i Copy a line and paste it otherwher (some or other file) the line will be overwritten, with cut and paste it works, there comes a new line.

      Cut on empty lines, nothing happend
      Cut on lines with only whitespaces and/or tab, only that where cleared,line still there with visible length 0,
      Testet with CRLF,LF,CR and Unicode on UTF-8 and Ansi.

      mfg
      micha

       
      • Hi Micha,
        > Cut on empty lines or white-space line, nothing happens
        About empty lines, I agree with you: will be fixed next version.
        About 'white space' line... Could the 'Trim trailing spaces'  option be checked?

        Regards,
        Pierre.
        --
        By the way, how could I translate "Trim trailing spaces"?
        And "Case no selection, apply Cut or Copy to current line"?

         
    • Micha
      Micha
      2009-07-17

      Hi Pierre,

      "Trim trailing spaces" in german means "Nachfolgende Leerzeichen/Tabulatoren entfernen"
      I have checked that option, have only testet when i make same whitespaces, then Ctrl-x,before save, to test.
      That Bug is not so bad, more risky is Paste, when its overwrite a line.

      Also i have sometimes problems with Ctrl-Z, sometimes it makes a rollback on the last 2 changes. Cant give a warkthrough, it happens sometimes. ill take more look for that.

      mfg
      micha

       
      • Hi mordef,

        Thank you for the translation.
        There is a new version - I've checked it again and again: it seems to work correctly.
        --
        http://devphp2.free.fr/files/devphp.exe [ 1,189,376 B ]

         
    • Micha
      Micha
      2009-07-20

      Hi Pierre,

      i testet and found the error.
      Make a document and some lines like:
      1

      2

      3

      Nor go to he line with only the "1" and press ctrl+c (with activatet 'Case no selection...')
      Then press Ctrl+v 3 times.
      You can see, now u have 3 lines with '1' but no more line with '2', the lines where overwritten, no new lines.
      Now press 3 timex Ctrl+z
      Now u have no more Lines with '1' but also no Line with '2'.
      Last 3 Lines are removed. I think the 2nd stepp is korrekt, then when ctrl-v makes new lines and not overwrite, then ctrl-z is correct to clear the lines.

      mfg
      micha

       
    • Micha
      Micha
      2009-07-20

      Another thing easy to test:
      Make new File.
      Press 5 times <ENTER>
      Go first Line and Press <Ctrl-x>
      Result: 3 Lines only, 2 Lines where cut, but when u press then <ctrl+v> only 1 line where pastet

       
      • > <Ctrl+X> on empty line deletes 2 lines instead of 1
        Sorry about that. Could you check
        http://devphp2.free.fr/files/devphp.exe [ 1,210,880 B ]
        Please ?

         
      • Last known bug:
        Pasting an empty line which has been previously copied (not cut, if an empty line were cut, then paste will be ok), pastes the empty line (that's ok) but erases the next line (that's not).

        That feature is definitely a crazy one ;)

         
    • Micha
      Micha
      2009-07-21

      great, now it works fine.
      if u have used it for so long time, u will never miss that feature ;)