This is a Figma plugin that provides an easy way to copy a Prototype link to specific Frames to the clipboard without having to switch to the Presentation mode.
Select layers and run the Copy prototype link
command, and the link will be copied to the clipboard. You can also select and copy links to multiple selected Frames. In this case, each link will start with the name of its Frame.
The plugin must know the File Key to be able to create a prototype link. But this Key is private and it is only accessible to plugins published internally to a company that is on an Organization plan. So to make the plugin work you need to insert this File Key manually on first start of the plugin:
- Click the 'Share' button on the top panel and click the 'Copy link'. Or you also can copy the whole File URL from the browser's address bar. The File URL looks like: https://figma.com/file/e9z7p5lisUPmRe9z7p5lisUPm/FileName
- Go to: Plugins -> Prototype Quick Link -> Settings
- Paste the copied URL to the input field and the plugin will extract the File Key automatically. You also can paste only the File Key to the input field.
- Done! Click 'Save' and use the plugin
Your file share link is not sent to any external server.
-
Install dependencies
yarn install
-
Get the Figma desktop app. At this time, plugin development and testing needs to be done using the Figma desktop app. This is because Figma needs to read your code saved as a local file.
-
Log in to your account and open the file editor in the Figma desktop app.
-
Go to
Menu > Plugins > Development > New Plugin...
. This will bring up the "Create a plugin" modal. Choose themanifest.json
from this project.
Run the watcher that will transpile .ts files into .js files on change
yarn dev
-
Bump the app version
yarn release -- <version> # example: yarn release -- patch # or (shortcut) yarn patch
This command:
- increments the version in the
package.json
- creates and pushes commit and tag to the repo (see the
utils/release.sh
file to see the tag template) - makes the new build with the bumped version
- increments the version in the
-
Follow to the official guide Publish plugins to the Figma Community
- Fix the blinking while Copy Prototype Link command. The problem is the UI should be displayed to be able to render an input and copy value to clipboard. So currently the window (UI) shows up for a second. There is no way to copy value without showing the input. Perhaps Figma will add an ability to move the window and we will be able to move it out of the viewport's edge.
- On Figma, you can set a frame as a Starting Frame for a prototype. When you do, by default when you go into prototype mode it starts from there. If the starting frame has been set, then Copy Prototype Link points to that frame, which isn't intended. We should find a way to bypass this behavior.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
The idea initiator & artwork - Filippos Protogeridis
Plugin creation fueled by coffee