Yegappan wrote: > >> >> Currently the job_info() function returns information about a specific > >> >> job > >> >> and there is no function available to return information about all the > >> >> jobs. > >> >> The attached patch modifies the job_info() function to return > >> >> information > >> >> about all the jobs in a List when an argument is not supplied. > >> > > >> > I thought it might be better to get a list of all jobs, but then what > >> > else can someone do with that list than loop over the items to get their > >> > info? Still, from the entries that job_info() returns it should be > >> > possible to get the job object itself. > >> > >> Do you think returning a list of Job objects instead of information about > >> the jobs will be useful? > > > > As I tried to mention: If you get a list of job objects, what can you do > > with them? I suppose you would call job_info() on each, there isn't > > much else you can do without knowing what job object is doing what. > > So we might as well do what you did, let job_info() return the list. > > This will allocate more memory at once, but that's probably not > > relevant. > > > >> > It's still difficult to recognize a specific job. It was mentioned > >> > before to add the command that was used to start the job. Only then > >> > does it make sense to get the list. > >> > >> Should we modify the job_T structure to include the command used > >> to start a job? > > > > Yes. It was asked for in context of starting a terminal. My reply was > > that getting the command of the job running in the terminal is not > > specific for the terminal but for the job. > > I am attaching a patch that saves the command line arguments used to > start a job. The job_info() function returns these arguments as a List > in "cmd". Without any arguments, the job_info() function returns a List > of jobs.
Thanks! -- "Women marry men hoping they will change. Men marry women hoping they will not. So each is inevitably disappointed." - Einstein /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
