• Does Sort Lines Lexographically have a bug with diacritics?

    4
    2 Votes
    4 Posts
    860 Views
    guy038G
    Hello, @abdekker, @ekopalypse and All, The present N++ alphabetic sort simply rearranges the characters according to the value of their Unicode code-point. Refer to the list, below, to get all the existing code-points, from the latest Unicode version : http://www.unicode.org/Public/UCD/latest/ucd/NamesList.txt And to this article which explains the format of that list So, for instance, this list of characters : Char Code ~~~~~~~~~~~~ 0009 0020 " 0022 “ 201C ” 201D - 002D — 2014 _ 005F 0 0030 Ø 00D8 9 0039 A 0041 a 0061 Ă 0102 B 0042 b 0062 þ 00FE β 03B2 Б 0411 E 0045 e 0065 Ě 011A € 20AC ∑ 2211 ℮ 212E fi FB01 ℓ 2113 O 004F o 006F ö 00F6 Œ 0152 θ 03B8 Ѳ 0472 T 0054 t 0074 τ 03C4 ŧ 0167 ‡ 2021 Ỳ 1EF2 ‰ 2030 ∆ 2206 ∞ 221E is alphabetically sorted as : Char Code ~~~~~~~~~~~~~ 0009 0020 " 0022 - 002D 0 0030 9 0039 A 0041 B 0042 E 0045 O 004F T 0054 _ 005F a 0061 b 0062 e 0065 o 006F t 0074 Ø 00D8 ö 00F6 þ 00FE Ă 0102 Ě 011A Œ 0152 ŧ 0167 β 03B2 θ 03B8 τ 03C4 Б 0411 Ѳ 0472 Ỳ 1EF2 — 2014 “ 201C ” 201D ‡ 2021 ‰ 2030 € 20AC ℓ 2113 ℮ 212E ∆ 2206 ∑ 2211 ∞ 221E fi FB01 You may think that is would be good to have an option to get, for instance, the Unicode collation mechanism, as below : http://www.unicode.org/charts/collation/ However, countries use different sorting conventions, even for countries using the same Latin alphabet. Refer to this article : https://en.wikipedia.org/wiki/Alphabetical_order#Language-specific_conventions So, in the end, the simple task of sorting letters is quite a puzzle if you want to take into account the specificities of each language and country ! In the meanwhile, here is a solution, involving regular expressions : From this initial list, containing 45 French words : foret Forer forêt Cote Côte côtelée côté Côtière cotée là La prairie A à près pré Premier gare Gîte giter Gorge Où ou Règne renne Aigüe aïeul Ôté ôter flûte Batir bâton Canoë Été île Reflet régner Ilote ångström Âpreté à-propos Escale étude offense Odyssée After running the Edit > Line Operations > Sort Lines Lexicographically Ascending option, we get : A Aigüe Batir Canoë Cote Côte Côtière Escale Forer Gorge Gîte Ilote La Odyssée Où Premier Reflet Règne aïeul bâton cotée côtelée côté flûte foret forêt gare giter là offense ou prairie près pré renne régner Âpreté Été Ôté à à-propos ångström étude île ôter Obviously, as a Frenchman, this sorting seems rather awful to sight and make the words’s search really not easy ! Now, let’s take again, our initial list and duplicate all words, in each line, with the simple regex S/R : SEARCH (?-s).+ REPLACE $0\t\t\t\t\t$0 So, the list is changed into : foret foret Forer Forer forêt forêt Cote Cote Côte Côte côtelée côtelée côté côté Côtière Côtière cotée cotée là là La La prairie prairie A A à à près près pré pré Premier Premier gare gare Gîte Gîte giter giter Gorge Gorge Où Où ou ou Règne Règne renne renne Aigüe Aigüe aïeul aïeul Ôté Ôté ôter ôter flûte flûte Batir Batir bâton bâton Canoë Canoë Été Été île île Reflet Reflet régner régner Ilote Ilote ångström ångström Âpreté Âpreté à-propos à-propos Escale Escale étude étude offense offense Odyssée Odyssée Now, with the next regex S/R, we change, only in the first coluimn : Any accentuated vowel to its corresponding lowercase vowel Any uppercase consonant to its corresponding lowercase letter SEARCH (?-i)(?:([[=A=]])|([[=E=]])|([[=I=]])|([[=O=]])|([[=U=]])|([[=Y=]])|([A-Z]))(?=.*\t) REPLACE (?1a)(?2e)(?3i)(?4o)(?5u)(?6y)(?7\l\7) foret foret forer Forer foret forêt cote Cote cote Côte cotelee côtelée cote côté cotiere Côtière cotee cotée la là la La prairie prairie a A a à pres près pre pré premier Premier gare gare gite Gîte giter giter gorge Gorge ou Où ou ou regne Règne renne renne aigue Aigüe aieul aïeul ote Ôté oter ôter flute flûte batir Batir baton bâton canoe Canoë ete Été ile île reflet Reflet regner régner ilote Ilote angstrom ångström aprete Âpreté a-propos à-propos escale Escale etude étude offense offense odyssee Odyssée Now, after a new Edit > Line Operations > Sort Lines Lexicographically Ascending action, we get this list : a A a à a-propos à-propos aieul aïeul aigue Aigüe angstrom ångström aprete Âpreté batir Batir baton bâton canoe Canoë cote Cote cote Côte cote côté cotee cotée cotelee côtelée cotiere Côtière escale Escale ete Été etude étude flute flûte forer Forer foret foret foret forêt gare gare gite Gîte giter giter gorge Gorge ile île ilote Ilote la La la là odyssee Odyssée offense offense ote Ôté oter ôter ou Où ou ou prairie prairie pre pré premier Premier pres près reflet Reflet regne Règne regner régner renne renne Finally, here is our final expected, well sorted, list of words, with the simple regex S/R : SEARCH ^.+\t REPLACE Leave EMPTY A à à-propos aïeul Aigüe ångström Âpreté Batir bâton Canoë Cote Côte côté cotée côtelée Côtière Escale Été étude flûte Forer foret forêt gare Gîte giter Gorge île Ilote La là Odyssée offense Ôté ôter Où ou prairie pré Premier près Reflet Règne régner renne Of course, in this first approach, I did not include the accented consonants as well as the Æ, Œ, æ, œ characters but I suppose that you’ll get the general idea ! The fine side of this method is that if the first column is identical, between several raws, the sort still acts onto the second field ;-)). For instance : cote Cote cote Côte cote côté Best Regards, guy038
  • Ctrl+- (Ctrl+dash) to jump back to last modified position

    5
    0 Votes
    5 Posts
    2k Views
    A
    @Michael-Vincent There is a version for x64 and x32: https://github.com/JetNpp/LocationNavigate/tree/master/bin
  • setting highlighting for compare plugin

    2
    0 Votes
    2 Posts
    1k Views
    A
    In the plugin settings, you can only change the colors of the selections. The font color depends on the color theme of the editor itself. Go to the stylesheet and try changing to the color you want.
  • About a Run-like submenu

    6
    0 Votes
    6 Posts
    1k Views
    Jesús Hernán Cano Martínez 0J
    Yes, @Ekopalypse. With NppExec I got it. Thanks.
  • 0 Votes
    6 Posts
    875 Views
    massimo la terraM
    [image: 1592910965817-database-no-ok.jpg] NO OK [image: 1592911009546-database-ok.jpg] OK
  • Want Save for new doc to use first line of text for filename

    4
    0 Votes
    4 Posts
    994 Views
    EkopalypseE
    @Doug-Rogers Okay, if you want this inside npp, you’re going to need to create a feature request, read up here, but make clear how it shouldn’t affect the current behaviour. Perhaps by adding a setting that can be enabled or disabled.
  • 0 Votes
    4 Posts
    1k Views
    EkopalypseE
    @Hassan-Iqbal said in How to make Notepad++ do some automatic cleanup before saving certain files?: You are implying that I can assign the macro to a keyboard shortcut? The macro menu contains the item Modify Shortcut/Delete Macro…, there you can assign a shortcut after you have recorded the macro. But how to make sure that the macro stays there every time I open Notepad++ or restart the computer? Because the macro is stored in a file called shortcuts.xml.
  • Theme Category

    1
    1 Votes
    1 Posts
    445 Views
    No one has replied
  • Identify ASCII or ALT-codes of characters in docs?

    2
    0 Votes
    2 Posts
    625 Views
    PeterJonesP
    @Neil-Preston , Not built-in. I present a script in https://community.notepad-plus-plus.org/post/44448 which shows the codepoint (for both ASCII and Unicode characters). Use Plugins Admin to install PythonScript, then create a new script in PythonScript. Then run this script. You can change whether it’s on-demand (show char only when you run the script), or “live” (update every time cursor moves) by comment/uncomment the last two lines.
  • Notepad++ doesnt have "Launch"

    5
    0 Votes
    5 Posts
    678 Views
    PeterJonesP
    @Mahdy-El , Um, yes, that’s what I told you. That feature you described has been replaced by the View > View Current File In > Chrome.
  • remove hyperlink

    3
    0 Votes
    3 Posts
    715 Views
    Michael VincentM
    @Jonathan-Webb said in remove hyperlink: Example: So when you are typing https://somesite.com/embed?code=… you must remember to you see, i do not want that to be clickable. Maybe you mean this? [image: 1592567753305-4539a57b-5d5f-4ad0-8ee3-e478924898fa-image.png] Just uncheck “Enable”. Cheers.
  • Sometimes Notepad++ doesn't save even though it appears to.

    15
    1 Votes
    15 Posts
    12k Views
    EkopalypseE
    @nos-pam So if I understand this correctly, then your analysis indicates that SessionMgr plugin has caused this?
  • Can I invoke a plugin from a macro?

    14
    0 Votes
    14 Posts
    4k Views
    ggodhner 0G
    @Alan-Kilborn Perfect! Just exactly what I needed! Now I’m ready to go! Many thanks to both of you!
  • 0 Votes
    2 Posts
    848 Views
    guy038G
    Hi, @nikhil-chavan and All, Refer to your second post : https://community.notepad-plus-plus.org/post/55008 BR guy038
  • Suggestion make www a clickable link

    1
    1
    0 Votes
    1 Posts
    330 Views
    No one has replied
  • Vertical edge (line) isn't visible

    5
    1 Votes
    5 Posts
    1k Views
    Alan KilbornA
    @László-Botka It seems that all I contributed to this thread was noise; sorry. I don’t use ExtSettings and I didn’t read far enough into your first posting before I went off and started trying things. I suppose at this point I’d agree with the finding that ExtSettings is a factor in what you are seeing.
  • Spell-check highlighting delayed

    6
    0 Votes
    6 Posts
    752 Views
    Michael VincentM
    @Christopher-Slominski No worries!! Glad it worked out. I believe 1.4.16 is the latest DSpellCheck available for Notepad++ 7.8.7. But as long as it’s working - stay where you are! Cheers.
  • 0 Votes
    7 Posts
    2k Views
    astrosofistaA
    Hi @Anthony-Bouttell, @PeterJones, @guy038, All: For the sake of variety, look at this non-regex solution (it only requires the BetterMultiSelection and Elastic Tabstops plugins installed and enabled, which you can download and install via Plugins Admin): [image: giphy.gif] First off, open Preferences -> Editing, and enable the Multi-Editing Settings. Then, do as the movie shows: Go to the first line and insert the required spaces to move the second word up to column 32. Press Home to place the caret at the beginning of this line. Press Shift + Alt and move the caret from the top line until the bottom of the list with the arrow down - you will get a giant caret blinking along 8 lines with no characters selected. Press Ctrl + Right twice. Eight carets will be blinking at the left of each second word. Press Shift + Left to backward select a space. Press Tab to magically align all the second words. Press Esc and then Down to release the multiselection. Select Plugins -> Elastic Tabstops -> Convert Tabstops to Spaces. That’s all. Hope you like it. Have fun!
  • GEDCOM file extension (.ged)

    9
    1 Votes
    9 Posts
    5k Views
    Michael VincentM
    @donho said in GEDCOM file extension (.ged): It’s not bug for me (also reference: https://community.notepad-plus-plus.org/topic/19529/notepad-v7-8-7-released/27) I tend to agree now that @PeterJones has showed us the registry HKCR and file extension experiment and I get the same behavior when saving with Windows standard plain old boring notepad.exe. This appears to be Windows default behavior, not a Notepad++ “bug”. However, there is some discussion on the issue I opened prior to fully understanding @PeterJones troubleshooting and explanation. You may want to close that? Thanks for Notepad++! - and sorry about the premature bug report. Cheers.
  • Backward regular expression searching disabled

    17
    5 Votes
    17 Posts
    5k Views
    Makwana PrahladM
    Hello,@Alan-Kilborn Follow this step,To Backward regular expression searching disabled Step 1:- Start Notepad++ 7.5 (32-bit) from a fresh unzip of the portable install. Step 2:- Execute any Find operation with Regular Expression as the search mode (note that when the search mode is changed to Reg Exp the “backward direction” checkbox becomes disabled–correct behavior). Step 3:- Quit and restart Notepad++ 7.5. Step 4:- Invoke the Find dialog. Note that the search mode is Reg Exp but the “backward direction” checkbox is now incorrectly enabled. I hope this information will be useful for you. Thank You.