|
| 1 | +--- |
| 2 | +title: "🔃 Selecting and moving cells" |
| 3 | +description: "How to move cells in Pluto" |
| 4 | +tags: ["docs", "editor"] |
| 5 | +layout: "md.jlmd" |
| 6 | +order: 20 |
| 7 | +--- |
| 8 | + |
| 9 | +# Moving a single cell |
| 10 | + Pluto allows you to place your cells in **any order**. You can do this by dragging the cell from the left shoulder. A bold line shows where the cell will be moved to. |
| 11 | + |
| 12 | + |
| 13 | +<video alt="Moving a cell by dragging the left shoulder" style="aspect-ratio: 520/568; max-width: 100%;" src="$(root_url)/assets/img/dragging cells.mp4" controls="controls" muted="muted" loop="loop"></video> |
| 14 | + |
| 15 | + |
| 16 | +!!! tip |
| 17 | + Pluto's reactivity means that you can put cells in **any order**, and they will still execute correctly based on the dependencies between cells. This means that you can place cells in the order that makes the most sense for your story, which is not always the order that makes the most sense for the computer. |
| 18 | + |
| 19 | + For example, you can first tell your story using Markdown cells and plots, and then add a section `# Appendix` with package imports, helper functions and more. |
| 20 | + |
| 21 | + |
| 22 | +# Selecting cells |
| 23 | +You can select multiple cells, which is useful for moving them together. To select cells, **click between two cells and drag to make a selection**. |
| 24 | + |
| 25 | +<video alt="Selecting cells by clicking between two cells and dragging" style="aspect-ratio: 520/568; max-width: 100%;" src="$(root_url)/assets/img/selecting cells.mp4" controls="controls" muted="muted" loop="loop"></video> |
| 26 | + |
| 27 | +> 💡 If your window is wide enough, you can also use the **right margin** to start a selection: |
| 28 | +> |
| 29 | +> <video alt="Selecting cells by clicking on the right margin and dragging" style="aspect-ratio: 707/467; max-width: 100%;" src="$(root_url)/assets/img/selecting cells by right margin.mp4" controls="controls" muted="muted" loop="loop"></video> |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +## Moving multiple cells |
| 35 | +You can move multiple cells by **Selecting multiple cells** and then dragging one of them. |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +## Copying cells |
| 40 | +If you press <kbd>Ctrl</kbd>+<kbd>C</kbd> (or <kbd>Cmd</kbd><kbd>C</kbd> on Mac) while cells are selected, you can copy them to the clipboard. You can paste these cells in a notebook, or as plain text in another application. |
| 41 | + |
| 42 | + |
| 43 | +## More actions |
| 44 | +While multiple cells are selected, you can apply various actions to them simultaneously: moving, copying, deleting, folding and un-folding. |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | +# Moving between notebooks |
| 50 | +You can also move cells between different notebooks. To do this, [open two notebooks in two different windows](https://plutojl.org/en/docs/launch-pluto/), and place them side-by-side. You can now **drag cells between the two notebooks**, and they will be copied to the other notebook. |
| 51 | + |
| 52 | + |
| 53 | +<video alt="Moving cells between notebooks by dragging them between two open notebooks" style="aspect-ratio: 1038/624; max-width: 100%;" src="$(root_url)/assets/img/moving cells between notebooks.mp4" controls="controls" muted="muted" loop="loop"></video> |
| 54 | + |
0 commit comments