Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 15 00:50
    Gitoffthelawn edited #512
  • Apr 15 00:50
    Gitoffthelawn edited #512
  • Apr 15 00:49
    Gitoffthelawn opened #512
  • Apr 06 02:10
    gitthangbaby commented #493
  • Apr 06 02:07
    gitthangbaby commented #493
  • Apr 05 16:17
    polyvertex labeled #511
  • Apr 05 16:17
    polyvertex labeled #511
  • Apr 05 16:17
    polyvertex opened #511
  • Apr 03 01:36
    zersiax opened #510
  • Mar 25 01:15
    Kotsuha commented #491
  • Mar 18 13:53
    KMFSousa commented #227
  • Mar 18 13:53
    KMFSousa commented #227
  • Mar 18 13:29
    dufferzafar commented #24
  • Mar 18 13:17
    dufferzafar commented #24
  • Mar 16 13:23
    pidgeon777 opened #509
  • Mar 12 16:08
    ueffel commented #484
  • Mar 12 16:08
    ueffel commented #484
  • Mar 12 16:08
    dufferzafar commented #484
  • Mar 12 16:07
    ueffel commented #484
  • Mar 12 16:07
    dufferzafar commented #484
Fran
@fran.io:matrix.org
[m]
Can't start a filter with \, as far as I've seen. I stand by my earlier suggestions, which work locally—in particular the regex: one can be used with any odd characters. Do you have any other profiles that might cover the same directory and pick up unwanted files?
Jose Manuel Vera
@verajosemanuel
Hi, any package recommendations to parse partial match from a file?
I want to use keypirinha as a cheatsheet parsing tool. I write all my keybindings into a file and then use keypirinha to parse the file and matching my keystrokes filter interactively the contents
is such a package available?
JC
@polyvertex
@verajosemanuel i am not aware of such an existing package, but this is definitely something KP could handle. I think you will have to write your own plugin though.
Jose Manuel Vera
@verajosemanuel
@polyvertex thanks for the response. But i am not a developer. Is there any package for searching inside documents? Maybe that will be forced to read one only doc
JC
@polyvertex
@verajosemanuel perhaps snippets?
Otherwise, have a look here.
JiaChen ZENG
@JiaChen-Zeng
Hi. Just want to try out Keypirinha. Can I have my shortcuts prioritized more (show above) than normal search results?
JiaChen ZENG
@JiaChen-Zeng
I see there's a similar feature https://keypirinha.com/first.html#associate-a-keyword-to-an-item that would probably achieve what i need. Can I associate them manually?
Li-An
@Li-An
@JiaChen-Zeng you cannot associate manually. You have to train the program but it’s quite fast to understand. Why don’t you test ?
JiaChen ZENG
@JiaChen-Zeng
@Li-An Thanks. I tested about two years ago and didn't satisfy. This feature differs a bit from what I want.
Nils Müller
@Weltenkreuzer_twitter

Hi there!

I am trying to develop a small plugin, that needs just raw "user_input" (from on_suggest) passed to on_execute on pressing Enter and I am not finding a way to do this. Should be obviously easy... Anybody can point me in the right direction?

Fran
@fran.io:matrix.org
[m]
My understanding is that on_suggest should create a new item and show it to the user with set_suggestions(). You would set the user_input as a field of the item. If the user selects that item and activates it, your plugin would then receive the item as an on_execute call.
Nils Müller
@Weltenkreuzer_twitter

Thank you, Fran, that is the way I've been trying to do this, but somehow pressing enter after typing my parameters does simply nothing. I guess it has somethong to do with the object properties but I couldn't really find out, what they actually do... Any ideas?

`def on_suggest(self, user_input, items_chain):
if not items_chain or items_chain[-1].category() != kp.ItemCategory.KEYWORD:
return

    if not user_input:
        self.history = []

    suggestions = []
    suggestions.append(self.create_item(
        category=kp.ItemCategory.EXPRESSION,
        label=user_input,
        target=user_input,
        args_hint=kp.ItemArgsHint.FORBIDDEN,
        hit_hint=kp.ItemHitHint.IGNORE))

    self.set_suggestions(suggestions, kp.Match.ANY, kp.Sort.NONE)


def on_execute(self, item, action):
    kpu.set_clipboard(str(item))`
Josh Hayes
@JoshHay19349843_twitter

Does anybody know if it is possible to force the use of a prefix? For example I have FileCatalog setup to show some files, I would like the files to be hidden from the results unless I type in "find {files-to-find}".

