Discussion: BetterTouchTool Launcher / Spotlight Replacement (very much work in progress)

Chris are you on the latest alpha version? I'm running 6.568 and I don't have the same issue.

first time load after BTT start is normal, I have not optimized that yet. However from then on it should stay fast on current BTT versions. Do you maybe have your BTT set to restart after sleep?

Thanks so much, @Andreas_Hegenberg. Apologies for being so late in testing these changes. Regarding my three initial comments

  1. file search as an inital route now present! :white_check_mark:
  2. opening folders in Finder instead of the integraded browser works! :white_check_mark:
  3. Finder windows still appear behind the presently active window for me. Note this only applies to Finder windows created from the "reveal in Finder" action, not from windows created via opening a folder (#2 in this list).

Two new things I came across (very minor, and not yet tested thoroughly, and maybe they are intentional):

  1. When the file search returns a list of items, the "reveal in Finder" shortcut I assigned only seems to work for files, not for folders/directories (which I would use to open the parent folder). Maybe that's because the action has a different name for folders, but I cannot change it from Cmd+R to "unify" it across files and folders alike (maybe a user error...)
  2. If a file is highlighted/selected in the file browser and I use Space for QuickLook, I cannot use Space again to close QuickLook (as I can in Spotlight/Finder/...). Instead, it seems the second Space-command is instead sent to the window that was active before launching the launcher.

Apologies for all these tedious (and possibly self-inflicted) issues...

I've been trying out the launcher for a few days and would love to replace my aging Alfred setup. Thanks to the "Prompt Match" setting I have a minimalist launcher like Aflred at start. I have two issues however

  • When pressing opt the AI Configuration menu items reappears (I have set the Hotkey for the launcher to opt-space so it sometimes appears right away)
  • The instant file search with space also does not work since "File Search" is set to hidden in the settings.

Is it possible to have a single line launcher visible at first and have it populate with results only when I type AND have the "leading space" or file search in general shortcut working?

Another more fundamental issue: I use fzf and other fuzzy finder tools heavily and basically rely on the type first, filter later workflow. My brain is apparently wired like that. I would love for the file search to be fuzzy as well, or more over be basically fzf/skim/nucleo/FuzzyMatch with configurable options. In lieu of that, I would like to write a swift plugin that could do that. That seems entirely possible but it would be awesome if plugins could also benefit from the "leading space" shurtcut and the fallback to offer file search when normal search finds nothing

  • tl;dr: Can File search be like fzf and if not, can a custom search plugin have the same "first class citizen capabilities" as the built in file search?

I hope this is the right place, feel free to delete or move. I am very excited for the future of this (even more) swiss-army-knife like BetterTouchTool :smiley:

Edit: Attached Screenshot/Screencast I forgot

could you post a screenshot of that? I think I'm unable to reproduce right now.

I can allow fzf as file search backend, maybe I'll just add multiple options.

I attached the screencast to my original post, I simply forgot to attach it. Sorry about that.

Fzf as a file backend, or even multiple backends would be lovely. Fzf has a streaming mode, if that could be implemented as well that would be awesome. Otherwise there might be a substantial delay while e.g fd walks across the filesystem and indexes all the files. I "solved" that on my end by caching and returning results from the cache fist. Once the current walk across the FS is done I'd update the results (if there is a change). This gives instant feedback and minimises the "shuffling around" of the results while new/better matches stream in. But this is just my 2 cents :).

Thanks for considering and all the best!

6.572 (uploading) should fix the option AI issue and the file search will not be disabled anymore just because the item is hidden.

I also added a "external command" file search backend, for example this command might be a good match for you (adapt the paths as needed). It can not yet use the streaming mode as that would require a proper terminal session - I'm not sure whether this can be supported

q={query}; /usr/bin/mdfind -onlyin {home} "kMDItemFSName == '*${q}*'wc" | /opt/homebrew/bin/fzf --filter "$q" | /usr/bin/head -n {maxResults}

6.573 is mostly a performance pass on the launcher, typing should now feel faster and various of its actions as well

I recently also added a feature I use regularly, you can type things like

"Safari, Finder & Whatsapp" and BTT will then launch & position them side by side.

This is not perfect yet, works best if the windows of the apps are not spread across spaces but I like it. Any ideas on how to improve this without making it too complex to use would be very welcome!

Can we use a keyboard shortcut to trigger a plugin with the launcher prompt text --- without having to have it as the currently highlighted item, and without having to type its shortcut? So for example, the 'Google Search Launcher' -- activate it with ⌘B at any time to have it open chrome with the launcher prompt.

Good idea, I have added this in 6.600 alpha:

OH, ANDREAS!! You are the world's most loving developer!

I am on MacOS 27 beta and while the rest of the OS is joyous and awesome, the integration of Siri into Spotlight has me up at night, mouring the loss of the once beautiful spotlight bar. I find the new UI to be aesthetically diabolical and I nowhere near as functional for power users such as those in our community. Hopefully this imporves in the new few betas and we get an option to toggle the look back to the more svelte and sexy previous incarnation...

But now I am finding out about this new launcher.... oh it;'s sexy, FAST, and best of all it's only going to get better.

Thanks a bunch!!! :heart_eyes:

@Andreas_Hegenberg I might misunderstand how ordering works but I want to order my launcher items so that applications are always at the top of the list but that doesn't seem to work? Is this a bug or am I missing something? I have also tried putting the apps section above the Finder context but that doesn't change anything.

Launcher typing in "lo" for "logseq"

Launcher item ordering

do these items that show above apps maybe have lower order values than -1000 assigned? (only then they should show above)

These order values can be configured per BTT trigger in its Launcher Config settings

It seems like the launcher order values are >= 0 for all items you have, but maybe worth checking.

Hi Andreas, no they are all greater than -1000 so in theory they should be below applications? For example "Floating Menu Related Actions" is a bettertouchtool action which has an order value of 9400.

yes then they should definitely order after apps. I‘ll try to reproduce later!

This is a really nice feature! I've been using it for the past couple of days, and I'm really enjoying it so far.

One thing I noticed is that it always seems to appear on the primary monitor, even in a multi-monitor setup. Would it be possible to have it open on the monitor where the mouse cursor is instead?

Also, I've been using Raycast instead of Spotlight for quite a while, so I've gotten used to a few features that I think would be great additions to the Launcher. One that I miss in particular is being able to press the Up Arrow to recall the previous prompt. I use that all the time, especially when doing multiple conversions and I can't remember the number I entered a moment ago.

@dfrigon the positioning can be configured in the settings of the „show / hide launcher“ action!

Arrow up sounds like a good idea, I‘ll think about accessing previous prompts in general soon.

@yougotwill could you check whether this is resolved in 6.611?

6.611 should also improve performance of the launcher in various scenarios (e.g. typing "Finder and Safari" should much faster recognize that you want to launch / arrange windows)

Hi Andreas,
I haven't tested this issue thorougly yet, but at least for the launcher setup that I am using (directly going to file search), I cannot paste text into the launcher. Say I am searching for a file, the name of which is in the clipboard, I cannot launch the launcher (...) and hit Cmd + V to paste. Instead, nothing happens.
Again, not sure whether this is setup-specific or a general issue so let me know if I should try out anything (and apologies if this has been posted before - I did not find it).