Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable vi keybindings #172

Open
osresearch opened this issue Jul 10, 2019 · 1 comment
Open

Enable vi keybindings #172

osresearch opened this issue Jul 10, 2019 · 1 comment

Comments

@osresearch
Copy link

The ace editor supports a vi mode, but to enable it requires that I open a console and type:

aceEditor.setKeyboardHandler("ace/keyboard/vim")

every time I edit a document. Ideally this would be available as a user preference, similar to what was implemented in #119 .

Steps to reproduce

  1. Open a text document
  2. Open the console
  3. Paste aceEditor.setKeyboardHandler("ace/keyboard/vim")
  4. Enjoy vi mode while the document is open for editing

Nextcloud Version

  • 15.0.8
@yamsu
Copy link

yamsu commented Dec 4, 2020

Hi, vim key bindings would be great; however, in version 20.2 the aceEditor.setKeyboardHandler("ace/keyboard/vim") comannd in the console window throws the following error

Refused to load the script 'https://192.168.9.234:9823/apps/files/keybinding-vim.js' because it violates the following Content Security Policy directive: "script-src 'nonceLWlBmTk5MWGtOaHJIOEZMQT06SGtsVHo2cEZlNzAvTlhMeG1EYkNnaFVCVFMvYldKQUNZa=' blob:". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

I'm using the stable files_texteditor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants