akinomyoga / blesh-contrib

Source of settings for Bash Line Editor https://github.com/akinomyoga/ble.sh (for ble-0.4+)
BSD 3-Clause "New" or "Revised" License
37 stars 11 forks source link

Fzf git: ''line 23: ble/util/print: No such file or directory" #18

Closed dgudim closed 9 months ago

dgudim commented 9 months ago

When using the git fzf integration it errors like that, the rest of the menu seems to work

On a side note, why can't I select some branches (They are underlined and unselectedble)?

akinomyoga commented 9 months ago

How do you load integration/fzf-git? It needs to be loaded by ble-import. Do you use ble-import? Which version of ble.sh do you use?

dgudim commented 9 months ago

Blesh info:

GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu) [EndeavourOS]
ble.sh, version 0.4.0-devel4+98a2ae15 (noarch) [git 2.43.1, GNU Make 4.4.1, GNU Awk 5.3.0, API 4.0, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)]
bash-completion, version 2.11 (hash:2d02f73e803daa87a06e94e33b2a7b3e672a2c0c, 76338 bytes) (noarch)
fzf key-bindings, (hash:c4dce3ba5bfafecbc6c47695f89ef02c305b984e, 5524 bytes) (noarch) (integration: on)
fzf completion, (hash:db84e06a1ee5fb43bc6ad1aaeec6657cad79c917, 14523 bytes) (noarch) (integration: on)
atuin, version 18.0.1 (/usr/bin/atuin)
locale: LANG=en_US.UTF-8 LC_ADDRESS=en_US.UTF-8 LC_IDENTIFICATION=en_US.UTF-8 LC_MEASUREMENT=C LC_MONETARY=lt_LT.UTF-8 LC_NAME=en_US.UTF-8 LC_NUMERIC=C LC_PAPER=en_US.UTF-8 LC_TELEPHONE=en_US.UTF-8 LC_TIME=ru_RU.UTF-8
terminal: TERM=xterm-256color wcwidth=15.0-west/15.1-2+ri, konsole:220380 (1;115;0)

Here is how I import git-fzf:

ble-import -d integration/fzf-completion
ble-import -d integration/fzf-key-bindings
_ble_contrib_fzf_git_config=sabbrev
ble-import -d integration/fzf-git
akinomyoga commented 9 months ago

Thank you for the information. I pushed a fix. Could you update ble.sh by running ble-update and see if it now works?

akinomyoga commented 9 months ago

On a side note, why can't I select some branches (They are underlined and unselectedble)?

I'm not sure about this one. I tried the branch selection in my environment, but there don't seem to be underlined/unselectable items in the branch list in fzf. How does it look like?

dgudim commented 9 months ago

Seems to work now. The underlined thingy also is gone! Thx :)

akinomyoga commented 9 months ago

Thanks for the confirmation!