Forum Replies Created

Viewing 25 posts - 326 through 350 (of 392 total)
  • Author
    Posts
  • LTT
    Participant

    Hello Yutaka,

    Patrick C mentioned the macro I wrote here:
    https://www.emeditor.com/forums/reply/22295/
    https://www.emeditor.com/forums/topic/macro-menu-toggle-runs-at-events-option-for-macros/

    So let me explain further what we need with the reason why I wrote that macro:

    I use some of the event-driven macros not permanently, but momently. When the job is finished, I turn the macro(s) off.
    If one wants to turn such macros on and off quite often, or to switch among them quickly, the “Customize Macros” dialog is inconvenient.
    Moreover, in the dialog, one can not tell the event-driven macros from the others, or tell their status, with a glance.

    So I wrote the macro. It lists only the event-driven macros in a menu. Clicking in the menu toggles the [Runs at Events] option for the relevant macro. Checked or unchecked. Clear and easy.
    The menu is persistent, till the user closes it.

    The macro is not “running a macro within a macro”. It just reads/writes e.g. “Events0” for “Macro0” using GetProfileInt/WriteProfileInt methods.

    It’s really a pity to lose this unique benefit.
    Please consider making a better solution so that users can still achieve it via macros at least.
    Thank you.

    + Further thought:
    Or how about adding a “Run at Events” command in the right-click menu of “My Macros List” menu:
    In “Customize Macros” dialog, we select events for a macro to make it event-driven.
    Then in “My Macros List” menu, we can toggle the [Runs at Events] option for the macro with this command in its right-click menu.
    This command should be designed to only work for the macros that have events.
    And in “My Macros List” menu, such a macro is checked to indicate that it is running at events.
    (But I think my macro is better than this solution.)

    in reply to: Active String issues #22329
    LTT
    Participant

    Both URLs and Percent-encoding: Hovered = Decode and Show as Tooltip
    When a Percent-encoding string in a URL is hovered, the tooltip will flicker.
    When a Percent-encoding string is selected and hovered, the tooltip will not show.

    Colors:
    When it is not selected, after the value is changed via Color Picker, the string will not be redrawn immediately.
    When it is selected, after the value is changed via Color Picker, and the length of the string is changed, I think the length of the selection should also change correspondingly.

    Marker / Search string (1):
    L-Clicked = None + Select String before Action. Not working.
    D-Clicked = None + Select String before Action. Not working.
    M-Clicked = None + Select String before Action. Works but triggers scroll mode.
    R-Clicked = None + Select String before Action. Works but triggers context menu.

    BTW,
    In Start Window:
    R-click to popup the menu,
    Then Alt or Esc to close the menu.
    But this also triggers the context menu of the main window.

    in reply to: Active String issues #22023
    LTT
    Participant

    Hovered = Decode and Show as Tooltip
    When hovering mouse on a very long string, I saw the tooltip keep flickering (and CPU usage high), till I pressed Esc key (not always working). But would happen again after mouse moving.
    So I thought of it that way.
    Hope you will find the real reason and fix it.

    Hovered = Open URL
    I don’t think one would use it this way.
    But surely it would be best if such uses can be optimized.

    in reply to: Active String issues #22020
    LTT
    Participant

    Oh… not really “just default settings” of course.
    The relevant Settings should be set:

    Hex Colors:
    L-Clicked = None
    D-Clicked = Color Picker
    Or/And:
    M-Clicked = Color Picker
    Or/And:
    R-Clicked = Color Picker

    in reply to: Active String issues #22019
    LTT
    Participant

    Sorry about the delay…

    You can’t reproduce either of them?

    All can be reproduced with just default settings (v16.9.3):

    Right-click issue is the simplest one.
    No more info I can think of to add.

    Middle-click issue:
    Only when the view is scrollable.
    Add enough lines, or make the window small.

    Double-click issue:
    Left-click Action should be “None”.

    in reply to: Menu issues/suggestions #21990
    LTT
    Participant

    And I hope such list menus will scroll automatically when the mouse is hovering on the little triangle (▴▾).

    Please consider this enhancement.
    The menus are getting longer. Auto-scroll would be more convenient. While Clicking could cause misoperations.

    in reply to: Menu issues/suggestions #21989
    LTT
    Participant

    Now let’s go on.
    I’m still talking about the Tray Icon Menu.

    Do the same as this image shows:

    After “Pin…” or “Remove…” is clicked, the menu stays still as if nothing happened.
    This could cause misunderstanding and misoperations: At this moment if one (thinks the operation failed and) does this step again on 3.txt, he is actually doing it on 4.txt now.

    The menu should be refreshed instantly, or closed.

    in reply to: Menu issues/suggestions #21988
    LTT
    Participant

    @Yutaka
    Now the clarified procedure on this trivial issue:

    Setting: (in order to reproduce easily)
    Popup if Number of Items Exceeds: 1

    Customize Tray Icon Menu (1) or (2) like this image:

    Now the menu should look like this image:

    Pin at least one item. This is necessary.

    Now hover and move the mouse between AAA and BBB several times.
    Now the menu should look like this image:

    ** Each time, a Separator line will be added at the bottom of the RecentFileList submenu, unless you close the whole menu.

    in reply to: Menu issues/suggestions #21771
    LTT
    Participant

    Please see the image:

    I want to use Pin/Unpin… and Remove… in Tab Menu.

    I’ll be back if more info is needed.

    in reply to: Open file in explorer #21760
    LTT
    Participant

    dopus AnyPath\AnyFile
    ^ Running Directory Opus this way will make it open AnyPath and select AnyFile.

    So, in EmEditor’s [External Tools], just add an entry for your Directory Opus. And [Arguments] is just “$(Path)”.
    This will make Directory Opus handle the current file opened in EmEditor.

    Will you give it a try and tell me if this is what you want?

    in reply to: Open file in explorer #21756
    LTT
    Participant

    I think Yutaka means the default [Windows Explorer] entry in [External Tools].

    SHOpenFolderAndSelectItems is good. I like it as well.
    But I don’t think we need to rely on it all the time.

    I just suggest you launch your custom explorer via [External Tools] (and thus you can assign a keyboard shortcut to it), regardless of whatever the referred entry in Tab Menu would be.
    Is there any disadvantage for you that way?

    in reply to: Open file in explorer #21752
    LTT
    Participant

    @Skeeve
    @Display Error

    I think [External Tools] are also the (better) solutions when needed, where you can customize whatever you want. Not only the opened file can be handled, but also the text, e.g. $(SelText), $(CurLine), etc. And shortcut keys can be used.

    And you can even use macros, which can handle RecentFileList, etc. Shortcuts can be used as well.

    By the way,
    For Windows Explorer, SHOpenFolderAndSelectItems will reuse the existing window of the same path, and change the selection in it. This is the difference I see. So sometimes I’d rather using:
    explorer /n,/select,”$(Path)”
    which keeps different selections in different windows.

    LTT
    Participant

    If my understanding is correct, in such a case, you don’t have to use a macro, or write it that way.
    Just try these nimble steps:
    (Multiple Selections should be enabled. I think you know what it is.)

    Select “[1!#”;
    Select All Occurrences (in context menu. Default shortcut key: CTRL+Shift+A);
    (If the first string is complex, you can input a regular expression and use “Select All” button in Find dialog box;)
    Press Esc key once (and only once) to collapse the selections;
    (Now all the cursors should be blinking just before the numbers you are going to replace;)
    Word Right Extend (Default: Ctrl+Shift+Right);
    (Now all the target numbers should be selected;)
    Numbering (in context menu: Advanced. Default: Alt+N);
    In Numbering dialog box:
    ^ First Line: 1
    ^ Increment: 1
    ^ Decimal
    Done.

    You can record this procedure as a macro.
    But I’d suggest keeping these smart commands in mind and using them deftly in different cases. I think such operations are more flexible, more interesting, and more “EmEditorism”.

    However, if you’d rather use a macro of your style:

    redraw = false;
    document.selection.StartOfDocument();
    var count = 1;
    var strFind = "\\[1!#";
    while(document.selection.Replace(strFind + "\\d+", strFind + count, eeFindReplaceRegExp | eeFindNext)) count++;
    LTT
    Participant

    I feel the Top/Bottom moving is not satisfying yet: The moved item got deselected.
    So for example, if I want to move the item to the next-to-last position, I have to:
    Move the item to bottom;
    Scroll to bottom;
    Select the bottom item;
    Move it up.
    I think the scrolling and reselecting operations can be avoided.

    in reply to: Snippets Issue + Shortcut Suggestions #17256
    LTT
    Participant

    [Delete Spaces at End of Lines] setting doesn’t work on snippet editing.
    Using StartOfDocument/EndOfDocument in a snippet doesn’t scroll the view.

    in reply to: Snippets Issue + Shortcut Suggestions #17087
    LTT
    Participant

    Thank you!

    + A suggestion:
    If we close the Snippets pane, all the snippets being edited will be saved and closed. I don’t think this is a proper design. Hope the snippets can be edited somehow even when the Snippets pane is closed. Or, there should be a prompt.

    in reply to: Snippets Issue + Shortcut Suggestions #17040
    LTT
    Participant

    Hi Yutaka,
    If this issue is not worth fixing, could you tell me another way to abandon the snippet editing?

    in reply to: [Stable Sort] Option #11305
    LTT
    Participant

    Thank you very much for the explanation and the example.

    in reply to: [Stable Sort] Option #11302
    LTT
    Participant

    If the Stable Sort is off, the second column order can be changed (the behavior is undefined).

    Could you give an example that in TSV mode the Non-Stable sort result differs from the Stable one?

    in reply to: [Stable Sort] Option #11292
    LTT
    Participant

    Sorry but I still don’t know when to use the [Stable Sort] option in [Tools >> Customize >> Sort]. :-(

    in reply to: [Stable Sort] Option #11290
    LTT
    Participant

    But how to do Non-Stable sort in TSV mode?
    Or, How to use the [Stable Sort] option?

    in reply to: Font size scaling on 120 DPI #11186
    LTT
    Participant

    The font size in the input box of the Find toolbar is also larger than before. Is this another DPI issue? I’d prefer the same font size as in the Find dialog.

    + A suggestion:
    I hope the input box of the Find toolbar can be resized by dragging the right edge of it.

    Google toolbar has such a feature:
    The cursor changes (to the system SizeWE arrow) when hovering on the gray line. Dragging the line will resize the input box.

    in reply to: [Close Group] command can not close the last group. #10941
    LTT
    Participant

    I checked things again:
    This would happen when [Close Group by Closing Window when Tab is Enable] option is disabled (and there are more than one tab in the last group).

    LTT
    Participant

    Thank you for the solution.

    By the way, I remember the depth of the clipboard history once was 33. Now it’s 32. I tried changing MaxClipboardHistory. But no effect. Only the part for “Monitor the Clipboard copied on External Applications” (0x80000000) works.
    MaxClipboardHistory is only for disabling the Clipboard history?

    in reply to: Reloading the file will clear the bookmarks. #10835
    LTT
    Participant

    Hello Yutaka,

    You forgot this?

Viewing 25 posts - 326 through 350 (of 392 total)