![]() ![]() Invoke Edit (menu) -> Begin/End Select (all of the line-leading digits to be removed are now highlighted/selected (in a “column selection”.Press Shift+Alt+RightArrow so that the last digit to be removed becomes highlighted (note that the addition of Alt to the keycombo makes this one-character selection a “column” selection–important to the next step!.Move the caret to the LEFT side of the last digit to be removed near the start of the last line.Move the cursor/caret to the bottom of the file with Ctrl+End.Invoke Edit (menu) -> Begin/End Select (a shame that this handy command has no default keycombo assigned!).Move the cursor/caret to the top of the now-interleaved file with Ctrl+Home. ![]() So let’s eliminate that part (I’ve decided that the column-selection method I hinted at above is not too hard (to remember)): To remove the leading numbers put on in the column-editor step (non-regex version): Hard to remember that one? No, for those that are regex-worthy. My solution did have a regex replacement component. ![]() Same goes for the Pythonscript nice, but I’d have to keep track of it…for this very very occasional need. While the regex based solution is cool, elegant, etc., how could one possibly remember it? One could document it or a link (to here) in a file, but then one would have to spend time searching for THAT. So I’m not one to try to oversell a solution I come up with, but mine was actually one that I could remember how to do if the need ever arises to do this type of 2-file merge. See, also, a similar problem, in that post : You should get, in the new tab, the resulting text : Beginning of Line 1End of Line 1 Select the contents of File2 and paste them, in the new tab, BELOW the ~~~~~~~~~~~~~~ line Write a dummy line as, for instance, ~~~~~~~~~~~~~~ ( note that you must type in, at least, three ~ characters, at the beginning of line ) Select the contents of File1 and paste them in this new tab You have two tabs, in Notepad++, with the contents of File1 and File2įile1 and File2 contain the same number n of lines I found an easier method, which does not need column numbering nor sort operation :-)) It just uses… … a regex S/R ! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |