hackmdio / hackmdio/codimd

Feature request: Move cursor to unfold

Open
#1,585 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

It would be nice to have an option to enable "down to unfold" feature in sublime mode.

```
diff --git a/public/js/lib/editor/index.js b/public/js/lib/editor/index.js
--- a/public/js/lib/editor/index.js
+++ b/public/js/lib/editor/index.js
@@ -85,6 +85,10 @@ export default class Editor {
'Cmd-Right': 'goLineRight',
Home: 'goLineLeftSmart',
End: 'goLineRight',
+ 'Down': function(cm) {
+ cm.moveV(1, "line")
+ cm.execCommand('unfold')
+ },
'Ctrl-C': function (cm) {
if (!isMac && cm.getOption('keyMap').substr(0, 3) === 'vim') {
document.execCommand('copy')
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.