Forum Replies Created

Viewing 25 posts - 176 through 200 (of 392 total)
  • Author
    Posts
  • LTT
    Participant

    Multi(ple)-line search ≠ Multiple search

    LTT
    Participant

    So it turned out you were not really searching for multip-line strings…

    No need to use that Multiline mode unless you want to match a multi-line string.

    That box in Multiline mode is not a “list”, if you thought it was.

    If the above is enough to answer the last question, don’t read further in case you will be confused again. ;)

    ——————————
    As for Multiline mode with search options:

    If you turn on “Multiline” with “(None)”, only exact-text searches can be done.
    e.g. in Find box:
    2
    3
    4
    only matches as a whole:
    2
    3
    4

    However, EmEditor does such a search using “Escape Sequence” internally.
    The expression is saved as “2\n3\n4”. And if you turn off “Multiline”, “Escape Sequence” will be turned on automatically.

    So, to search for a multi-line string,
    either you always use Multiline mode with “(None)” to do an exact-text search,
    or, turn on “Escape Sequence” at least and use “\n”.

    Escape Sequence syntax is very simple. See it in the menu of the “>” button.
    A common text search only needs \n \t \\ when necessary.

    Use Regular Expressions if the content/length of the matches is uncertain.

    ——————————
    >… are marked in green.

    EmEditor cannot highlight multi-line matches with colors.
    A match will be highlighted with colors unless it’s multi-line.

    LTT
    Participant

    I second this suggestion.

    Batch Replace needs item descriptions.
    And I need this list not only for batch replace.

    Actually I seldom do batch replace.
    So I use this list as “Search Favorites”, since EmEditor doesn’t have (a real) one.
    By double-clicking on an item in the list, the pair are sent to the left board, and the options are set. Very handy!

    Please consider adding a Description (or Title) column.

    (Markers have Titles. But Markers can not store replace pairs.)
    (I also have some suggestions for Markers if Yutaka would like to hear.)

    LTT
    Participant

    Ctrl+Enter (in Multi-line mode) = \n (in Single-line mode).

    If you want to search for a multi-line string, usually you have to match the exact number of the lines:

    2\n.*\n4 matches:
    2
    anything
    4

    2\n.*\n.*\n4 matches:
    2
    anything
    anything
    4

    All in this post are Regular Expressions:
    http://www.emeditor.org/en/howto_search_search_regexp_syntax.html

    And note that EmEditor cannot highlight multi-line matches with colors.

    —————
    If the number of lines is uncertain, open “Advanced…”:

    Additional Lines to Search for Regular Expressions:
    Enter a number (the maximum for your case).
    [★The help for this option is important.]
    (Don’t forget that in such dialog boxes you can press F1 for help.)

    ** But currently you have to relaunch EmEditor to make the change effective. (It could be a bug.)

    Expression 1:
    2[\s\S]*4 should now work for you.

    Expression 2:
    Open “Advanced…”:
    Enable: Regular Expressions “.” Can Match Newline Characters.
    2.*4 should also work now.

    —————
    While “Find in Files” is different:
    (It doesn’t need “Additional Lines to Search for Regular Expressions”.)

    2[\s\S]*4 always works.

    2.*4 works only if you enable the option:
    Regular Expressions “.” Can Match Newline Characters.
    [★The help for this option is important.]

    I have to say the design for such multi-line searches in EmEditor is complicated and inconvenient…

    in reply to: Indent #25945
    LTT
    Participant

    Will you fix E?

    in reply to: Multiple lines selecting #25944
    LTT
    Participant

    This issue occurs again.

    in reply to: Multiple Selection Editing #25943
    LTT
    Participant

    C+:
    … str1 str2 …

    Make 2 selections in the same line: “str1” and “str2”.
    Use Shift+Right 3 times.

    Compare the result with below:

    Make 2 selections in the same line: “str1” and “str2”.
    Switch Starting Point and Ending Point.
    ** Use Shift+Left 3 times.

    —————
    E:
    No Wrap.
    Make 2 selections in 2 lines.
    Hold Shift+Right/Left.
    The cursors stop at the end/start of the lines.
    ** But the cursor markers in the ruler and the vertical scrollbar go further.

    in reply to: Multiple Selection Editing #25937
    LTT
    Participant

    ▲ #23966 +:
    Make a vertical selection among the lines.
    Backspace.
    ** I think 1 character should be deleted with this step.

    Now the selection is divided into multiple selections.
    ** Hope the selection can revert with Ctrl+Z.

    Actually I hope delete-char-by-char mode can be converted to delete-all-at-once mode at any time.

    —————
    A+:
    Enable “Keep selections while typing in multiple selections”.

    Text:
    xx oo
    oo xx

    Select all “xx” (or “oo”, to see different result).
    (Press Esc once, to see different result.)
    Use “Insert CR+LF” command 2+ times.
    ** Note the length of the selections.

    in reply to: Associate with EmEditor #25931
    LTT
    Participant

    2 (icon) is not fixed yet.

    Suggestion 3:
    Add a [command line options] box in the [Properties] dialog.
    I do have associated some file types (including JSEE/VBEE) with EmEditor, but with command line options. (This is why I ask for JSEE/VBEE options in the installer.)

    in reply to: Filter / Find #25928
    LTT
    Participant

    5+:
    This also occurs when Incremental is disabled.

    The difference is:
    When Incremental, it will be trigged twice. (See the selection moving.)

    in reply to: Count Matches #25927
    LTT
    Participant

    Tested further and confirmed this issue began from 18.9.6.
    18.9.5 was OK.
    Win 7 (32-bit) here.

    in reply to: History #25926
    LTT
    Participant

    In any Recents list, when I want to reorder the pinned ones, I have to use Unpin and then Pin again.
    Suggestion 4:
    Change the Pin command to “Pin to Top”, and make it always enabled.
    So a pinned item can be moved to top with one step.

    in reply to: Filter / Find #25925
    LTT
    Participant

    5:
    Find toolbar:
    Enable “Incremental Search”.
    Press Up/Down key in the Find box.
    While the list is open, press Win key (or any way to take the focus from EmEditor).
    ** The search will be triggered.

    in reply to: Count Matches #25924
    LTT
    Participant

    18.9.12
    Not fixed yet.
    Always 0 here, with default settings, with any search options, anyhow.

    in reply to: Snippets #25915
    LTT
    Participant

    4+:
    If Alt+Enter is not good, how about F2?

    5:
    Add middle-click feature to the list, to open the Properties for an item (or Edit it).

    6:
    Hope the shortcut keys can be searched in [Select Snippet] dialog box, like in [Keyboard Map].

    in reply to: /ca /car /sca (Tab: Open in) #25912
    LTT
    Participant

    Tab: Open in: New Tab in Most Recent Window.
    “EmEditor /car” runs with a new process.
    Is this normal?
    (No new process is observed when the setting is [Tab: Open in: New Window].)

    in reply to: History #25911
    LTT
    Participant

    At least issue 1 should be fixed, for better experience.

    in reply to: Search #25908
    LTT
    Participant

    Issue 1 occurs again.

    in reply to: Toggle option in Incremental Search #25907
    LTT
    Participant

    > When Incremental Search is enabled, I think toggling a search option should re-trigger the search instantly.

    Now Filter toolbar has this behavior.
    Will Find toolbar also have it?

    in reply to: Filter / Find #25906
    LTT
    Participant

    3+:
    Find toolbar:
    Enable “Incremental Search”.
    Press Up/Down key in the Find box. (e.g. 111 ↓ 222 ↓ 333 ↑ 222 ↑ 111 )
    ** The selection and color changing in the document shows that the incremental search lags one step. ( 111 → 111 → 222 → 333 → 222 )

    So the Find dialog box will not have this behavior?

    —————
    4:
    The history Search Colors (i.e. from Search string (2) ) is temporarily suppressed during incremental search.
    ** But once I press Enter key, or Find Previous/Next is used, the history Search Colors should work again.

    in reply to: View Source Editor #25892
    LTT
    Participant

    Please try these steps to see the issue I mean:

    Disable “View Source by EmEditor on Internet Explorer” option in EmEditor and exit.

    Delete this key (or change the value in it):
    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\View Source Editor\Editor Name\

    Delete “AppVer” (or change it smaller) in:
    HKEY_CURRENT_USER\Software\EmSoft\EmEditor v3\Common\
    ▲ to simulate the first launch after update.

    Run EmEditor.

    ** See the change in:
    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\View Source Editor\Editor Name\

    in reply to: External Tool ID #25878
    LTT
    Participant

    Hope Title will not act as ID.
    Each external tool should have a lifelong internal ID.

    in reply to: Indent #25871
    LTT
    Participant

    F:
    Filter with a string.
    Select all.
    Increase/Decrease Line Indent. (Or press Tab/Shift+Tab.)
    Disable the filter.
    ** Result: All the lines changed.

    LTT
    Participant

    How about moving the “Batch” down to the bottom, since the Replace box is quite wide now. And thus we can drag to make it even wider than side-by-side.

    And please consider “Pseudo-Maximize” behavior for such windows.
    See “Issue D” in: https://www.emeditor.com/forums/reply/23871/
    Double-clicking on title bar is more quick and convenient than dragging the border. And Maximize/Restore is much better than changing the size now and then.

    —————
    Issue 1:
    Drag to make Replace box to its minimal width.
    Open Batch.
    Drag to enlarge the width.
    Drag to minimize the width.
    Close Batch.
    The width now is not minimal.

    —————
    Issue 2:
    The TXT type exported from Batch is not correct.
    Only the “Find” column is included.

    LTT
    Participant

    Do you just want to paste and replace all the strings at a time?
    See if these helps:

    Method 1:
    Put the source strings into EmEditor. (They should be one per line.)
    Turn on any CSV mode.
    Click the column header (above the ruler) to select the whole column.
    Copy. (So they are copied as a column via EmEditor.)
    Now you use “Select All” in your case.
    Paste.

    Note:
    The target should be a vertical selection, or a block of multiple selections, i.e. one string per line (like in your case).

    —————
    Method 2:
    Add a CSV format (with ” as the delimiter in your case).
    In such a CSV view, the strings in “” are in an individual column.
    Turn on Cell Selection mode. (Now the delimiters are hidden. And you can work like in Excel.)
    Copy the source strings in another app. (Or copy them as a column via EmEditor as mentioned in Method 1.)
    In EmEditor, click the first cell that your paste begins (i.e. you can paste a block of cells, as well as the whole column).
    Paste.
    (You can even paste 2+ columns at a time.)

    Means may vary, e.g. Cell Selection mode is not necessary in some other CSV cases.
    A smart CSV view often makes the job easy.

Viewing 25 posts - 176 through 200 (of 392 total)