Menu

Adding a 'commit;' every 1000 lines

2007-05-08
2012-11-13
  • Nobody/Anonymous

    Hi all,
      I'm new to Notepad++ but it does appear to support a rich feature set.

    Does it have the ability to insert lines at a set interval?

    What I want to do is take a SQL script that I have generated elsewhere and then every 1000 lines inset a new line that contains
       commit;

    I could of course do this by hand, but I am a lazy git and use any tool available to get round these mundance tasks ;)

    I like the looks of Notepad++ and would like to get more out of it, so any help on the matter would be much appreciated!

    Regards,
      Woody

     
    • Nobody/Anonymous

      After you create a macro, where does the information get saved? I would like to edit the macro file by hand as it would be a msasive time-saver!

      Cheers,
        Woody

       
      • Mieszko Lassota

        Mieszko Lassota - 2007-05-08

        this is a problem, as far as i know, there is no macro library... and that's a shame... would be nice to create macros with external tools - like passing in selection as input & changing it... python/perl would be nice... but for now, a macro lib would be awsome

         
      • MJG

        MJG - 2007-05-08

        I answered your other macro-related (same) post here:

        http://sourceforge.net/forum/forum.php?thread_id=1731353&forum_id=331754

        --Joel

         
    • Mieszko Lassota

      Mieszko Lassota - 2007-05-08

      you can create a macro :) it'll take you some time, but then - zap & it's done :)

       
MongoDB Logo MongoDB