Binding key sequences disables their single function
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 38.9k
- Forks
- 1.3k
- Avg merge
- 19m
- Merged PRs (30d)
- 1
Description
Lapce Version
Lapce-Stable 0.2.8
System information
the operating system used, including its version, e.g. Windows 10, Ubuntu 18.04
Darwin MacBook-Pro.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64
Describe the bug
When mapping escape into a sequence of jk, j (down) loses its functionality.
You'll need to press j twice to trigger it around the editors settings.
It won't be triggered inside normal mode when modal editing is enabled.
Additional information
My theory is that there's an infinite, or at least a very long wait period for the second key once two are mapped together.
Vim solves it by allowing the user to specify a timeout, in the form of:
set timeoutlen=<time-in-ms> //defaults to 1000ms
for further reading: https://neovim.io/doc/user/options.html#'timeoutlen'
Contributor guide
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
Reproduce the issue in Lapce 0.2.8 by mapping Escape to the jk sequence, then test j in the settings area and in normal mode with modal editing enabled. Done means j still triggers its single-key function while the configured sequence remains usable; no file or test is named in the report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100