xah-fly-keys icon indicating copy to clipboard operation
xah-fly-keys copied to clipboard

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

Open zadca123 opened this issue 10 months ago • 1 comments

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 avatar Apr 09 '24 14:04 zadca123

The same case is for $(cmd)

zadca123 avatar Apr 22 '24 09:04 zadca123

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 avatar May 07 '24 17:05 xahlee

fixed

xahlee avatar Jun 16 '24 04:06 xahlee