xahlee / xah-fly-keys

the most efficient keybinding for emacs
http://xahlee.info/emacs/misc/xah-fly-keys.html
469 stars 80 forks source link

When using C-u d on bash variable `${var}` gets transformed to `{var` #167

Closed zadca123 closed 2 weeks ago

zadca123 commented 2 months ago

Hello, When using C-u d on bash variable ${var} gets transformed to {var When its quoted its "${var}" -> "{var"

I think it should work like this, leaving dollar sign: "${var}" -> "$var" "${var} -> $var

zadca123 commented 2 months ago

The same case is for $(cmd)

xahlee commented 1 month ago

that's because emacs (backward-sexp) moves to the left of dollar sign, in shell-script mode. very annoying. i'll have to think about fix. don't want to add special cases for each mode. for now, if u put cursor on the left opening bracket, it works.

xahlee commented 2 weeks ago

fixed