nim-noise icon indicating copy to clipboard operation
nim-noise copied to clipboard

Add option to use Emacs behaviour for case editing commands

Open xoich opened this issue 2 years ago • 3 comments

Hello, in Emacs, but also GNU readline, bash and other shell the case editing behavior is different than used here. In Emacs when you press one of these keys inside a word, only the characters up to the end of the word are affected, so if | is the cursor, and you are in this situation foo|bar and then you press M-C in the shell you get fooBar, with noise instead you get Foobar. This is the same for the other case commands.

I think there should be a compiler option to enable classic behavior.

xoich avatar Dec 12 '22 07:12 xoich

hi @jangko I can try to make the changes myself if you want. Let me know how you want to proceed, there are three options:

  1. remove the current behavior and leave only Emacs' one (as I did in #29)
  2. make Emacs behavior the default and keep the current one as an option
  3. leave the current as default and make Emacs behavior as an option

xoich avatar Dec 17 '22 10:12 xoich

I prefer the 3rd option

jangko avatar Dec 17 '22 14:12 jangko

ok, I created #30 for that.

xoich avatar Dec 17 '22 14:12 xoich