config:edit
examples using $EDITOR
/ $VISUAL
with args don't work
#1996
Labels
config:edit
examples using $EDITOR
/ $VISUAL
with args don't work
#1996
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The
config:edit
help text says:This works if I set
EDITOR
(orVISUAL
) to a single command (such ascode
), however fails if I pass in additional arguments as per the final example in the help text.In VSCode's case, the argument
--wait
is required to make the editor wait for the window to be closed before the command returns (otherwise one gets a› Warning: no changes to config
warning from the Heroku CLI, as the command returned early).This is using macOS 12.3.1 with Homebrew bash.
What is the expected behavior?
That:
EDITOR
orVISUAL
set to values that include arguments to commands.This editor functionality is provided by the
edit-string
package, called here:cli/packages/config/src/commands/config/edit.ts
Line 105 in b8292f3
Whose implementation is here:
https://github.com/jdxcode/edit-string/blob/v1.1.6/src/edit.ts
The text was updated successfully, but these errors were encountered: