Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #26961
    LTT
    Participant

    Customize: Active String:
    Type: URLs
    Event: Hovered
    Action: Run macro:
    ShowTip('<a href="' + document.ActiveString + '">^</a>', eeShowTipActiveString);

    Now hover over a URL in EmEditor.
    Clicking the tooltip should open the URL.
    ** But it opens EmEditor’s folder instead.

    #26983
    Yutaka Emura
    Keymaster

    This issue was fixed on v20.1 beta 7 (20.0.907).

    #27084
    LTT
    Participant

    Settings is as above.
    If the URL contains a percent-encoded string, e.g. %22, the tooltip will flicker when mouse cursor hovers over %22.

    #27087
    Yutaka Emura
    Keymaster

    That’s because both your macro and “%22” want to show tooltips. Which tooltip do you want to see?

    #27092
    LTT
    Participant

    If ActiveString_1 contains ActiveString_2, the hovered inner one (i.e. 2) should take precedence.

    And hope other issues can be resolved when feasible:
    emeditor.com/forums/topic/active-string

    #27102
    Yutaka Emura
    Keymaster

    I will look into the tooltip issue when active strings are nested.
    Which other issues are you referring to? Please write a new question as a new separate thread, and reiterate the issues with screenshots if possible. For me, one question per thread would be even better for me so I can understand well. Thank you.

    #27103
    Yutaka Emura
    Keymaster

    As for the tooltip issue, please consider writing your macro as:

    if( document.ActiveString.substr(0,4) == "http" || document.ActiveString.substr(0,3) == "www" )
        ShowTip('<a href="' + document.ActiveString + '">^</a>', eeShowTipActiveString);

    This way, the tooltip will appear only when the active string begins with “http” or “www”, thus the macro tooltip will not appear when hovering on the inner string %22.

    #27106
    LTT
    Participant

    I mean the unresolved issues I collected in the thread below (and you said you would consider the solution in the future):
    emeditor.com/forums/topic/active-string/#post-23156

    e.g. Click to select a nested Active String.

    Thank you for the macro solution.
    I’ll try to workaround these issues via macros first.
    If not resolved, I’ll post them one per thread clearly.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.