How to bind Ctrl-Enter in fish?
<p>In order to <a href="https://stackoverflow.com/a/36336394/903011">configure a user binding</a> (version 2.2.0), it must be in the <code>fish_user_key_bindings</code> function:</p>

<pre><code>function fish_user_key_bindings
    bind \n 'commandline -f accept-autosuggestion execute'
end
</code></pre>

<p>This works fine.</p>

<p>I wanted to expand this binding to <kbd>Ctrl</kbd>+<kbd>Enter</kbd>, by using the <a href="https://fishshell.com/docs/current/index.html#escapes" rel="nofollow noreferrer">appropriate modifier</a>:</p>

<pre><code>function fish_user_key_bindings
    bind \c\n 'commandline -f accept-autosuggestion execute'
end
</code></pre>

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