hackmdio / hackmdio/hackmd-io-issues

Not possible to line break inside "[\]" shortcut with vim mode enabled

Open
#242 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

### Is this a hackmd.io issue?

- [X] Yes, the bug happens on https://hackmd.io

### What's the problem
It's very hard for a vim user to line break inside "[\\]" after "[\\",
It always popup a create note shortcut and press ESC did close the popup but also leave edit mode.
Therefore it's not possible to easily line break without doing some trick like copy/past or remove ] or press [ESC, A, ESC, I, Enter],
which is a lot of keyboard action for a simple line break.

#### Current behaviour

![image](https://user-images.githubusercontent.com/11992956/110362886-d4d59800-807c-11eb-8349-c80eeb9e4781.png)

Provide steps to reproduce:

1. Open a new note with
```
[\]
```
2. change to vim mode
3. press the left arrow key
4. see the error

#### Expected behaviour

1. An option to disable the [\\] shortcut feature.
2. ESC close pop up first but it won't leave vim edit mode.

#### Environment

I use HackMD on:

**Desktop**
- OS: Ubuntu, Windows
- Browser: chrome
- Browser Version: [89]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.