observablehq / feedback

Customer submitted bugs and feature requests
42 stars 3 forks source link

Feature request: My own snippets / cells collection #426

Open triptych opened 2 years ago

triptych commented 2 years ago

I want to better use cells across notebooks. Without knowing a lot about how the cells work or how to import.

Describe the solution you'd like

I have a cell I want to reuse. I drag the cell over to the right onto a clipboard or "saved cells" icon. Or I choose "save cell" in a dropdown menu on the cell. Now that cell is available to any other notebook I can edit. The cell could be from any notebook that allows cells to be shared. Not just my own.

Now I go into another notebook. I click on the clipboard icon and see a list of all the cells I've "stored". I drag one into my notebook and it gets included / embedded just like if I had done it manually. Or I choose "add cell" from the "+" menu and choose a cell I saved.

Describe alternatives you've considered right now you have to know a lot about Observable to understand that you even CAN do this

Additional context Add any other context or screenshots about the feature request here.

triptych commented 2 years ago

Right now you can simply "copy import":

Screen Shot 2022-05-24 at 9 49 07 AM

The ask may be to add "save import to 'my cells'" where 'my cells' is a named collection of cells. In another notebook you can then just "paste" right now, but the ask would be now to have a "add import from 'my cells'" which brings up a dropdown of addable cells. Clicking one does what 'paste' would do right now - puts the import code into a cell.

dkirkby commented 2 years ago

Possible duplicate of #377?