nushell / nushell/reedline

HistoryHint(Word)Complete events don't work in Helix Normal mode

Open
#1,185 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
818
Forks
249
Avg merge
4d 14h
Merged PRs (30d)
30

Description

Bug report form
  • I have done a basic search of the issue tracker to find any existing issues that are similar.
  • I have checked that my version is at least the latest stable release available via my installation method.
Describe the bug

Great news about Helix mode, there's a way to switch to normal mode using keybinding.
Thanks a lot for that!

One small issue creeped in, unfortunately, that makes it a bit inconvenient to use.

Once in Helix normal mode events like HistoryHintComplete and HistoryHintWordComplete don't work.
Certain other events do work though.
Also, these same events work in Helix insert mode

I will test further to identify the pattern and report back in this BR.

How to reproduce
  1. Enable Helix mode and switch to normal
  2. Type a command that was used before so that a completion hint appears
  3. Press l or <left> to use the completion
Expected behavior

The hint should be activated and cursor goes to the end

Configuration

0.115.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the HistoryHintComplete and HistoryHintWordComplete handlers and their keybindings in Helix normal mode, comparing them with the working insert-mode path. Reproduce with configuration 0.115.1 by triggering a history hint and pressing l or Left; done means the hint activates and the cursor moves to the end in normal mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.