feat(tabs): add drag-and-drop reordering

Closes #526
This commit is contained in:
Hakan Seven committed 2026-07-27 22:14:58 +03:00
1 parent b629dc32de
commit c21f3e1a19
6 files changed
+457 -16

No files matched your search

+12
View File
@@ -1497,6 +1497,12 @@ pub enum Message {
TabNew,
/// Switch to the given tab index.
TabSwitch(usize),
/// Move a drawing tab before/after another drawing tab.
TabReorder {
from: usize,
to: usize,
after: bool,
},
/// Close the given tab index.
TabClose(usize),
/// Open/close the right-click menu for a drawing tab.
@@ -1934,6 +1940,12 @@ pub enum Message {
PspaceCommand,
/// Switch to a named layout ("Model" or paper space layout name).
LayoutSwitch(String),
/// Move a paper layout before/after another paper layout.
LayoutReorder {
from: String,
to: String,
after: bool,
},
/// Create a new paper space layout.
LayoutCreate,
/// Delete the named paper space layout (Model cannot be deleted).