Skip to content

Add a way for a task to call back using vim 8 "jobs" #210

Closed
@shym

Description

@shym

We could add another mechanism (beside GUI or VimResize) to allow running tasks to call back when they complete using a vim 8 job. This would enable using adapters for foreground tasks even when remote-expr is not available.
I was thinking about something like:

  • mkfifo request.file.callback,
  • run a new job that waits on that fifo (such as head), with dispatch#complete as its exit_cb,
  • return echo > request.file.callback from dispatch#callback.

This would require an OS supporting FIFOs, I’m not sure how portable this is, but I imagine that vim is used GUI-less mostly on unix.
Would that make sense or do you think this is useless?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions