Command as Ctrl in Emacs (OS X) #292

Open
opened 2016-05-28 02:31:02 +02:00 by skalyan91 · 6 comments
skalyan91 commented 2016-05-28 02:31:02 +02:00 (Migrated from github.com)

I'm aware that when running CRT on Mac, the "Command" key gets interpreted as Ctrl. (This was pointed out in another issue.) This is fine, except that the Command-c and Command-v shortcuts are already used for "Copy" and "Paste", which means then when running Emacs, I cannot use shortcuts that involve Ctrl-c and Ctrl-v (for which I have to type Command-c and Command-v)! This is a significant problem, because the only way to quit Emacs is to type Ctrl-x Ctrl-c.

It would be good if either

  1. the "Control" key on the keyboard could be interpreted as Ctrl, or
  2. the Command-c and Command-v shortcuts for "Copy" and "Paste" could be manually disabled.

I have tried the latter with a third-party app (BetterTouchTool), but it doesn't work.

Thanks again for the app! I would really love to be able to use it for all my terminal needs, but this is the one thing standing in the way….


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

I'm aware that when running CRT on Mac, the "Command" key gets interpreted as Ctrl. (This was pointed out in another issue.) This is fine, except that the Command-c and Command-v shortcuts are already used for "Copy" and "Paste", which means then when running Emacs, I cannot use shortcuts that involve Ctrl-c and Ctrl-v (for which I have to type Command-c and Command-v)! This is a significant problem, because the only way to quit Emacs is to type Ctrl-x Ctrl-c. It would be good if either 1. the "Control" key on the keyboard could be interpreted as Ctrl, or 2. the Command-c and Command-v shortcuts for "Copy" and "Paste" could be manually disabled. I have tried the latter with a third-party app (BetterTouchTool), but it doesn't work. Thanks again for the app! I would really love to be able to use it for all my terminal needs, but this is the one thing standing in the way…. ## <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/34650683-command-as-ctrl-in-emacs-os-x?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F479407&utm_medium=issues&utm_source=github). </bountysource-plugin>
skalyan91 commented 2016-05-28 03:04:16 +02:00 (Migrated from github.com)

I tried removing references to "copyAction" and "pasteAction" in various .qml files, as well as changing main.qml so that copyAction is defined as "" rather than "Ctrl+Shift+C". (I then recompiled the app.) Nothing seems to work; the menus still show Cmd-C and Cmd-V as copy and paste shortcuts, and these shortcuts are still in effect.

I tried removing references to "copyAction" and "pasteAction" in various .qml files, as well as changing main.qml so that copyAction is defined as "" rather than "Ctrl+Shift+C". (I then recompiled the app.) Nothing seems to work; the menus still show Cmd-C and Cmd-V as copy and paste shortcuts, and these shortcuts are still in effect.
beebopkim commented 2016-06-13 20:51:13 +02:00 (Migrated from github.com)

Well, even I am using OS X, I prefer Ctrl key when I use emacs. It may be better to choose that which key acts as Ctrl key in the Preference window.

Well, even I am using OS X, I prefer Ctrl key when I use emacs. It may be better to choose that which key acts as Ctrl key in the Preference window.
skalyan91 commented 2016-06-14 04:15:40 +02:00 (Migrated from github.com)

@beebopkim In my .emacs file, I have actually mapped the "option" key on my Mac to act as Ctrl. But still in CRT it only understands the "Command" key as Ctrl, and Escape as Meta. Where is the "Preference" window where I can choose the key that acts as Ctrl? I don't see any option for this in the CRT Preference window.

Are you able to get Ctrl-c, Ctrl-x and Ctrl-v shortcuts working properly in Emacs under CRT?

@beebopkim In my `.emacs` file, I have actually mapped the "option" key on my Mac to act as Ctrl. But still in CRT it only understands the "Command" key as Ctrl, and Escape as Meta. Where is the "Preference" window where I can choose the key that acts as Ctrl? I don't see any option for this in the CRT Preference window. Are you able to get Ctrl-c, Ctrl-x and Ctrl-v shortcuts working properly in Emacs under CRT?
dforgeas commented 2016-10-12 23:37:02 +02:00 (Migrated from github.com)

I can type Ctrl+C with Control+C as you expect, so for instance I'm able to trigger a SIGINT signal with Control+C. I can confirm that Command+C copies the text, but Command+D and Ctrl+D both send EOF as you expect.

I can type Ctrl+C with Control+C as you expect, so for instance I'm able to trigger a SIGINT signal with Control+C. I can confirm that Command+C copies the text, but Command+D and Ctrl+D both send EOF as you expect.
tguless commented 2017-05-12 00:28:49 +02:00 (Migrated from github.com)

This patch fixed the issue for me.

65225a5c47

This patch fixed the issue for me. https://github.com/adammathes/qmltermwidget/commit/65225a5c47faf9358de82ba3c0de1230d87835f2
athompso commented 2018-07-03 17:35:01 +02:00 (Migrated from github.com)

The Command+Control+key workaround documented in #378 works for me consistently, as of v1.0.1 on macOS 10.13.6.
Anyone know if the qmltermwidget patch fixes all the other related Control-key-related problems on macOS ?

The Command+Control+key workaround documented in #378 works for me consistently, as of v1.0.1 on macOS 10.13.6. Anyone know if the qmltermwidget patch fixes all the other related Control-key-related problems on macOS ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#292
No description provided.