Comments (6)
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.
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.
Thanks for the information. Could you provide an answer to Q2 in my previous reply?
from ble.sh.
@syuraj Could you provide an answer to Q2 in #380 (comment)?
from ble.sh.
no, I deleted this sh*t
from ble.sh.
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)
- Exit status 1 when using pipe and grep HOT 6
- [Alacritty v0.7.0-0.13.1] Newlines inserted when scrolling up HOT 16
- Sabbrev expansions not working HOT 8
- Disable option completion HOT 4
- [WINCH in ble/prompt/update] Cyclic dependency error HOT 13
- Moving down through history gets stuck in multiline HOT 2
- Cannot bind RET in nsearch mode HOT 3
- Kitty's terminal protocol & complete_menu_complete_opts HOT 7
- Incorrect behaviour with C-w HOT 4
- Always one frame (16.7ms) delay between pressing enter and running command HOT 9
- C-RET never works HOT 6
- ln=target in LS_COLORS breaks ble.sh autocomplete highlight HOT 3
- [zellij 0.40.1] Zellij HOT 2
- [tealdeer 1.61] the tldr completion produces errors and a few questions HOT 18
- Simplify README HOT 3
- [kitty] <ESC> do not return to Normal mode HOT 3
- Checking for b2sums lead to strange text below command line prompt HOT 3
- Feature request: Visible bell (vbell) after command line
- Slow history navigation HOT 3
- Errors and failure from `bleopt complete_menu_style` HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ble.sh.