Skip to content

Spawning $EDITOR gives an error on windows+msys2/zsh #2626

Description

@doronbehar

Hi,

I'm using lf on msys2, with the mingw-w64-ucrt-x86_64-lf package, and msys2/zsh. My $XDG_CONFIG_HOME/lf/lfrc has:

set shell zsh
# Do as explained here: https://github.com/gokcehan/lf/wiki/Tips#split-words-by-default-in-zsh
set shellopts '-e:--shwordsplit'
# I use lf also on Windows msys2, and this has to be used with the above shell.
set shellflag "-c"

And I get this error when I press e to spawn an editor:

zsh:fg:1: no job control in this shell.

Which makes sense I guess on this system, but I am not sure I understand why job control is needed, and how lf exactly requires it. I tried as a workaround to use nvim-qt.exe with:

map e !nvim-qt<space>$f<enter>

And got:

zsh:1: parse error near `>'

And with:

map e &nvim-qt<space>$f<enter>

I got nothing opened...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions