akinomyoga / ble.sh

Bash Line Editor―a line editor written in pure Bash with syntax highlighting, auto suggestions, vim modes, etc. for Bash interactive sessions.
BSD 3-Clause "New" or "Revised" License
2.33k stars 77 forks source link

Cannot bind RET in nsearch mode #444

Closed rkitover closed 1 month ago

rkitover commented 1 month ago

ble version: 0.4.0-devel4+61968497 Bash version: 5.2.26(1)-release (x86_64-pc-linux-gnu)

This does not work:

ble-bind -m nsearch -f RET nsearch/accept-line

RET always exits nsearch mode no matter what you bind it to.

akinomyoga commented 1 month ago

See §3.1.1. Your terminal probably sends C-m.

ble-bind -m nsearch -f C-m nsearch/accept-line
rkitover commented 1 month ago

My apologies for not reading the fine manual, thank you very much for the quick response.

By the way I wrote this today for me and my friends and you gave me the last thing I needed!

akinomyoga commented 1 month ago

Don't worry. The manual is kind of TL;DR.

Thank you for writing the article about ble.sh!