Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doom] C-h and SPC h are different prefixes #337

Closed
gagbo opened this issue Oct 5, 2022 · 4 comments
Closed

[Doom] C-h and SPC h are different prefixes #337

gagbo opened this issue Oct 5, 2022 · 4 comments

Comments

@gagbo
Copy link

gagbo commented Oct 5, 2022

Hello,

I'm pretty sure it's been answered somehow already, but I didn't find any definitive, short, to the point, undisputed source of information for this. The closest is probably #242, but I'm not really sure.

My main problem is that, using Doom, SPC h and C-h lead to different things.

C-h
image

SPC h
image

Is there any documentation that explains why it is different and what I should do to fix this ? I thought, from reading the doc, that keypad would be a "raw" key translation scheme

All "keypad" doc says on github is that "hitting SPC h is like hitting C-h", which is like having a dead-end, since I don't know where I can find more information. I know emacs keymap resolution can be a mess most of the time (I made very specific evil-collection hooks for non standard keyboard layouts), I'd just like to know if there's something I can do to fix the matter.

For the record, Doom maps key to help-map there

All my config is here if necessary, but I don't think I'm doing anything fancy really.

Thanks for the package and the work that's been put up until here,
Gerry

@aisamu
Copy link

aisamu commented Oct 5, 2022

I could only partially reproduce what the images show: SPC h seems to replace all group names with +prefix, but the list is otherwise identical.

The following was taken on a vanilla doom with the latest doom-meow and the "recommended" configuration (meow-edit/doom-meow@5fb355b)

C-h (works fine)

Screen Shot 2022-10-05 at 15 25 27

SPC h (all the purple entries became +prefix)

Screen Shot 2022-10-05 at 15 24 34

I also tried shrinking the window to get multiple pages (as seen on your screenshots) with the same results

@aisamu
Copy link

aisamu commented Oct 5, 2022

C-c vs SPC c is more drastic and matches more of what you've described:

C-c

Screen Shot 2022-10-05 at 15 51 16

SPC c

Screen Shot 2022-10-05 at 15 51 06

The differences:

  • SPC is gone (reasonable, as it's a different thing on Keypad mode)
  • M-g - magit-file-dispatch became [ g
  • C-f - fold is gone, and is being mapped to forward-char instead (and moves the cursor forward if you invoke it!)

Related: meow-edit/doom-meow#5

@gagbo
Copy link
Author

gagbo commented Oct 5, 2022

Are you using the "+leader" flag of the module ? It adds a lot of things I'm not sure I want, and at least until I have a rough idea of how mappings work, I'd rather start from a closer to bare emacs step, because when I break something I want to be able to at least reason about what's wrong

@gagbo
Copy link
Author

gagbo commented Oct 5, 2022

Got my answer there : #226 (comment)

I need to press SPC again in order to make appear the "classic" keymaps. The crux is that even if which-key shows a bare d, hitting it really means C-d, so it shows this option instead.

@gagbo gagbo closed this as completed Oct 5, 2022
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

No branches or pull requests

2 participants