-
Notifications
You must be signed in to change notification settings - Fork 62
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
Move to certain channel based on regular expression #62
Comments
See the plugin linked here. But I like the idea and would like to add it as an inbuilt feature. Let's see. I am currently fixing some bugs. |
Hello @aviaryan , I'm trying to write the plugin we were talking about and I'm using your copy2channel plugin as a guide. But there are some things I don't understand that maybe you can explain to me:
What are those values? seems like key definitions but I can't understand what are they used for
Correct me if I'm wrong but I thing those are original channel (zoc) and destination channel (znc)
What is this used for? You move to the destination channel and then you set a variable (that I can't understand why) and you send that... keystrokes? Maybe you just copy the content of the clipboard to the selected channel?
Here you wait until ONCLIPBOARD changes, (again, I don't know why) and then you goes back again to the original channel. Another question not related to your code is: How can I check what is currently on the clipboard in order to run a regular expression check against it? I think I can use getClipAt(0,1,1) but I'm not sure. Thank you very much. |
Based on the parameters I think "^{vk43}" means control+c and "^{vk58}" control+x |
Here is a prototype, that, does not works and I don't know why:
|
One problem I see is that So it will be better if you put this part inside the if condition
|
Hello @aviaryan Sorry for posting here something that is some kind of support, but it is related with the issue subject. I more or less achieved what I want, but I find what I have done a bit clumsy.
The problem with this is that using that approach the tooltip is barely seen. I think it is because it has some conflict with the defautl tooltip. Can you think in a better approach? |
Default tooltip and API's showTip are different. Can you try
Notice the space around "." (period) . Maybe "moved to".channelname is being evaluated as some class property. |
Ok, the space trick did the job. Now I can see both popups but the second lasts enough to be seen. |
Closing this issue because of #71 |
Your tool is awesome, but it could be even more awesome with this feature: define some regular expressions that will move the matching clips to certain channel. Let's say I want all my URLs in certain channel, or all the ticket numbers I ever copied on the tickets channel... then this will make channel and clips management automatic. Maybe it can be implemented as a plugin. If it is possible just point me in the good direction and I will try to do it myself.
Regards.
The text was updated successfully, but these errors were encountered: