carbon-ui-builder icon indicating copy to clipboard operation
carbon-ui-builder copied to clipboard

Add copy and paste hot keys

Open gcate opened this issue 2 years ago • 8 comments

It would be nice if I could use keyboard for common actions. Here's a short list of relevant hot keys that I commonly use in sketch with most common at top

  • [x] ~~delete key~~
  • [x] ~~duplicate ctrl D~~
  • [ ] copy ctrl C
  • [ ] paste ctrl V
  • [x] ~~undo ctrl Z~~
  • [x] ~~redo shift ctrl Z~~

gcate avatar Jun 16 '22 21:06 gcate

Delete, duplicate, undo and redo are now available.

Copy and paste will take a bit more time.

zvonimirfras avatar Jun 21 '22 17:06 zvonimirfras

where should I add the resolved issue? @gcate

kushcoder12 avatar Oct 12 '22 11:10 kushcoder12

Hey @kushcoder12, what do you mean? :)

zvonimirfras avatar Oct 12 '22 13:10 zvonimirfras

By copy and paste, do you mean the copied component must drop into a specified Column within a certain Grid?

theGeekyLad avatar Oct 26 '22 07:10 theGeekyLad

@theGeekyLad Hitting a copy hotkey would put the component(s) json into clipboard. Hitting a paste hotkey would parse the json in clipboard and if it's valid component(s), it would add it to wherever the current selection is using the default drop-like behaviour.

Does that make sense?

zvonimirfras avatar Oct 27 '22 15:10 zvonimirfras

@zvonimirfras can i try to work on this?

Gobinath-B avatar Mar 13 '24 17:03 Gobinath-B

Sure, @Gobinath-B 😃

Go ahead!

Do you have a specific idea about the approach?

zvonimirfras avatar Mar 13 '24 17:03 zvonimirfras

I would like to try to implement this approach.

@theGeekyLad Hitting a copy hotkey would put the component(s) json into clipboard. Hitting a paste hotkey would parse the json in clipboard and if it's valid component(s), it would add it to wherever the current selection is using the default drop-like behaviour.

Gobinath-B avatar Mar 13 '24 17:03 Gobinath-B