Skip to content

Commit b84d068

Browse files
committed
fix: Print correct "zmk config" commands
To simplify parsing, the "zmk config" command was switched long ago from expecting a single "variable=value" argument to having the variable and value passed as separate arguments. Some of the "zmk code" command output still referenced the old format. This fixes that.
1 parent 8d89aa6 commit b84d068

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zmk/commands/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _select_editor(cfg: Config):
165165
if not file_editors:
166166
raise FatalError(
167167
"Could not find a known text editor.\n"
168-
"Run \"zmk config core.editor='<command>'\" "
168+
"Run \"zmk config core.editor '<command>'\" "
169169
'replacing "<command>" with the path to a text editor.'
170170
)
171171

@@ -195,9 +195,9 @@ def _select_editor(cfg: Config):
195195
cfg.write()
196196

197197
rich.print("Editor saved:")
198-
rich.print(Markdown(f'`zmk config core.editor="{editor.get_command()}"`'))
198+
rich.print(Markdown(f'`zmk config core.editor "{editor.get_command()}"`'))
199199
if explorer:
200-
rich.print(Markdown(f'`zmk config core.explorer="{explorer.get_command()}"`'))
200+
rich.print(Markdown(f'`zmk config core.explorer "{explorer.get_command()}"`'))
201201

202202
rich.print()
203203

0 commit comments

Comments
 (0)