Git Product home page Git Product logo

Comments (6)

AndydeCleyre avatar AndydeCleyre commented on May 28, 2024

I'd very much appreciate knowing whether anyone else succeeds or fails in reproducing this. I wonder if I missed some relevant system state in the report, as being reproduced by this very specific trigger is pretty strange.

from espanso.

AndydeCleyre avatar AndydeCleyre commented on May 28, 2024

Possibly related:

from espanso.

AndydeCleyre avatar AndydeCleyre commented on May 28, 2024

Here's another example of the infinite loop (if you try it, set a timer to kill espanso before you use the trigger):

  - trigger: ":-"
    replace: "--- $|$ ---"

from espanso.

AndydeCleyre avatar AndydeCleyre commented on May 28, 2024

Now that I look at the nested matches doc, it seems the first case is actually intentional, though I don't understand why. Shouldn't a nested match be specified with its full trigger, rather than its trigger but-without-a-potential-leading-colon?

The second case still must be unintentional, and may still be related to the implementation enabling the first.

from espanso.

AndydeCleyre avatar AndydeCleyre commented on May 28, 2024

Well for my own usage, I think this would be resolved if I could disable nested matches altogether, and have opened a request for that at #1733.

I don't understand why something matches :something when it comes to nested matches, but I'd be very happy to just ensure recursive replacement is never a possibility in my setup.

from espanso.

smeech avatar smeech commented on May 28, 2024

I don't think what you're seeing is intentional.

I've tried all your examples (Linux Mint 21.2 x86_6, Xfce 4.18) and can't reproduce your outputs. I can only produce the nested match effect with the configuration specified in the docs, where the nested match is triggered by:

    vars:
        params:
          trigger: :something

as shown in the example, so I don't get any accidental triggering.

I think what you're seeing is a bug.

from espanso.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.