learnr icon indicating copy to clipboard operation
learnr copied to clipboard

Add option for vim-keybindings in Ace editors

Open vnijs opened this issue 6 years ago • 0 comments

Allow the user pass an argument to the exercise chunk for keybindings (e.g., vimKeyBinding = TRUE or FALSE) or set a user specific option that would activate:

editor.setKeyboardHandler('ace/keyboard/vim')

As implemented in shinyAce

https://github.com/trestletech/shinyAce/pull/9/commits/b089a4ec46e63d2fad421dbb662c2af72aeda667

ACE files to include: keybinding-vim.js (and perhaps ext-keybinding_menu.js)

vnijs avatar Apr 14 '20 04:04 vnijs