micro-editor / micro-editor/micro
Cut command is very slowly on Windows Terminal
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
I use micro in Windows 10 with Windows terminal preview 1.20.10822.0
When I open file for edit in micro, then I hold down the CTRL+K key, it doesn't continuously delete the lines, but does nothing. When I release it, it deletes one row. If I use the nano program, there is no such problem.
I tried with the following version:
$micro --version
Version: 2.0.13
Commit hash: 68d88b57
Compiled on October 21, 2023
$ micro --version
Version: 2.0.14-dev.155
Commit hash: 55103179
Compiled on April 23, 2024
bindings.json:
{
"\u001b[2J": "SelectToStartOfLine",
"\u001b[K": "SelectToEndOfLine",
"\u001b[P": "Delete",
"Alt-/": "lua:comment.comment",
"Alt-3": "lua:comment.comment",
"Alt-Left": "PreviousTab",
"Alt-Right": "NextTab",
"Alt-g": "None",
"Alt-w": "FindNext",
"Ctrl-d": "DuplicateLine",
"Ctrl-k": "Cut",
"Ctrl-r": "command-edit:replaceall ",
"Ctrl-s": "Save",
"Ctrl-w": "Find",
"Ctrl-x": "Quit",
"CtrlUnderscore": "lua:comment.comment"
}
settings.json:
{
"*.json": {
"commenttype": "/* %s */"
},
"*.jsonc": {
"commenttype": "/* %s */"
},
"*Xresources*": {
"commenttype": "! %s"
},
"autoclose": false,
"autosu": true,
"backup": false,
"clipboard": "terminal",
"hlsearch": true,
"softwrap": true
}
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 Ctrl-K behavior in Windows Terminal with the bindings.json and settings.json shown in the issue, using the listed micro versions. Compare holding the key with the single deletion on release; done means repeated Ctrl-K input continuously cuts lines as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100