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.
1 Like
The simplest way is to use a file handle in your manifest for *.svg, you can get the current path using await replit.me.filePath()
2 Likes
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.
1 Like
https://replit.com/extensions-docs/API%20Reference/extension.json Scroll down. You can trigger it by clicking three dots then open with
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.