micro-editor / micro-editor/micro
Can't keybind "Ctrl-Enter"
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Description of the problem or steps to reproduce
I want to bind Ctrl-Enter to EndOfLine,InsertNewline mimicking Sublime Text behavior. The press of Enter is seems to be captured by the default InsertNewline, so that I get the normal Enter behavior even if I also press Ctrl.
{
"CtrlEnter": "EndOfLine,InsertNewline",
}
I don't think this is an issue with my command, as it works with other keys. I also had no success with additionally defining "Enter": "InsertNewline" in bindings.json.
Specifications
Commit hash: 1856891
OS: Linux Ubuntu 18.04 (Kernel 4.15)
Terminal: gnome-terminal 3.28.2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the keybinding behavior with the shown bindings.json entry and the listed terminal environment. Trace how Ctrl-Enter and the default Enter binding are resolved, then verify that Ctrl-Enter runs EndOfLine followed by InsertNewline without triggering the normal Enter behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100