Skip to content

Only assume "C-"-prefix for the first part of a command sequence #73

Open
@mattiasb

Description

Most keybindings I use (standard and nonstandard) are in the following form:
C-c₁ c₂ c₃ c₄ …
That is, only the first part of the command demands me holding down Ctrl.

I would love to be able to tell god-mode to skip Ctrl (like it does now) but only for the first part of a command sequence and then instead force me to actually use Ctrl (or space?) in the few places where Ctrl is needed for more than the first part of a sequence.

Or by example:

Current god-mode

rectangle-kill: x SPC r SPC k
split-window-below: x SPC 2
insert-register: x SPC r SPC i
find-file: xf
save-buffer: xs

god-mode with my proposed setting

rectangle-kill: xrk
split-window-below: x2
insert-register: xri
find-file: x C-f or x SPC f
save-buffer: x C-s or x SPC s

I understand that find-file and save-buffer are very common commands, but you can easily swap those two with set-fill-column and save-some-buffers with a modified keybinding. My experience tells me that the number of keybindings I'd want to change would be fewer this way (meaning less configuration).

Hope this makes sense, and thanks for a cool project!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions