I’m asking because I’m making an extension that lets you live edit SVGs, but as of right now I can’t figure out how to get the file that the user is viewing [the SVG] and I don’t want to have to make my own file explorer for the extension since that gets messy real quick.
The simplest way is to use a file handle in your manifest for *.svg, you can get the current path using
How do I set up the file manifest? I saw no information on that, and I’m confused. Thanks for the information, though!
Use file handlers. They’re in the docs.
https://replit.com/extensions-docs/API%20Reference/extension.json Scroll down. You can trigger it by clicking three dots then open with
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.