Eg: If I type in chrome, it only shows my google chrome shortcut from the start menu, but if I type in "find chrome" it will show files from the files catelog that include "chrome" such as "chrome.png" etc etc

Any help is appreciated, thank you!

Jeffrey Spies
@JeffSpies
Hi, all. Install with choco, but am not getting a start menu icon. I know where to find the file, but is that expected? Thanks!
Fran
@fran.io:matrix.org
[m]
Same here, no icon when you install via choco. However, searching for "keypirinha" in the menu will find the program. Keypirinha can also start on login, so a menu entry would be redundant :-)
wwwald
@wwwald
I'm trying to create a new package, so created a subdirectory in "Profile" (as a Live Package).
It contains an .ini file and a .py file, the latter contains a plugin class inheriting from Plugin.
but Keypirinha can't load it yet - it gives me error "ModuleNotFoundError: spec not found for the module ..."
probably a stupid thing I'm missing... anyone with a hint?
Steffen Brüheim
@ueffel
It probably comes down to naming: the subdirectory must have the same name as the plugin itself. See Keypirinha/Keypirinha#413 also https://keypirinha.com/packages.html#package-naming
wwwald
@wwwald
naming was correct - it seems that Keypirinha sometimes need a full restart in order for the appropriate imports to become available. Found this in an earlier Jan 2019 comment of yours, related to #117
Works as expected now, after a restart!
drfloyd5
@drfloyd5
Hello All! How do I get Keypirinha to catalog shortcuts? I want to have a folder containing shortcuts to various exes, and I want KP to present me the shortcuts. Thank you!

I have tried adding

[profile/ExeOnly]
include_hidden = no
include_dirs = no
include_files = yes
# filters = + ext: ${env:PATHEXT};.lnk
filters = + ext: .lnk
paths = $(var:KNOWNFOLDER_PROFILE)\bin\**

to the filescatalog.ini

6 replies
Svyatoslav Donov
@dopiknik_gitlab
@clarkb7 Hi! Could you please explain in more detail how to configure the pass plugin.
2 replies
PalleV
@PalleV
image.png
Hello! I am currently working on a GIPHY plugin and everything but ONE thing is working. When searching, a list of textresults are shown. I would like the icon to become a preview. I download these previews into cache, but then I get the error: failed to create icon from the given sources
Above my output
7 replies
David
@DavBE
Hi! I have some portable apps in a folder that I've indexed using the FilesCatalog package. When I try to run these apps, they won't start. They appear in the list but when I hit enter, nothing happens. If I hit tab then "Explore", the folder where the app lies opens and I can start the app. Any help ?
6 replies
Lambert Green
@LambertGreen
Hi folks. Is there a way to use alternate keys to go up/down the list? E.g. I'd like to use Ctrl-n/p.
2 replies
Josh Hayes
@JoshHay19349843_twitter
Hi, anybody know how I can get similar functionality to Alfred for Mac? I want files/folders to be hidden from the search unless I specifically enter a keyword eg: find <filename>
gabriellima
@gabriellima

Hi there. I'm currently facing issue with FileCatalog Python Error: [WinError 1223. I have a Skydrive business folder (Onedrive business) catalogued, but trying to execute any program is raising this error.
I think it might be related to Microsoft Defender, but as it's a corporate laptop I can't do much at that.

I tried to overcome this situation by using the "open_with" parameter, by doing:
open_with = cmd /c {}

But paths with spaces are being problematic. Using cmd /c "{}" didn't work as expected. Any suggestion?

gabriellima
@gabriellima
image.png
Just to further ilustrate the issue, I've noticed that including the open_with statement generates the data_bag above.
But when it's executed, the quotes are parsed literally inside the string, adding a "\"....\"" to the path and making it invalid.
gabriellima
@gabriellima

As a temporarily workaround, I wrote a "runner.bat" script and set open_with = runner.bat {}

Inside runner.bat, I wrote the following code:
echo off
cmd /c "%*"

