ShazzAmin / Boole

A full-featured front end for George with various qualify-of-life features and workflow improvements
https://boole.shazz.me
MIT License
17 stars 11 forks source link

Add support for Vim and Emacs key bindings #58

Closed teppah closed 3 years ago

teppah commented 3 years ago

This PR adds support for Vim and Emacs key bindings to the editor.

A dropdown has been added in the control bar to allow for selecting the editor mode. control bar

The default option is "Default", which means no special key bindings are applied. It sets keyboardHandler on AceEditor to "windows". dropdown The dropdown contains two other modes: "Vim" and "Emacs". They respectively set keyboardHandler on the AceEditor component to "vim" and "emacs".

The currently selected mode is persisted in local storage and is loaded and set by KeyboardHandlerDropdown.

teppah commented 3 years ago

Label has been removed and Emacs bindings should work properly now image