vichangemode fails to switch to normal mode after executehostcommand
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 818
- Forks
- 249
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 30
Description
Platform MacOS
Terminal software Ghostty
I have following keybinding:
{
name: go_dir, modifier: none, keycode: char_g, mode: [vi_normal]
event: [
{ send: executehostcommand, cmd: "cd (fd -t d | sk -p 'Go to dir : ')" }
{ send: vichangemode, mode: normal }
]
}
After triggering it, it successfully changes directory but shell stays in insert mode instead of intended normal mode.
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
Start by reproducing the keybinding on macOS with Ghostty, using executehostcommand followed by vichangemode in the issue's example. Trace how those two events are processed and verify that the editor ends in normal mode after the directory change completes.
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
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100