Skip to content

Commit a43fbc5

Browse files
Merge branch 'main' into footer-tips
2 parents 7883620 + e3ede6f commit a43fbc5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

__tests__/shortcutsPopup.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import stripAnsi from 'strip-ansi';
55
import { ShortcutsPopupApp } from '../src/components/popups/shortcutsPopup.js';
66

77
describe('ShortcutsPopupApp', () => {
8-
it('shows the focused-pane menu shortcut as M-M', () => {
8+
it('shows the focused-pane menu shortcut as Alt+Shift+M', () => {
99
const { lastFrame } = render(
1010
<ShortcutsPopupApp
1111
resultFile="/tmp/dmux-shortcuts-result.json"
@@ -16,9 +16,9 @@ describe('ShortcutsPopupApp', () => {
1616

1717
const output = stripAnsi(lastFrame() ?? '');
1818

19-
expect(output).toContain('[M-M]');
19+
expect(output).toContain('[Alt+Shift+M]');
2020
expect(output).toContain('Open the pane menu for the focused tmux pane');
21-
expect(output).toContain('Press M-M in any focused pane');
21+
expect(output).toContain('Press Alt+Shift+M in any focused pane');
2222
expect(output).not.toContain('[M-D]');
2323
});
2424
});

src/components/popups/shortcutsPopup.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const ShortcutsPopupApp: React.FC<ShortcutsPopupAppProps> = ({
3939
});
4040

4141
const shortcuts = [
42-
{ key: 'M-M', description: 'Open the pane menu for the focused tmux pane' },
42+
{ key: 'Alt+Shift+M', description: 'Open the pane menu for the focused tmux pane' },
4343
{ key: 'j', description: 'Jump to selected pane' },
4444
{ key: 'm', description: 'Open pane menu' },
4545
{ key: 'x', description: 'Close selected pane' },
@@ -78,15 +78,15 @@ export const ShortcutsPopupApp: React.FC<ShortcutsPopupAppProps> = ({
7878

7979
{shortcuts.map((shortcut, index) => (
8080
<Box key={index} marginBottom={0}>
81-
<Box width={12}>
81+
<Box width={16}>
8282
<Text color="yellow" bold>[{shortcut.key}]</Text>
8383
</Box>
8484
<Text>{shortcut.description}</Text>
8585
</Box>
8686
))}
8787

8888
<Box marginTop={1}>
89-
<Text dimColor>Press M-M in any focused pane to open that pane&apos;s menu without returning to the sidebar. Press e for hooks, or Esc/? to close</Text>
89+
<Text dimColor>Press Alt+Shift+M in any focused pane to open that pane&apos;s menu without returning to the sidebar. Press e for hooks, or Esc/? to close</Text>
9090
</Box>
9191
</Box>
9292
</PopupWrapper>

0 commit comments

Comments
 (0)