Git Product home page Git Product logo

Comments (5)

akinomyoga avatar akinomyoga commented on June 2, 2024 1

Thanks for the information! I'll later take a closer look at them.

from ble.sh.

akinomyoga avatar akinomyoga commented on June 2, 2024 1

@dgudim Sorry for the delay. I've checked your configuration.

ble-import -d integration/fzf-completion
ble-import -d integration/fzf-key-bindings

Those -d flags specify that the loading of those configurations should be delayed, i.e., the loading of the settings will be deferred until the shell becomes idle. If you would like to add keybindings after integration/fzf-key-bindings is loaded, you need to omit -d from the above lines. Or another way is to make the Atuin initialization another module and load it with -d (such as ble-import -d my/atuin).

ble-bind -m emacs   -x C-r -
ble-bind -m vi_imap -x C-r -

Those lines are unnecessary.

from ble.sh.

akinomyoga avatar akinomyoga commented on June 2, 2024

This also doesn't work

bind -x '"\C-r": __atuin_history'

I think this should work as far as the ordering of the settings is correctly set up. You need to put the above setting after the fzf configuration. If the fzf configuration comes after it, the fzf configuration will overwrite the setting you specified.

You wrote "does not work" but what does that mean? Does it mean the bind command produces an error? Does it mean fzf is still called on pressing C-r? Or does it mean it produces an error message on C-r? Or does it mean nothing seems to happen on pressing C-r?

from ble.sh.

dgudim avatar dgudim commented on June 2, 2024

Does it mean fzf is still called on pressing C-r

Yes, fzf is still called

Here are a stripped-down versions of configs where this issue happens

#
# ~/.bashrc
#

source /usr/share/blesh/ble.sh --noattach --rcfile $HOME/.config/blerc

eval "$(atuin init bash --disable-up-arrow --disable-ctrl-r)"

[[ ${BLE_VERSION-} ]] && ble-attach

bind -x '"\C-r": __atuin_history'

#
# ~/.config/blerc
#

ble-import -d integration/fzf-completion
ble-import -d integration/fzf-key-bindings
ble-bind -m emacs   -x C-r -
ble-bind -m vi_imap -x C-r -

from ble.sh.

dgudim avatar dgudim commented on June 2, 2024

Thank you very much, I changed it and several other things to a module and now everything loads correctly end even my shell startup feels faster. :)

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.