Code that creates the suggestion:
return self.create_item( category=self.ITEMCAT_RESULT, label="%s by %s" % (title, author), short_desc="[%s] %s" % (version, summary), target=title, args_hint=kp.ItemArgsHint.FORBIDDEN, hit_hint=kp.ItemHitHint.KEEPALL, icon_handle=self.__load_icon(icon_url), data_bag="\n".join([choco_url, pkg_src_url, project_url, project_src_url]), )
IDK if this is the code to be modified. Original source code here
Hi all, using Keypirinha for 3 weeks now and I am super happy.
There is one issue that I still have:
I am required to use a proxy for work, however the system settings are not working (Automatic Proxy via script). I changed my config file to have this format:
proxy = http://proxyname.int.domain:1234
For everything else this manual config seems to work, only Keypirinha has issues.
Any ideas how to troubleshoot this? The only error in the logs I can find is an urlopen error timed out.
In Keypirinha issue "[Calc] Add new "subtotal" operator #526" in GitHub fran-f wrote:
I often use Keypirinha for rapid calculations. One pattern that I have noticed repeating is that I start with an operation, then extend the expression building on it. Most of the time, I need to jump back to add brackets around the initial terms. For example I might type 64.55 + 192.37. If I then need 31% of that, I have to type <Home>(<End>) * 0.31.
This has happened often enough that I started wondering: how can I simplify this interaction? I know I can hit Enter to copy the result to the clipboard, but that loses the initial expression.
What about a "subtotal" operator? For example, the symbol } might be free to use. In the example above, I would type 64.55 + 192.37, stop a second to think, then continue with } 0.31. Internally } translates to "put a ( at the beginning of the expression, and a ) here", which would translate to (64.55 + 192.37) 0.31. Multiple } would behave in the same way.
64.55 + 192.37 = 256.92
64.55 + 192.37 } = 256.92
64.55 + 192.37 }
64.55 + 192.37 } 0 = 0
64.55 + 192.37 } * 0.31 = 79.6452
I haven't seen this in other calculators, but I was wondering if this could be a welcome addition to the Calc package. In that's the case, I can prepare a pull request on the Packages repository.
I implemented a small change to Calc to support this (only with ; rather than } as the separator) so you can write:
You can download the Calc plunin with this improvement from https://github.com/DrorHarari/Packages/releases/tag/v2.26.SemiCalc - let me know what you think and if you think it's worth pushing this change to Keypirinha.
choco install keypirinha --forceworkaround was the lazier option than trying to report it. :D
xyplorerbut somehow this plugin always opens using windows explorer.
20:11:13.013 Item properties: label: Downloads args: short_desc: Opens the user's Downloads folder target: Downloads category: keyword (10) args_hint: forbidden hit_hint: noargs plugin: WinSys.WinSys (5165154887251149068) item_id: 15164446230200871100 loop_on_suggest: false data_bag:
Calc Packagesection of the Docs, specifically the 184.108.40.206 section on the built-in number suffixes, and I have a quick question: is there an easy-enough way for me to add another suffix to this list?
37,5/60to find out how to express 37 minutes in hours decimal (turns out it's
.62hours if you're wondering).
h37,5and get the result of
37,5 / 60.
When using the PackageControl plugin, trying to look for plugins with the "PackageControl: Install Package: option, I was getting a timeout error and in the console screen (F2) the following error appeared:
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Keypirinha\portable\Profile\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 455, in _get_available_packages File "C:\Keypirinha\portable\Profile\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 435, in _get_available_packages File "C:\Keypirinha\python\site\keypirinha_net.py", line 40, in open fullurl, *args, data=data, timeout=timeout, **kwargs) File "lib\urllib\request.py", line 525, in open File "lib\urllib\request.py", line 543, in _open File "lib\urllib\request.py", line 503, in _call_chain File "lib\urllib\request.py", line 1360, in https_open File "lib\urllib\request.py", line 1319, in do_open urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1076)> 15:54:25.242 ** ERROR: Error from PackageControl.PackageControl.on_suggest: <class 'TypeError'>: 'NoneType' object is not iterable Traceback (most recent call last): File "C:\Keypirinha\portable\Profile\InstalledPackages\PackageControl.keypirinha-package\packagecontrol.py", line 199, in on_suggest
The certificate of the PackageControl repository (ue.spdns.de) was all right and showed fine in Chrome. The problem appears to be that the site is signed with LetsEncrypt and my computer had an expired Root Certificate Authority (CA) certificate that was supporting the LetsEncrypt CA. Deleting that expired certificate (using both certmgr and certlm) fixed the problem.
Question about plugin development: How do I create a catalog item that will not allow the user to type more text after tabbing into it?
Thus far, all the ways I created items, the user could always type more text. An example of the behavior is the WindowsApps where I select an item in the catalog, I cannot add more text. Indeed, that plugin does not have on_suggest but I want to get the same behavior after I added a suggestion...
I am working on a plugin to control Windows services (start, stop, etc.)
My problem is that calling the
ServiceControl() Win32 API requires elevated privileges. I know that the utility function
keypirinha_util.shell_execute() has a
try_runas parameter that tries to run the command with elevated privileges.
Is there a way to do it inside the plugin code - e.g. elevate privs before running the API, returning to normal after?
I guess I could run the Windows
sc.exe program and use the
try_runas flag but I prefer not to started another process.
SendInput. However, the plugin only works correctly when the console window is open.
SendInputcall. It showed that in both case (when the console window is and is not presented), the function call is successful (the number of events successfully inserted in to the keyboard stream is both 1 ). But only when the console window is open then media playback is actually paused (when send play/pause key), when it's not open, nothing happens.
heyo, which part of the documentation does
> kptmpl package keypirinha-musicbee keypirinha-musicbee ERROR: package name does not comply to package naming rules (check documentation)