Forum Replies Created

Viewing 25 posts - 126 through 150 (of 3,699 total)
  • Author
    Posts
  • in reply to: Sort left to right #28723
    Yutaka Emura
    Keymaster

    This macro will sort (A to Z, case insensitive) by row level at the current cursor (or selected cell) line. You can use this macro to develop further for different sort criteria.

    
    function SortOneColumn( yLine )
    {
        count = document.GetColumns();
        arr = new Array(count);
        for( i = 0; i < count; ++i ) {
            s = document.GetCell( yLine, i + 1, eeCellIncludeNone );
            arr[i] = { name: s, col: i };
        }
        arr.sort( function( a, b ) {
          var nameA = a.name.toLowerCase();
          var nameB = b.name.toLowerCase();
          if( nameA < nameB ) {
            return -1;
          }
          if( nameA > nameB ) {
            return 1;
          }
          return 0;
        });
    
        bSorted = false;
        for( i = 0; i < count; ++i ) {
            if( arr[i].col != i ) {
                document.MoveColumn( arr[i].col + 1, arr[i].col + 1, i + 1 );
                bSorted = true;
                break;
            }
        }
        return bSorted;
    }
    
    yLine = document.selection.GetActivePointY( eePosLogical );
    while( SortOneColumn( yLine ) );
    

    I am not sure what you mean by 1. On delimiter level.

    Yutaka Emura
    Keymaster

    You can write a macro to save a file as GB2312 (my sample as below), and then use the Advanced Open on the File menu or the Run with Temporary Options on the Macros menu to specify all the files to convert.

    
    document.Encoding = 936;  // Chinese Simplified (gb2312)
    s = document.FullName;
    nExt = s.lastIndexOf( "." );
    nBackslash = s.lastIndexOf( "\\" );
    if( nExt == -1 || nExt < nBackslash ) {
    	nExt = s.length;
    }
    s = s.substr( 0, nExt ) + "-gb2312" + s.substr( nExt );
    document.Save( s );
    
    in reply to: EmEditor v22.0 beta (21.9.901-) #28686
    Yutaka Emura
    Keymaster

    The Fuzzy Matching and Regex are mutually exclusive; they can’t be used together. However, the Fuzzy Matching and Escape Sequence can be used together.

    in reply to: EmEditor v22.0 beta (21.9.901-) #28619
    Yutaka Emura
    Keymaster

    1. The Fuzzy Matching option becomes grayed out to show it can’t be combined with the Regular Expressions option.

    2. You can set the Skip this dialog box next time option in the Fuzzy Matching dialog box, or clear the Show the Fuzzy Matching Options dialog box when selecting Fuzzy Matching option in the Search page of the Customize dialog box.

    in reply to: The regular expression contains a back-reference … #28618
    Yutaka Emura
    Keymaster

    I did exactly the same way as the screenshot shows — “CR @”.
    I don’t believe it’s an issue, but can you please try saving both your sample and linked file as UTF-16 with BOM, and see if you can still reproduce the issue?

    in reply to: The regular expression contains a back-reference … #28608
    Yutaka Emura
    Keymaster

    I downloaded your files and tested, but I still couldn’t reproduce the issue.

    in reply to: Match anything but… #28601
    Yutaka Emura
    Keymaster

    I am not sure if I understand your question. Please write a simple sample with a simple regex to reproduce the issue.

    in reply to: Extract not available in Search > Find in Files #28600
    Yutaka Emura
    Keymaster

    The Replace in Files dialog box does NOT include the Extract button. You can use the Find in Files dialog box to open all files containing the search string first, and then use the Replace dialog with the Search All Documents in the Group option.

    in reply to: The regular expression contains a back-reference … #28599
    Yutaka Emura
    Keymaster

    Please email me all your files after zipped so I will look into the issue.

    in reply to: The regular expression contains a back-reference … #28595
    Yutaka Emura
    Keymaster

    Is your linked file saved as UTF-8?

    in reply to: The regular expression contains a back-reference … #28579
    Yutaka Emura
    Keymaster

    I couldn’t reproduce the issue. Which version of EmEditor are you using? Are you using the default regex engine (Boost.Regex)? Did you make any changes in the Advanced dialog box?

    in reply to: Match anything but… #28578
    Yutaka Emura
    Keymaster

    Please simplify your samples as much as possible while you can still reproduce the issue, and clarify the last part of your question (after “I tried using negative lookahead like this”). Please add explanations why you believe your regular expression should not match or does not help.

    in reply to: Extract not available in Search > Find in Files #28577
    Yutaka Emura
    Keymaster

    The Extract button is available in Find in Files dialog box. Are you using the latest version of EmEditor?

    in reply to: “Cell Selection Mode” notification issues #28420
    Yutaka Emura
    Keymaster

    I’ve reproduced these issues, and they will be fixed on v21.9.915. Thank you!

    in reply to: diacritics-insensitive search/filtering #28404
    Yutaka Emura
    Keymaster

    Does this mean everything is resolved now?

    in reply to: diacritics-insensitive search/filtering #28395
    Yutaka Emura
    Keymaster

    v21.9.914 allows you to specify a string as well as a character range.
    Thanks,

    in reply to: diacritics-insensitive search/filtering #28379
    Yutaka Emura
    Keymaster

    1. Great, got it. Perhaps it could be made more intuitive or some context-sensitive help added? Also, when adding the character, in order to be entered as a fuzzy match condition, one needs to click the OK button of the Character range dialog. Perhaps, an extra button near the “Treat as” like Add or Save?

    I am not sure if I understand correctly, but I don’t want to put an extra OK button to the Character range dialog box. There is OK button already on the right top corner, and its design is similar to many other dialog boxes.

    in reply to: diacritics-insensitive search/filtering #28377
    Yutaka Emura
    Keymaster

    If you want to treat κ as χ, click Add in the Fuzzy Matching Options dialog box, enter κ to both the Minimum character and Maximum character text boxes, and enter χ to the Treat as text box.

    I am not sure what you mean by regex-level, but if you mean the options you can set in the Advanced dialog box (such as Regular Expressions “.” Can Match Newline Characters option), you can’t just copy these options between Find and Filter. However, you can save all these options to macros except for the Additional Lines to Search for Regular Expressions option.

    in reply to: diacritics-insensitive search/filtering #28375
    Yutaka Emura
    Keymaster

    I think the Fuzzy matching feature is more stable now. Please try the latest beta version, and let me know if you have any other comments before releasing the official version.

    in reply to: diacritics-insensitive search/filtering #28373
    Yutaka Emura
    Keymaster

    Same settings of fuzzy options are applied to the filter and all other features.

    in reply to: diacritics-insensitive search/filtering #28371
    Yutaka Emura
    Keymaster

    Did you set the Similarity of 100%, and only set the Ignore nonspacing combining characters, such as diacritics, dakuten, and handakuten option?

    If so, and if it’s still slow, please write your test condition.

    in reply to: Is conditional replacement possible in EmEditor? #28367
    Yutaka Emura
    Keymaster

    v21.9.908 includes the support for nested conditional expressions.

    in reply to: Is conditional replacement possible in EmEditor? #28362
    Yutaka Emura
    Keymaster

    EmEditor uses Boost.Regex, but NOT the Boost replacement expression function. EmEditor’s replacement function currently doesn’t support these nested conditional expressions. If this is important, I might consider that in future versions.

    in reply to: Is conditional replacement possible in EmEditor? #28353
    Yutaka Emura
    Keymaster

    I am not familiar with Notepad++ replacement expressions, but you can learn EmEditor replacement expressions at:

    https://www.emeditor.org/en/howto_search_replacement_expression_syntax.html

    If you read this page, and still have any questions on a particular expression, please let me know.

    in reply to: diacritics-insensitive search/filtering #28347
    Yutaka Emura
    Keymaster

    Hello,

    v21.9.903+ includes the Fuzzy Matching features. Please try it and let me know if you have any inputs.

    https://www.emeditor.com/forums/topic/emeditor-v22-0-beta-21-9-901/

    In the Find dialog box, set the Fuzzy Matching option, click on the button next to the option to display the Fuzzy Matching Options dialog box, and set the Ignore nonspacing combining characters, such as diacritics, dakuten, and handakuten option.

Viewing 25 posts - 126 through 150 (of 3,699 total)