bindkey ctrl-return? #154

Closed
dragonxlwang opened this Issue May 3, 2016 · 2 comments

3 participants

@dragonxlwang

I would like to have ctrl-return mapped to autosuggest-execute

I have tried bindkey with ^enter'' ,^^M`` etc but none of them works.

Is there a way to do so?

Thanks,

@ericfreese
zsh-users member

I'm personally not sure if this is possible with zsh.

You might have some luck emailing the zsh-users email list: http://zsh.sourceforge.net/Arc/mlist.html

I'm going to go ahead and close this issue since it doesn't relate specifically to the plugin.

Good luck!

@ericfreese ericfreese closed this May 12, 2016
@modk
modk commented Jun 11, 2016 edited

In case anyone is having the same problem, just use cat without arguments to find out which escape sequence your terminal is emitting for ctrl-enter:

> cat
^[[28;5;9~

Then bind it like this bindkey -s '^[[28;5;9~' '^E\n' in your ~/.zshrc. bindkey '^[[28;5;9~' autosuggest-execute might also work, depending on your configuration.

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