BoostNote-App
BoostNote-App copied to clipboard
Custom vim mappings
Current behavior
No custom vim keyboard mappings in the UI. A trick proposed on legacy BoostNote's wiki page won't work either.

Expected behavior
Some way of customizing vim mappings will be possible.
Steps to reproduce
Same as in linked wiki article.
Environment
Desktop/Web
- Boost Note.next version: 0.4.1
- OS version and name: macOS Catalina 10.15.4
Is it a bug / missing feature and in such case is there any ETA on making this work?
IssueHunt Summary
Backers (Total: $20.00)
boostio ($20.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
I've done some digging in the meantime, and here is the workaround for anyone who comes across this issue:
document.querySelector('.CodeMirror').CodeMirror.constructor.Vim.map('jk', '<Esc>', 'insert')
I find that the application do not store the state of the vim editor. When I close the application, it will lost the set of my vim mapping.
@foxale @PeterlitsZo What kind of information needs to map the Vim? Applying configuration should be quite easy but I'm not sure how should I make the interface for it.
Does this look okay?
interface CodeMirrorMapEntry {
toKeys: string // 'jk'
keys: string // '<Esc>'
context: string // 'insert'
}
@boostio has funded $20.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.