Skip to content

Commit 2cdc026

Browse files
author
Juan C. Carvajal B.
committed
refactor: improve keybindings for cross-platform compatibility
- Use ctrl-shift-c/v/k pattern (Windows Terminal style) for copy/paste/clear - Add ctrl-shift- as alternative open terminal binding - Keep cmd-w for close (standard Mac shortcut) - Add menu items for all terminal commands with availability checks
1 parent e43dca6 commit 2cdc026

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

keymaps/terminal.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"atom-workspace": {
3-
"cmd-shift-t": "terminal:open"
3+
"cmd-shift-t": "terminal:open",
4+
"ctrl-shift-`": "terminal:open"
45
},
56
"terminal-view": {
6-
"cmd-c": "terminal:copy",
7-
"cmd-v": "terminal:paste",
8-
"cmd-k": "terminal:clear",
7+
"ctrl-shift-c": "terminal:copy",
8+
"ctrl-shift-v": "terminal:paste",
9+
"ctrl-shift-k": "terminal:clear",
910
"cmd-w": "terminal:close"
1011
}
1112
}

menus/terminal.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,29 @@
99
{
1010
"label": "Open Terminal",
1111
"command": "terminal:open"
12+
},
13+
{
14+
"label": "Copy",
15+
"command": "terminal:copy",
16+
"available": "terminal-view"
17+
},
18+
{
19+
"label": "Paste",
20+
"command": "terminal:paste",
21+
"available": "terminal-view"
22+
},
23+
{
24+
"label": "Clear",
25+
"command": "terminal:clear",
26+
"available": "terminal-view"
27+
},
28+
{
29+
"type": "separator"
30+
},
31+
{
32+
"label": "Close",
33+
"command": "terminal:close",
34+
"available": "terminal-view"
1235
}
1336
]
1437
}

0 commit comments

Comments
 (0)