thegamerx1
@thegamerx1
how to restore a deleted item with Ctrl + Del
1 reply
Andrew D. Bond
@andrewdbond
I'm submitting a pull request for an enhancement to https://github.com/Keypirinha/Chocolatey - is there particular tooling used for the files with the .in suffix in https://github.com/Keypirinha/Chocolatey/tree/master/src ?
2 replies
Hrvoje Barisic
@hbarisic_twitter
How can I change the shorcut to be Alt+Space, I changed it in portable/profiles/user/*.ini file but still nothing happens. ANy help would be appreciated!
1 reply
mrdead13
@mrdead13
Any ideas why I have to run in administrator mode or it hangs?
1 reply
StevenTammen
@StevenTammen

Is it possible to run multiple instances of KP at the same time with different configuration settings, or is it forced to run as a singleton instance? I've tried downloading the portable x64 version into two different directories independently and running them, but that doesn't seem to work. Whatever instance is running stays running, and the new executable clicked on does not launch.

The use case in mind is having catalogs be as narrow as possible: using ignored_packages = <All> - FilesCatalog for each instance, and then defining custom catalogs on a per-instance basis. I use AutoHotkey extensively, so launching different instances by generated hotkey presses is not a barrier.

I would be equally happy if it were possible for me to actually remove catalog results by prefix. I.e., When I type my-prefix, only things that begin with my-prefix show up: my-prefix file1.txt, my-prefix file2.txt, and so on.

1 reply
StevenTammen
@StevenTammen
Another question: It seems using hotkey_paste with a profile prefix (e.g., apps:) may work for the use case I have envisioned, but there are two issues with how it seems to be working. First, it trims spaces in the clipboard text. So if what I have in my clipboard is md: (to show markdown files in a specific directory), the trailing space is removed. Second, and much more importantly, when KP is triggered with hotkey_paste, the pasted text is selected, meaning if I press a key, the text that was pasted gets deleted rather than added on to. Ordinarily, I would just try sending a {Right} keypress after triggering the hotkey, but there is lag time as the launcher opens. Setting a delay before sending works, but then there is a delay introduced. It would be much better if it were possible to not have the pasted text selected when KP is opened in this manner. Would that be possible?
StevenTammen
@StevenTammen

While not completely ideal, I have figured out a way to get around the hotkey_paste issue using AutoHotkey's WinWaitActive. (This script assumes that hotkey_paste = Ctrl+Win+L):

#NoEnv
#SingleInstance force
SetWorkingDir % A_ScriptDir
SendMode, Input

*CapsLock::
    SendInput ^#l
    WinWaitActive ahk_exe keypirinha-x64.exe
    SendInput {Right}{Space}

If you type extremely fast, you may still overwrite the pasted content

Anhad
@anhad_gitlab
How do I configure Keypirinha from indexing Google Chrome URLs/links in the catalog? I just want to be able to get to installed Apps around the OS, nothing else like .txt files etc.
4 replies
Anhad
@anhad_gitlab
Hoping this is an active community chat :)
Hovissimo
@hovissimo_twitter
I'm trying to discover if Keypirinha supports a worklow that I want to use. I'm wildly happy with how easy Kp makes launching apps, but it's become so easy that I end up with duplicate calculators and calendars all over the place. I'm searching for a setting in Kp where it will detect if the launched app is already running, and if so it should not launch a new copy but instead to activate and float the existing instance. It looks like this is outside scope for Kp, but I'm hoping someone will contradict me.
2 replies
mortyobnoxious
@mortyobnoxious
How can use this python package with Keypirinha: https://pypi.org/project/Js2Py/
Chris Smink
@cclaws_gitlab
Is Keypirinha supposed to index and allow launching of documents by default? When I enter the file names of spreadsheet files into the LaunchBox, I don't see any results.
1 reply
dma550
@dma550
hey all, I am trying to make either filescatalog or launchy show folders from my start menu. Many of my apps installed have some significance in the folder, and then the contents are less so significant. For instance, red gate is the folder, and all the product links are inside. I want to type "red " and see red gate. Then have the action open the folder showing me the 3-4 lnk products. I hate how windows search doesn’t key off folder names anymore. Anyhow, when I do that I get spotty results. [profile/startfolders]
activate = yes
paths = C:\ProgramData\Microsoft\Windows\Start Menu\Programs
filters = + ext: .lnk
file_item_label = {profile}: {dir1}{clean_name}
include_dirs = yes
include_files = yes
RCJacH
@RCJacH
Is there a setting to turn off writing new items to the history file?
shades_of_grey
@shades_of_grey:matrix.org
[m]
Every once in a while I need to run some applications as a different user. I've tried various solutions, but there all a bit inelegant. As such, I'd like to be able to do something a kin to what was described here, Keypirinha/Keypirinha#307. I've written cmd/shell script wrappers before (I'm assuming that's what is meant by trampoline script) so I imagine it wouldn't be to difficult. However, I'm not quite sure how I'd do this for keypirinha. I didn't find anything poking around the keypirinha web site. Then again, I may have just been looking in the wrong place. Any guidance on how to accomplish my goal would be much appreciated.