Skip to content

Commit 8894949

Browse files
committed
Reorder Cut and Copy action
1 parent 6128c23 commit 8894949

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

theterminal/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ fn mane() {
8080
Menu {
8181
name: tr!("MENU_EDIT", "Edit").into(),
8282
items: vec![
83-
MenuItem::action(tr!("EDIT_COPY", "Copy"), CopyAction),
8483
MenuItem::action(tr!("EDIT_CUT", "Cut"), CutAction),
84+
MenuItem::action(tr!("EDIT_COPY", "Copy"), CopyAction),
8585
MenuItem::action(tr!("EDIT_PASTE", "Paste"), PasteAction),
8686
],
8787
},

theterminal/src/main_surface.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use gpui::{
1111
ParentElement, Render, Styled, Window, div, px,
1212
};
1313
use std::rc::Rc;
14-
use theterminal::actions::{CloseTabAction, NewTabAction};
14+
use theterminal::actions::{CloseTabAction, CopyAction, NewTabAction, PasteAction};
1515
use theterminal::terminal_screen::TerminalScreen;
1616
use theterminal::terminal_screen::events::{TerminalScreenCloseEvent, TerminalScreenEvents};
1717

@@ -37,6 +37,9 @@ impl MainSurface {
3737
items: vec![
3838
MenuItem::action(tr!("FILE_NEW_TAB"), NewTabAction),
3939
MenuItem::action(tr!("FILE_CLOSE_TAB"), CloseTabAction),
40+
MenuItem::separator(),
41+
MenuItem::action(tr!("EDIT_COPY"), CopyAction),
42+
MenuItem::action(tr!("EDIT_PASTE"), PasteAction),
4043
],
4144
},
4245
),

theterminal/translations/meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"EDIT_COPY": {
33
"context": "main.rs",
4-
"definedIn": "src/main.rs:83",
4+
"definedIn": "src/main.rs:84",
55
"plural": false,
66
"description": null
77
},
88
"EDIT_CUT": {
99
"context": "main.rs",
10-
"definedIn": "src/main.rs:84",
10+
"definedIn": "src/main.rs:83",
1111
"plural": false,
1212
"description": null
1313
},

0 commit comments

Comments
 (0)