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](/uploads/15a78e334b3b286ccea6e56f1787b256/Screen_Shot_2018-05-14_at_8.23.01_PM.png) | ![Duplicate button](https://gitlab.com/gitlab-org/gitlab-ce/uploads/5bc3df397ebfbe309bf81ef8d13756b0/Screen_Shot_2017-05-12_at_8.51.34_AM.png) | #### 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.
issue