Forum Replies Created

Viewing 25 posts - 51 through 75 (of 3,643 total)
  • Author
    Posts
  • in reply to: Markdown previewer #29166
    Yutaka Emura
    Keymaster

    The WebPreview plug-in can preview Markdown files on v22.2.909 or later.

    in reply to: Bug find in files #29158
    Yutaka Emura
    Keymaster

    I think 20 seconds is within the range of acceptable cancelling time without sacrificing the speed. If you need faster cancellation, please answer all my other questions. Thank you.

    in reply to: Bug find in files #29155
    Yutaka Emura
    Keymaster

    The more frequently EmEditor checks the user input, the slower EmEditor becomes.
    To reproduce the issue, how big is a typical file? How many lines in the file, and how many files in a folder?
    What is the search string and options (regex or not)?
    How many seconds or minutes do you have to wait?
    Do you search a local hard drive, SSD, or network drive?
    Please also make sure that your hard drive is healthy by using “chkdsk” command.

    in reply to: Clear marker for unsaved text…. #29152
    Yutaka Emura
    Keymaster

    Hello,

    Running a macro:

    document.Saved = true;

    will turn this yellow to green if this is acceptable.

    in reply to: Vertical Scroll Problem #29144
    Yutaka Emura
    Keymaster

    This issue was fixed on v22.1.920. Thank you.

    in reply to: “Check Spelling” ignores delimiter characters #29132
    Yutaka Emura
    Keymaster

    This issue was fixed on v22.1.913. Thank you.

    in reply to: Detect separator automatically not detecting #29126
    Yutaka Emura
    Keymaster

    I couldn’t reproduce the issue. Are you sure you selected only the sample text, and no other characters were selected? If any other symbols or control characters are selected, the auto detection will not occur.

    in reply to: Detect separator automatically not detecting #29124
    Yutaka Emura
    Keymaster

    Are you using the same sample text? If not, please write a sample text.

    in reply to: Convert/Capitalize option ignores delimiter characters #29122
    Yutaka Emura
    Keymaster

    This issue has been fixed on v22.1.907. Thank you.

    in reply to: Detect separator automatically not detecting #29121
    Yutaka Emura
    Keymaster

    This first issue has been fixed on v22.1.907. Thank you.

    in reply to: In EmEditor, how to do date and time calculation? #29090
    Yutaka Emura
    Keymaster

    Please write an example to each of your question (1 and 2) so that it will be easier to write an answer.

    As for Time calculation, Scenario 1, If you want to add 5.50 seconds to each time in your example, you can open the Replace dialog box, and enter:

    Find:
    (\d\d):(\d\d)\.(\d\d)

    Replace with:
    \J nAdd=550; n=parseInt("\1")*6000+parseInt("\2")*100+parseInt("\3")+nAdd; s=("0000"+(n % 6000)).substr(-4); ("00"+parseInt(n/6000)).substr(-2)+":"+s.substr(0,2)+"."+s.substr(2);

    and make sure the Regular Expressions option is turned on.

    You can replace nAdd=550 with the actual time you want to add in 10 milliseconds.

    in reply to: Display errors (flashes) in the search bar #29084
    Yutaka Emura
    Keymaster

    Hello,
    Can you please write when the flashes occur? Please write a procedure to reproduce the issue.
    Thank you,

    in reply to: Sort left to right #28925
    Yutaka Emura
    Keymaster

    We’ve just released v22.0.901.

    – Added the Sort/Remove Duplicate split strings in Selection, Sort Columns, and Manage Columns command.

    in reply to: Sort capitals first #28814
    Yutaka Emura
    Keymaster

    Is the Fast Binary Comparison option on?

    in reply to: Sort capitals first #28796
    Yutaka Emura
    Keymaster

    If you clear the Ignore Case option in the Sort page of the Customize dialog box, the result will be exactly like this.

    in reply to: Sort capitals first #28791
    Yutaka Emura
    Keymaster

    Please write an example how this works, and why you need this type of sort.

    in reply to: Wish to have the function “Combine lines”! #28790
    Yutaka Emura
    Keymaster

    I think you would like to use the Remove Newline Characters or Join Lines command.

    in reply to: Sort left to right #28727
    Yutaka Emura
    Keymaster

    OK. I now understand your question.

    Currently, you can select a CSV mode (for instance Tab-separated, NOT Comma-separated) so that only one column should exist. Select the only one column, select the Split Columns command, then select (None), enter the Separator (Comma + Space in this case), set the Sort split strings option, and select a desired sort criterion.

    Alternatively, you can split to multiple lines by replacing Comma + Space with a newline, sort, and then replace a newline with Comma + Space to restore newlines.

    I will think about a new command in the future.

    in reply to: Sort left to right #28725
    Yutaka Emura
    Keymaster

    I am still not sure if I understand your question, but if you are talking about a nested CSV like this page:
    https://www.emeditor.com/text-editor-features/more-features/nested-csv/

    and if you would like to sort, for instance, “apple;banana;cherry“, you can select “Split Columns” while selecting the second column, select (None), enter the separator (a semicolon in this case), set the Sort split strings option, and select a desired sort criterion.

    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.

Viewing 25 posts - 51 through 75 (of 3,643 total)