Commit 4441109
authored
feat: Add copy/rename/delete options to notebook overflow menu (#1551)
* Adds options to make a copy of, rename, or delete the file currently
being viewed in the notebook panel
* Resolves #1359
#### Testing Instructions:
* Open any file create a new file
* Navigate to the overflow menu in the top right of the notebook panel
* The "copy file" option should create a copy of the currently open file
with all of its contents copied over
* The created copy should not appear in the file explorer until a save
operation is done on it
* The "rename file" option should cause the file to appear in the file
explorer with the same contents and specified name
* If the file was saved under a different name before, the old file
should be deleted
* If the file was never saved before, this operation will be identical
to a save
* The "delete file" option should close the file that the notebook panel
is currently displaying.
* If the file has been saved before, the saved file should be deleted
and no longer in the file explorer
* If the file was never saved before, this operation will be identical
to closing the file and discarding any changes
---------
Co-authored-by: georgecwan <georgecwan@users.noreply.github.com>1 parent f06fbb0 commit 4441109
1 file changed
Lines changed: 68 additions & 2 deletions
Lines changed: 68 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
164 | 168 | | |
165 | 169 | | |
166 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
169 | 176 | | |
| |||
268 | 275 | | |
269 | 276 | | |
270 | 277 | | |
| 278 | + | |
271 | 279 | | |
272 | 280 | | |
273 | 281 | | |
| |||
547 | 555 | | |
548 | 556 | | |
549 | 557 | | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
550 | 579 | | |
551 | 580 | | |
552 | 581 | | |
553 | 582 | | |
554 | | - | |
| 583 | + | |
555 | 584 | | |
556 | 585 | | |
557 | 586 | | |
558 | 587 | | |
559 | 588 | | |
560 | 589 | | |
561 | 590 | | |
562 | | - | |
| 591 | + | |
563 | 592 | | |
564 | 593 | | |
565 | 594 | | |
| |||
650 | 679 | | |
651 | 680 | | |
652 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
653 | 710 | | |
654 | 711 | | |
655 | 712 | | |
| |||
1118 | 1175 | | |
1119 | 1176 | | |
1120 | 1177 | | |
| 1178 | + | |
1121 | 1179 | | |
1122 | 1180 | | |
1123 | 1181 | | |
| |||
1308 | 1366 | | |
1309 | 1367 | | |
1310 | 1368 | | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
1311 | 1377 | | |
1312 | 1378 | | |
1313 | 1379 | | |
| |||
0 commit comments