[ZeroBrane Studio] Re: zbs-vim plugin

  • From: "Paul Reilly" <pajthbr@xxxxxxxxx>
  • To: "Paul K" <paul@xxxxxxxxxxxxx>
  • Date: Tue, 24 Oct 2017 17:00:46 +0100

&#x200b;


&#x200b;Hi Paul
Good to know I am not bugging you with this. :)
Just to be completely clear, the GetHotKey method gets the ID, for example...
Ctrl+r    id: 6048
Ctrl+v    id: 5033
... but...
ide:SetHotKey(ID, shortcut)
... using the retrieved ID doesn't restore the previous functionality after 
changing the shortcut to a custom one with a previous call to SetHotKey. 
Cheers
Paul


&#x200b;
From: Paul K
Received: 24/10/2017 00:06:51 +01:00
To: Paul Reilly
CC: zerobrane@xxxxxxxxxxxxx
Hi Paul,

Thanks for this. It appears to run through the program, stopping at any
breakpoints and it starts a 2nd instance of ZBS, but breakpoints are no
longer triggered and the program can't be paused.. It's not very important,
but if there's something I am missing it would be good to know.

I noticed the same thing and have been looking into this.

I have also tried to implement the new GetHotKey, but trying to reset the
hot key using the ID from GetHotKey is not working. You can see it here...
https://github.com/paul-reilly/zbs-vim/blob/master/vim-mode.lua#L103

I'll take a look; getting the ID worked as expected in my tests, but
maybe there are some cases that are not covered.

Anyway I won't annoy you any/much more with this... thanks for all the good
work!

I'm interested in your progress, so don't hesitate to drop an email if
you run into issues or have questions.

Paul.

Other related posts: