• TehPers@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    20 hours ago

    I’ve used it as a sort of find and replace in the past, but by feeding it the output from Ripgrep to skip the “find” part. The “replace” was just unwrapping unnecessarily confusing “try” blocks and allowing errors to propagate to the appropriate handlers. This would have required a syntax-aware replacement tool (and some exist but I didn’t really feel like learning one for a one-off).

    As a simple “find this text and replace with this other text” it makes no sense.