Moving blocks along with content



  • @Alan-Kilborn
    The second method works for me with xml files.(Notepad ++ 7.7)



  • In the ini files it is better to use …Shift + Down arrow …cut and paste)



  • This post is deleted!


  • Easier to make a macro “Cut minimized block”

    		<Macro name="Cut minimized block" Ctrl="no" Alt="no" Shift="no" Key="0">
    			<Action type="0" message="2301" wParam="0" lParam="0" sParam="" />
    			<Action type="0" message="2177" wParam="0" lParam="0" sParam="" />
    			<Action type="2" message="0" wParam="42001" lParam="0" sParam="" />
    		</Macro>


  • Hmmm, tried to purge a posting, not sure if it worked. Anyway if you see a post from me above that looks like it has INI file examples, pls ignore…

    Here’s the new thing I wanted to say:

    I did some more in-depth testing. What first appeared to be “messed up text” in some cases was really just some unexpected unfolding of certain blocks; the text itself was actually consistent.

    Drag and drop seemed to work okay. However, using the line up or line down command didn’t seem to respect the folding of the destination block (truly this is what I would expect anyway, though).



  • As I said for the first time:
    “cut / paste to the right place”
    and moving large blocks is generally not convenient
    (you can simply make a mistake, because when moving the blocks are all deployed!)

    Imgur



  • Final Series:

    Imgur



  • Remix)))

    		<Macro name="Cut minimized block" Ctrl="yes" Alt="no" Shift="yes" Key="67">
    			<Action type="0" message="2301" wParam="0" lParam="0" sParam="" />
    			<Action type="0" message="2177" wParam="0" lParam="0" sParam="" />
    			<Action type="2" message="0" wParam="42001" lParam="0" sParam="" />
    		</Macro>
    		<Macro name="Paste minimized block" Ctrl="yes" Alt="no" Shift="yes" Key="86">
    			<Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000D;" />
    			<Action type="1" message="2170" wParam="0" lParam="0" sParam="&#x000A;" />
    			<Action type="0" message="2302" wParam="0" lParam="0" sParam="" />
    			<Action type="0" message="2179" wParam="0" lParam="0" sParam="" />
    		</Macro>
    

    Imgur



  • When you need to insert beyond the last block in the file, you need to expand the last block before inserting!



  • @Alan-Kilborn said:

    @rddim

    Neither method 1 nor method 2 worked for me with Notepad++ 7.7. All that resulted was “messed up” text. Is your advice coming from use in Notepad++ 7.7 or some other version?

    Yes, it is Notepad++ 7.7



  • @rddim It works, but when a block consists of a very large number of lines … it is not very convenient to do (visually you can lose the beginning and end of the block)


Log in to reply