• TehPers@beehaw.org
      cake
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 minutes 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.

    • crunchy@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 hours ago

      I can count on one hand the number of jobs or functions I’ve seen people try to get AI to do that isn’t already done better by a hard-coded program or an Excel spreadsheet.