I'm trying to implement an ability to edit my config file from vorpal. As an editor, I'm using vim.
I can launch vim from a regular node.js script like this:
I've tried vorpal.hide(); before spawning the child process.
I've tried vorpal.exec('exit');, but it kills a process completely on exit and don't spawn a child process.
Is there a way to spawn an interactive CLI app (such as vim) from the vorpal? Or at lease close vorpal instance, launch vim, and then initialize vorpal again?
Thanks
Hi,
I'm trying to implement an ability to edit my config file from vorpal. As an editor, I'm using vim. I can launch vim from a regular node.js script like this:
and it works fine, but I can't do it from my vorpal app. I'm getting:
I've tried
vorpal.hide();
before spawning the child process. I've triedvorpal.exec('exit');
, but it kills a process completely on exit and don't spawn a child process.Is there a way to spawn an interactive CLI app (such as vim) from the vorpal? Or at lease close vorpal instance, launch vim, and then initialize vorpal again? Thanks