Skip to content

Allow key remapping that applies to all modes #14770

@ghuh

Description

@ghuh

I wanted to create a key mapping that applies in [keys.normal], [keys.select], and [keys.insert] mode.

Specifically:

# Copy the file's relative path into the clipboard (match Zed)
Cmd-k = { p = ":sh echo %{buffer_name} |pbcopy" }

I had to duplicate this 3 times to add the functionality which is really bad coding practice since fixing a bug now needs to happen in 3 places (Sadly, yes, I've been known to write many a bug in a single line of code...).

It would be nice to place this in the [keys] section and have it apply to all 3 modes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions