Re: Out_cb callback handler in vim9

2023-12-10 Thread Lifepillar
On 2023-12-09, Nicolas  wrote:
> Hi all,
>
> According to Bram example in the job's help now,
> Is it possible to pass additional parameters to job's handlers callback in
> vim9script ?

Yes. See, for instance, $VIMRUNTIME/autoload/typeset.vim, in particular
the Callbacks section and the Typeset() function.

> This minimal example with additional params:
> def Compress_OnExit(job_id: job, exit_status: number, foo: string): void
> echom 'Job OnExit ' .. job_id->string() .. ' exited with status ' ..
> exit_status
> # Compress_CopyToDrive('PATRIOT')
> enddef
> var job = job_start(cmd, { 'exit_cb': function('Compress_OnExit',
> ['foo']) } )

That should be:

var job = job_start(['ls'], {
  exit_cb: (j, e) => Compress_OnExit(j, e, 'foo')
})

Hope this helps,
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ul553q%24puu%241%40ciao.gmane.io.


Re: Using Vim's logo for a tabletop game

2023-12-10 Thread Christian Brabandt


On Sa, 09 Dez 2023, try catch it wrote:

> Dear Vim community,
> 
> We hope this message finds you well. We are Clara Jiménez Recio and Celia 
> Velasco Martínez and we are excitedly embarking on a personal project to 
> create a tabletop game with a focus on the dev community.
> 
> The mechanics of our game, tentatively titled "try {} catch (it)", involve 
> working with more than 50 logos of different programming tools. Multiple 
> logos will appear on each card, and the gameplay is centered around 
> identifying the
> matching logo in each pair of cards.
> 
> We are wondering whether it would be okay to include Vim's logo within the 
> game. Of course, any required disclaimer would be included.

I'd like to see the game first. Unless it's some un-ethical usage of the 
game play (or of the other logos used), that should be fine however.

It would be great, if you could link to the Vim.org homepage.

Thanks,
Christian
-- 
Sell by date stamped on bottom.

-- 
-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/ZXXK5iOEzoTEZQEO%40256bit.org.