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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions