Git Product home page Git Product logo

Comments (5)

akinomyoga avatar akinomyoga commented on June 11, 2024 1

Do you have settings like the following?

bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'

Please use the following settings in ~/.blerc. In particular, if you would like to accept the command by a single Enter, use the second one where immediate-accept is specified.

ble.sh/blerc.template

Lines 949 to 960 in a3b94bb

## If you want to search the already input string using <up> and <down> keys,
## use the following setting:
#ble-bind -f up 'history-search-backward'
#ble-bind -f down 'history-search-forward'
## If you want to immediately run the matched command by RET, you can specify
## the option "immediate-accept" to nsearch widgets:
#ble-bind -f up 'history-search-backward immediate-accept'
#ble-bind -f down 'history-search-forward immediate-accept'

from ble.sh.

akinomyoga avatar akinomyoga commented on June 11, 2024 1

Hmm, I actually intended to require Enter twice only when the history search is performed with a non-empty search string. In the case of the empty command line, I tried to make it behave the same as the readline bindable function history-search-backward.

I'll fix the behavior for the empty string case. However, please note that I'll keep the current behavior of requiring two Enter for the case of the non-empty string search.

from ble.sh.

akinomyoga avatar akinomyoga commented on June 11, 2024

I forgot to tell you, but I fixed it in commit 870ecef four days ago. Could you update ble.sh by running ble-update in a ble.sh session and check the behavior? Thank you!

from ble.sh.

blackteahamburger avatar blackteahamburger commented on June 11, 2024

I forgot to tell you, but I fixed it in commit 870ecef four days ago. Could you update ble.sh by running ble-update in a ble.sh session and check the behavior? Thank you!

Solved, thank you!

from ble.sh.

akinomyoga avatar akinomyoga commented on June 11, 2024

Thank you for confirmation!

from ble.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.