BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.06k stars 1.46k forks source link

Vim mode configuration #840

Open kaplanbora opened 7 years ago

kaplanbora commented 7 years ago

I would like to have some basic configuration options for vim mode. For example instead of using hjkl for movement I use jklş (Turkish keyboard) so if there was on option to set noremap keys that would be great.

asmsuechan commented 7 years ago

We use CodeMirror as our editor, so you can do this. https://github.com/codemirror/CodeMirror/issues/2840

You have to input your configuration such as CodeMirror.Vim.map('h', 'j', 'normal') on the developer console every time you launch Boostnote.

I have a plan that it will be configurable on Preferences.

robustdj commented 7 years ago

Would this address the issue of no key repeating? Right now I have to repeated hit j to go keep going down instead of just holding down the j key.

uduse commented 6 years ago

@robustdj I guess that more of CodeMirror's problem.

jwkicklighter commented 6 years ago

@asmsuechan I'm sure this isn't the most vital feature for you, but do you have any update on your idea to put vim keybindings in Preferences?

robustdj commented 6 years ago

After some Googling I finally found a solution. It appears to be an issue with Lion and I was able to resolve by typing this in the terminal:

defaults write -g ApplePressAndHoldEnabled -bool false
sic-f commented 5 years ago

After some Googling I finally found a solution. It appears to be an issue with Lion and I was able to resolve by typing this in the terminal:

defaults write -g ApplePressAndHoldEnabled -bool false

Or to be safe and not disable this globally, you can disable for Boostnote only:

defaults write com.electron.boostnote ApplePressAndHoldEnabled -bool false