[go: up one dir, main page]

Skip to content

Duplicate snippets action

Description

I would like a Duplicate button added to snippets to make it dead simple to create a duplicate. I often find I have multiple versions of a snippet with slight variations. For instance I have an off-canvas scroll script for Foundation, but also have a modified version for when sticky nav is present.

Anyway, currently to create the duplicate you create a new one, copy all the code, make your modification and post it. The Duplicate would simply remove the 'copy all the code' step from the workflow.

Proposal

Please add a Duplicate button to the snippets page.

Current Proposal
Screen_Shot_2018-05-14_at_8.23.01_PM Duplicate button

Flow

Clicking "Duplicate" routes me to a "New snippet" page that is 1:1 pre-filled with all details from the original edit.

  • Title (duplicated)
  • Description (duplicated)
  • Visibility Level (duplicated)
  • File name (duplicated)
  • File (duplicated)

Clicking this action, focus is within the "Title" field with an altered suffix "Title – Duplicate", cursor highlighting the full suffix.

Documentation blurb

If you're looking to create a new snippet which is a variant of an existing snippet, simply click the 'Duplicate' button to generate a new snippet with the contents of the original.

Edited by Andreas Kämmerle