Skip to content

zmk code just opens root #27

@gnodar01

Description

@gnodar01

When I call zmk code glove80 it just opens the root of the repo in my text editor, not the specific file (which does exist). Same when --conf or --build flags are passed.

I think it's because here it calls subprocess.call(cmd, shell=True) where cmd is a value like ['nvim', PosixPath('<...>/zmk-config/config/glove80.keymap')]. From my understanding you cannot pass a list (or other iterable) when shell=True, it needs to be a raw string, or pass in a list but with shell=False.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions