• Login
Community
  • Login

feature request: search with "accent match" (without Regular expression)

Scheduled Pinned Locked Moved General Discussion
8 Posts 2 Posters 567 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    conky77
    last edited by Jan 8, 2022, 7:42 PM

    I would like to propose a feature. Before creating an issue, I write here.
    As there is the search option “Match case” (case sensitive), I propose to implement the search option “accent sensitive” or “accent match” (maybe the correct term is diacritic)
    It is the default search of the browser.

    In Crome or Edge, if you search in the page (CTRL+f) for “e”, the program also finds “é” or “è”.
    e: e è é ë ê
    n: n Ñ
    c: Ç
    L: Ł ƚ
    This option should also work in combination with option “match case”.

    I know that it is possible with regular expression with the syntax [[=char=]], but you have to see the syntax.
    This option could be useful also with the sorting commands.

    A 1 Reply Last reply Jan 8, 2022, 8:04 PM Reply Quote 0
    • A
      Alan Kilborn @conky77
      last edited by Jan 8, 2022, 8:04 PM

      @conky77

      Normal mode search works totally via Scintilla; do you know if Scintilla supports the type of search you are describing? If it doesn’t, then Notepad++ can’t do it. Or at least not without the developers doing more work than they’d probably be inclined to do to support it.

      C 1 Reply Last reply Jan 8, 2022, 9:05 PM Reply Quote 0
      • C
        conky77 @Alan Kilborn
        last edited by Jan 8, 2022, 9:05 PM

        @alan-kilborn
        I checked, and I didn’t find this flag for “normal search”. Notepad++ should do a “regular expression” research, making it transparent to the user

        A 1 Reply Last reply Jan 8, 2022, 9:33 PM Reply Quote 0
        • A
          Alan Kilborn @conky77
          last edited by Jan 8, 2022, 9:33 PM

          @conky77 said in feature request: search with "accent match" (without Regular expression):

          Notepad++ should do a “regular expression”

          It could be done, I suppose.
          User uses e in a search; before the search is conducted that e is replaced with [eèéëê].
          Is the list of possible accented characters easy to create, for all?

          C 1 Reply Last reply Jan 9, 2022, 6:43 AM Reply Quote 0
          • C
            conky77 @Alan Kilborn
            last edited by Jan 9, 2022, 6:43 AM

            @alan-kilborn It isn’t so easy to create a list (long list), but if you write the regular expression “[=e=]”, N++ already extract all variants of “e”.

            A 1 Reply Last reply Jan 9, 2022, 12:40 PM Reply Quote 0
            • A
              Alan Kilborn @conky77
              last edited by Jan 9, 2022, 12:40 PM

              @conky77 said in feature request: search with "accent match" (without Regular expression):

              but if you write the regular expression “[=e=]”, N++ already extract all variants of “e”.

              Oh. Well, I would say that suffices then.

              1 Reply Last reply Reply Quote 0
              • A
                Alan Kilborn
                last edited by Jan 9, 2022, 1:20 PM

                @conky77

                So I’ve reread your earlier postings with more care.
                (Reading on a phone–wow–you can really miss stuff–maybe I don’t do that any more).

                OK, now I understand fully what you mean.
                To me it is an acceptable feature request to have an additional checkbox for it.

                This option could be useful also with the sorting commands.

                This is a bit of a different thing, as the sorting routines look at data differently than the regular expression code.

                C 1 Reply Last reply Jan 10, 2022, 8:55 PM Reply Quote 1
                • C
                  conky77 @Alan Kilborn
                  last edited by Jan 10, 2022, 8:55 PM

                  @alan-kilborn
                  I inserted the Issue #11028

                  1 Reply Last reply Reply Quote 1
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors