poyengineering.blogg.se

Notepad++ sort textfx
Notepad++ sort textfx









notepad++ sort textfx

I’m not sure which step fails, but I haven’t diagnosed why. I recorded the above steps using Notepad++’s macro feature, and it doesn’t work. To get a dictionary sort (a-z), use the menu option Edit -> Line operations -> Sort lines lexicographically. with the correct number of digits in your line numbers.

notepad++ sort textfx notepad++ sort textfx

Use the following Regular Expression Find/Replace ( Ctrl+ H) to match the right-hand characters equalling or exceeding the length of your longest data line.

#Notepad++ sort textfx install#

If your shortest line has 4 characters, and your longest 44, then make sure you insert at least 40 spaces. Hi, An easier way is to install the TextFX Characters plugin through the plugin manager then Plugins > TextFx > TextFx Tools check the options : Sort ascending and Sort outputs only UNIQUE, click on Plugins > TextFx > TextFx Tools > Sort lines case insensitive et voil :) The options are saved so you will only need to click the sort. Insert enough spaces so that the shortest line of data will be padded out to the length of the longest line of data. Then in the Edit menu select Column Editor. Place the text cursor (the vertical line) into the very first position of the file. Reverse all lines first if you want to sort longest to shortest. Note that this will retain the original ordering when sorting from shortest string to longest string. Choose “Number to Insert” and start with 1, increase by 1, and include leading zeros. But the reason for adding the line numbers, is so we know the natural order, so that when for example, two+ lines are of equal length we can sort those lines according to that natural order)Īssuming your text file only has the data in it, place the text cursor (the vertical line) into the very first position of the file. (Note added by barlop- a note for the reader regarding this step, we will not be sorting according to these line numbers, we’re sorting according to the length of the lines. I’ll use the following as example data: Lorem











Notepad++ sort textfx