Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 130

How to bind Ctrl-Enter in fish?

$
0
0

In order to configure a user binding (version 2.2.0), it must be in the fish_user_key_bindings function:

function fish_user_key_bindings    bind \n 'commandline -f accept-autosuggestion execute'end

This works fine.

I wanted to expand this binding to Ctrl+Enter, by using the appropriate modifier:

function fish_user_key_bindings    bind \c\n 'commandline -f accept-autosuggestion execute'end

This does not work: Enter uses the current (up to the cursor) suggestion (which is the default) but Ctrl+Enter as well (as if the action with the modifier was not taken into account)


Viewing all articles
Browse latest Browse all 130

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>