rxi / lite

A lightweight text editor written in Lua
MIT License
7.33k stars 348 forks source link

New Key Binding: Ctrl + Shift + Z to redo #279

Closed sanket143 closed 3 years ago

sanket143 commented 3 years ago

Currently, we can redo with Ctrl + Y. It'll be great to have Ctrl + Shift + Z to redo since it's much more intuitive and vscode also uses it so it'll be helpful for those who are coming from vscode.

quou commented 3 years ago

Put this in your init.lua

keymap.add {
​  [​"​ctrl+shift+z"​] ​=​ { ​"​doc:redo"​ },
}

Reload the user module and now you have ctrl+shift+z support.

sanket143 commented 3 years ago

got it thanks