Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[201_321] fix: Alt+W (M-w) should copy like Emacs#2968

Merged
wumoin merged 3 commits intoMoganLab:mainMoganLab/mogan:mainfrom
Prashant27-07:fix-alt-w-copy-v2Prashant27-07/mogan:fix-alt-w-copy-v2Copy head branch name to clipboard
Mar 12, 2026
Merged

[201_321] fix: Alt+W (M-w) should copy like Emacs#2968
wumoin merged 3 commits intoMoganLab:mainMoganLab/mogan:mainfrom
Prashant27-07:fix-alt-w-copy-v2Prashant27-07/mogan:fix-alt-w-copy-v2Copy head branch name to clipboard

Conversation

@Prashant27-07
Copy link
Copy Markdown
Contributor

What

Alt+W (M-w) was not working as copy in Emacs mode.

Why

The keybinding was mapped to "M-W" (capital W) instead of "M-w" (lowercase w),
causing Alt+W to not trigger the copy action.

How

Changed "M-W" to "M-w" in prefix-kbd.scm to correctly map Alt+W to the copy action
in Emacs mode.

How to test

  1. Open Mogan
  2. Enable Emacs mode
  3. Select some text
  4. Press Alt+W
  5. The text should now be copied (not cut)

Fixes #321

Copy link
Copy Markdown

@ice1000 ice1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

@Prashant27-07
Copy link
Copy Markdown
Contributor Author

Hey I have also added the devel file devel/321.md for this fix

@wumoin
Copy link
Copy Markdown
Contributor

wumoin commented Mar 11, 2026

Please update your project number according to CONTRIBUTING.md.

@Prashant27-07
Copy link
Copy Markdown
Contributor Author

@wumoin I have renamed the devel file to devel/201_321.md as per CONTRIBUTING.md format.

@wumoin wumoin changed the title [321] fix: Alt+W (M-w) should copy like Emacs [201_321] fix: Alt+W (M-w) should copy like Emacs Mar 12, 2026
@wumoin wumoin merged commit bc7081c into MoganLab:main Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alt+W 好像不是复制

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.