Search code examples
bindfish

In fish, how do you bind a command to `<ctrl>-,`?


I tried both bind '\c,' 'echo hello ; commandline -f repaint' and bind \c\, 'echo hello ; commandline -f repaint' but it doesn't seem to make the expected effect.

Is this even mappable?


Solution

  • Is this even mappable?

    It is probably not.

    If you wish to know what sequence to write for a given key chord, start fish_key_reader and press it.

    In my terminal, pressing ctrl-, sends just ",". Which means it's indistinguishable from just a comma.