akahuku / wasavi

wasavi is an extension for Chrome, Firefox, and Opera. wasavi changes a textarea element to virtual vi editor which supports almost all the vi/ex commands.
http://appsweets.net/wasavi/
Other
1.51k stars 66 forks source link

Shift delete in insert mode should still delete. #125

Open amirrajan opened 8 years ago

amirrajan commented 8 years ago

I came across this when I was typing a large number of capital letters in succession. I had the shift key held down and was typing out the capital letters, but deleting the letters required me to lift my pinky off the shift key.

I may be able to fix this if you can point me in the right direction. It would be interesting to take a stab at writing a chrome extension.

akahuku commented 8 years ago

The source file should be fixed is wasavi.js of content script.

wasavi classifies delete key and Shift+delete key strictly. So in order to have the same function as the delete key to the Shift+delete key, it is necessary to add a key binding to the commandMap object.

Property name of delete key is \u007f, and this property already exists in commandMap. On the other hand, property name of Shift+delete key is <S-delete>.

Anyway, by the above information, places to be fixed will be found.

amirrajan commented 8 years ago

Thanks man, I'll give it a shot in a couple of weeks!