Wednesday, August 22, 2018

Re: Start terminal in a given directory

On 22/08/2018 21:06, Bram Moolenaar wrote:
>
>> Currently, terminal jobs are always started in :pwd, AFAICT.
>> Is there a reason why the "cwd" option from job_start() is not inherited
>> by term_start()?
>
> I though this was in the todo list, but I can't find it now.

Ah, it's implemented already and documented under :h term_start()!

This works just fine:

:call term_start("ls", {"cwd": "/usr/local"})

Sorry for the noise: a consequence of an unfortunate combination of
(1) trying to use a wrong syntax, and (2) making a typo when searching
the help.

Life.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: