Skip to content

vichangemode fails to switch to normal mode after executehostcommand #1070

Description

@hajdamak

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions