Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start jobs without stdin being open #15068

Closed
blueyed opened this issue Jul 12, 2021 · 1 comment
Closed

Start jobs without stdin being open #15068

blueyed opened this issue Jul 12, 2021 · 1 comment
Labels
enhancement feature request

Comments

@blueyed
Copy link
Contributor

blueyed commented Jul 12, 2021

Currently there is no way to start a job with closed stdin, which might result in tools like ripgrep to falsely assume that stdin is being used (BurntSushi/ripgrep#1892).

chanclose(jobid, 'stdin') can be used to close it, but only after jobstart, so that usually the detection of stdin happened already by then then.

I have not checked if the ChanOpen autocommand could be used for this maybe, in case it is blocking - but it would certainly be easier to allow for specifying this with a job's options already.
When doing this it might also make sense to add support for closing (or redirecting maybe) stdout/stderr then, but the latter is a bigger topic (#8823).

ref: mhinz/vim-grepper#162

@blueyed blueyed added the enhancement feature request label Jul 12, 2021
@BurntSushi
Copy link

I believe this PR is trying to do just this: #14812

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request
Projects
None yet
Development

No branches or pull requests

3 participants