Skip to content

Command Key Combo Not Going to Emacs #2064

@nickali

Description

@nickali

Discord username (optional)

No response

Describe the bug

In my init.el for Emacs, I have CMD-a mapped to call an Emacs function.

I noticed that CMD-a does a 'select all blocks' in Warp, so I remapped that to CMD-SHIFT-a.

Now nothing seems to happen when I press CMD-a. Is the CMD-a not being sent to Emacs?

This is how it's set up in iTerm. In my init.el, I have the following lines:

(setq mac-command-modifier ‘hyper)
(define-key map "\e[1;P11" (kbd "H-a”))

The first line sets the CMD button to Emacs hyper key. The define-key line says the sequence [1;P11 triggers the CMD-a. In iTerm, I have a key mapping that says send ^[[1;P11 when I press CMD-a.

I don't see anywhere in Warp where I can set such settings. Is there a place where I can do this?

To Reproduce

Create a blank ~/.emacs/init.el file.

Insert the following lines:
(global-set-key (kbd "H-a") 'execute-extended-command)
(setq mac-command-modifier ‘hyper)
(define-key map "\e[1;P11" (kbd "H-a”))

Start emacs:

emacs -nw

If it doesn't work, nothing will happen when you hit CMD-a.

Expected behaviour

When reproducing above, hitting CMD-a should return something like:

cd
arp
dox
...

Screenshots

No response

Operating System

MacOS

OS Version

12.6.1

Shell Version

zsh 5.8.1 (x86_64-apple-darwin21.0)

Warp Version

v0.2022.11.01.08.03.stable_00

Additional context

No response

Does this block you from using Warp daily?

No

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    FEATUREFeature Requests

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions