Git Product home page Git Product logo

Comments (6)

akinomyoga avatar akinomyoga commented on June 11, 2024

What is your terminal? It depends on the terminal control sequence that your terminal sends when you press "option+delete", but it would probably be \x1b\x7F (which is translated to M-C-?). The default keybinding in ble.sh for M-C-? is different from that in Readline. In ble.sh, The widget copy-backward-sword is bound to M-C-? and similar key combinations. It is described in Manual ยง4.4.

To get a similar effect, you can use C-w instead of M-C-?.

If you would like to use "option+delete" (such a M-C-? or M-DEL depending on the terminal) to delete the previous word, you can change the keybinding using ble-bind.

# blerc

# The key combination depends on the terminal, but you can bind it to all
ble-bind -f 'M-C-?' 'kill-backward-uword'
ble-bind -f 'M-DEL' 'kill-backward-uword'
ble-bind -f 'M-C-h' 'kill-backward-uword'
ble-bind -f 'M-BS' 'kill-backward-uword'

For the detailed behavior of determining the word boundaries, you might consider other types of words. Please read Manual ยง4.4.


I am also getting stty: 'standard input': unable to perform all requested operations on every command.

This is an independent issue.

  • Q1: Is the error message printed after the command or before the command? Or is it printed both before and after the command? By "before/after the command", I mean the following places:
$ echo hello # This is an example command
<-- (Before the command)
hello
<-- (After the command)
  • Q2: Could you provide the results of the following commands?
$ declare -p _ble_term_stty_flags_{enter,leave}
$ type ble/bin/stty

from ble.sh.

syuraj avatar syuraj commented on June 11, 2024

In any terminal (iterm, warp, vscode integrated terminal) in my macos, I see similar behaviour (option + del) not working.
That stty is printed before running the command.

from ble.sh.

akinomyoga avatar akinomyoga commented on June 11, 2024

Thanks for the information. Could you provide an answer to Q2 in my previous reply?

from ble.sh.

akinomyoga avatar akinomyoga commented on June 11, 2024

@syuraj Could you provide an answer to Q2 in #380 (comment)?

from ble.sh.

syuraj avatar syuraj commented on June 11, 2024

no, I deleted this sh*t

from ble.sh.

akinomyoga avatar akinomyoga commented on June 11, 2024

It's fine that you stopped using ble.sh and are not willing to continue the discussion, but I'd have appreciated it if you could have informed us of it earlier instead of ignoring the reply for one month and suddenly insulting the project. Also, we are not forcing you to use ble.sh. I recommend you complain about it to the one who forced you to use ble.sh with a polite attitude. Thank you for raising the issue anyway.

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.