Forum Replies Created

Viewing 25 posts - 126 through 150 (of 3,664 total)
  • Author
    Posts
  • in reply to: Paste from multiple selection overwrites text #28273
    Yutaka Emura
    Keymaster

    I believe the current behavior (vertical selection paste) was requested by a user, and it is useful especially when you work on CSV. It is also useful for programming langauge code when you want to paste multiple strings.

    For instance, suppose you have an array of strings in a source document:

    
    a : xxx
    b : xxx
    c : xxx
    d : xxx
    e : xxx
    

    And you have a programming language code in a destination document:

    
    s[0] = 
    s[1] = 
    s[2] = 
    s[3] = 
    

    You want to copy

    
    a
    b
    d
    e
    

    to the right side of equal symbols (=) vertically in the destination document.

    In this case, an easiest way is to place the cursor at the left side of a in the source document, press CTRL+SHIFT+DOWN 4 times, press SHIFT+RIGHT. At this point, you can optionally click on any unwanted string (c) while pressing CTRL. Press CTRL+C to copy. Then place the cursor at the right side of the first = in the destination document, and press CTRL+V to paste.

    In this case, the current behavior is useful.

    However, I understand your situation, and I will think about a new Paste feature (you can select how to paste on the fly) in the future.

    in reply to: Paste from multiple selection overwrites text #28271
    Yutaka Emura
    Keymaster

    If the Always insert newlines when copying multiple selections option (Customize dialog box – Edit page) is on, the current behavior should be:

    
    should1
    behaviour2
    selection3
    basis4
    5
    

    If the Always insert newlines when copying multiple selections option (Customize dialog box – Edit page) is off, the current behavior should be:

    
    shouldbehaviourselectionbasis1
    2
    3
    4
    5
    

    To paste like your expected result, you should paste to another new document, copy and paste again, and then paste to the document.
    Or, you can run the macro at https://www.emeditor.com/forums/topic/multi-copy-and-paste-workflow/, and select the first item to paste.

    If you would like, I will think about your feature request in the future.

    in reply to: Paste from multiple selection overwrites text #28269
    Yutaka Emura
    Keymaster

    To clarify your question, can you please write your expected result in this sample?

    in reply to: Paste from multiple selection overwrites text #28267
    Yutaka Emura
    Keymaster

    I might be misunderstanding your question. Can you please write a procedure to reproduce the issue here with a simplified sample? Please include your expected result vs current result.

    in reply to: Paste from multiple selection overwrites text #28264
    Yutaka Emura
    Keymaster

    I can now see your video. However, I believe this is an expected behavior. The strings below (3 of them) are NOT overwritten. New strings are inserted before the existing strings.

    in reply to: EmEditor v21.8 beta (21.7.901-) #28257
    Yutaka Emura
    Keymaster

    Hi hihihlo,
    I will fix this issue on v21.7.914.
    Thanks for your report.

    in reply to: Paste from multiple selection overwrites text #28256
    Yutaka Emura
    Keymaster

    No, the link does not work from my environment.

    Yutaka Emura
    Keymaster

    I’ve reproduced this issue, and it will be fixed on the next version. Thank you.

    Yutaka Emura
    Keymaster

    Which version of EmEditor are you using? The latest version is v21.7.911.
    If the Search All Documents in the Group option is set in the Find dialog box, please clear it.

    in reply to: Manipulating cells in tab separated mode #28241
    Yutaka Emura
    Keymaster

    You can drag and drop selected cells if you drag the border of the selection.
    If you would like to use a macro, please see:

    https://stackoverflow.com/questions/72427501/optimised-function-to-copy-columns-of-selected-data-by-a-variable-amount-up-dow

    in reply to: Manipulating cells in tab separated mode #28235
    Yutaka Emura
    Keymaster

    There are commands called “Insert Line Before”, “Insert Line After”, “Insert Column Left”, and “Insert Column Right” commands.

    in reply to: Remove leading, trailing, multiple spaces #28234
    Yutaka Emura
    Keymaster

    You can record these commands to macros, and combine them to one macro. These commands remove two or more spaces.

    in reply to: Multi-copy and paste workflow #28230
    Yutaka Emura
    Keymaster

    Did you select any item in the menu to paste the selected item and all above items?

    in reply to: Multi-copy and paste workflow #28226
    Yutaka Emura
    Keymaster

    As for the delimiter in the macro, you can change the delimiter at the first line of the macro.

    in reply to: Paste from multiple selection overwrites text #28225
    Yutaka Emura
    Keymaster

    Can you please write an example to explain the issue?
    Thanks,

    in reply to: Go to top/bottom buttons in Macros Menu #28224
    Yutaka Emura
    Keymaster

    Hello,

    You can right-click on the list box to show the menu that includes “Top” and “Bottom”.

    in reply to: Multi-copy and paste workflow #28219
    Yutaka Emura
    Keymaster

    You can write a macro to do this:

    
    sDelimiter = "|";  // delimiter to separate clipboard items
    
    menu = CreatePopupMenu();
    i = 0;
    do {
        str = clipboardData.getData("text", i);
        if( str.length == 0 ) break;
        str = str.substr( 0, 40 )
        menu.Add( str, i + 100 );
        i++;
    } while( 1 );
    
    result = menu.Track( 0 );
    if( result != 0 ) {
        iMax = result - 100;
        str = "";
        for( i = 0; i <= iMax; ++i ) {
            if( str.length != 0 ) {
                str += sDelimiter;
            }
            str += clipboardData.getData("text", i);
        }
        document.write( str );
    }
    

    Please see getData Method of ClipboardData:
    http://www.emeditor.org/en/macro_clipboarddata_getdata.html

    in reply to: How to process multiple selections? #28214
    Yutaka Emura
    Keymaster

    If the Auto-Complete Brackets/Quotation Marks option is set, you can simply type [.

    However, I know you want to write a macro to process multiple selection scenarios. Here is an example:

    
    sInsertBefore = "[";
    sInsertAfter = "]";
    var axT = [];
    var ayT = [];
    var axB = [];
    var ayB = [];
    
    Redraw = false;
    CombineHistory = true;
    nCount = document.selection.Count;   // retrieves the number of selections
    for( i = 1; i <= nCount; ++i ) {     // loop through multiple selections
    	x = document.selection.GetTopPointX( eePosLogical, i );  // retrieve x of the left side of each selection
    	axT.push( x );
    	y = document.selection.GetTopPointY( eePosLogical, i );  // retrieve y of the left side of each selection
    	ayT.push( y );
    	x = document.selection.GetBottomPointX( eePosLogical, i );  // retrieve x of the right side of each selection
    	axB.push( x );
    	y = document.selection.GetBottomPointY( eePosLogical, i );  // retrieve y of the right side of each selection
    	ayB.push( y );
    }
    
    for( i = nCount - 1; i >= 0; --i ) {
    	document.selection.SetActivePoint( eePosLogical, axB[i], ayB[i] );   // set the cursor to the right side of each selection
    	document.selection.Text = sInsertAfter;    // insert ']'
    	document.selection.SetActivePoint( eePosLogical, axT[i], ayT[i] );   // set the cursor to the left side of each selection
    	document.selection.Text = sInsertBefore;   // insert '['
    }
    
    in reply to: JSON Lines document type #28212
    Yutaka Emura
    Keymaster

    I asked the developer of CSS HTML Validator. He wrote the next update of CSS HTML Validator (not Lite version included within EmEditor) will include support for JSON Lines syntax checking. If you haven’t already, you can buy a license with the discount here:
    https://www.htmlvalidator.com/emeditor/

    in reply to: “Compare” problem #28210
    Yutaka Emura
    Keymaster

    I’ve reproduced this issue, and it will be fixed on v21.7.910.
    Thank you.

    Yutaka Emura
    Keymaster

    Hello,

    I couldn’t reproduce the issue. Please try the latest beta version. If the issue still persists, how did you change the case?

    Please try:

    1. Download the latest beta portable version at https://support.emeditor.com/en/downloads

    2. Try the same procedure to see if it still crashes.

    3. If it didn’t crash, try changing the settings so that you can reproduce the crash. If it crashes again, please let me know what settings you’ve changed.

    Alternatively, you can export the current settings from the currently installed EmEditor, select Reset All Settings on the Tools menu, and see if you can still reproduce the issue. Restore your settings gradually to see which settings are related to the crash.

    Thank you,

    in reply to: Spell check multiple languages #28205
    Yutaka Emura
    Keymaster

    Hello,

    I might think about this in the future, but I believe it is easy to work around. Dictionary files are plain text files. If you look at en_US.dic in the Dictionaries folder of the EmEditor install path, you will see the list of words. You can simply combine two dictionaries to create a new language. You will also need .aff file. I believe you can use the same file for two languages.

    Another workaround is you can append either one dictionary to “UserDic.bin” file located in %appdata%\Emurasoft\EmEditor\Spell. “UserDic.bin” is a user dictionary. When you open “UserDic.bin“, you will need to specify UTF-16LE without signature.

    in reply to: “Compare” problem #28204
    Yutaka Emura
    Keymaster

    Hello,

    I couldn’t reproduce the crash.

    Please try:

    1. Download the latest beta portable version at https://support.emeditor.com/en/downloads

    2. Try the same procedure to see if it still crashes.

    3. If it didn’t crash, try changing the settings so that you can reproduce the crash. If it crashes again, please let me know what settings you’ve changed.

    Alternatively, you can export the current settings from the currently installed EmEditor, select Reset All Settings on the Tools menu, and see if you can still reproduce the issue. Restore your settings gradually to see which settings are related to the crash.

    Thank you,

    Yutaka Emura
    Keymaster

    If you don’t like the current behavior, go to Properties for All Configurations (Tools menu), select Keyboard page, select Edit category, select Tab or Increase Line Indent command, select Tab form the Current Keys list, and click Delete button.

    Yutaka Emura
    Keymaster

    This is the correct behavior. When you press TAB when multiple lines are selected, the behavior becomes Indent.

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