maxmartynov / figma-plugin-copy-prototype-link

Figma plugin that provides an easy way to copy a Prototype link to the clipboard without having to switch to the Presentation mode.

Home Page:https://www.figma.com/community/plugin/832335368157959508/Prototype-Quick-Link

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prototype Quick Link — Figma Plugin

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.

How To Use

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.

First Setup:

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:

  1. 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
  2. Go to: Plugins -> Prototype Quick Link -> Settings
  3. 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.
  4. Done! Click 'Save' and use the plugin

Info:

Your file share link is not sent to any external server.

Development

Installation

  1. Install dependencies

    yarn install
  2. 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.

  3. Log in to your account and open the file editor in the Figma desktop app.

  4. Go to Menu > Plugins > Development > New Plugin.... This will bring up the "Create a plugin" modal. Choose the manifest.json from this project.

Start

Run the watcher that will transpile .ts files into .js files on change

yarn dev

Publishing

  1. 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
  2. Follow to the official guide Publish plugins to the Figma Community

TODO

  • 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.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Credits

The idea initiator & artwork - Filippos Protogeridis

Support

Plugin creation fueled by coffee

ETH: 0x4d3e86fa5aE38d8615b6da2F37C3E723050112C3

License

MIT

About

Figma plugin that provides an easy way to copy a Prototype link to the clipboard without having to switch to the Presentation mode.

https://www.figma.com/community/plugin/832335368157959508/Prototype-Quick-Link

License:MIT License


Languages

Language:Vue 60.9%Language:TypeScript 30.1%Language:JavaScript 7.2%Language:Shell 1.7%Language:HTML 0.1%