ulauncher-file-search icon indicating copy to clipboard operation
ulauncher-file-search copied to clipboard

None of the commands seem to work

Open hurani opened this issue 6 years ago • 9 comments

All file search commands return no results. Any ideas as to why I'm running into this issue?

hurani avatar Feb 15 '19 08:02 hurani

Are you sure you have fd (https://github.com/sharkdp/fd) installed?

jehutymax avatar Apr 02 '19 13:04 jehutymax

Same for me, I can't get any results; I type fd foo and get "No results found matching foo". I have installed fd from https://github.com/sharkdp/fd and tried using the extension with and without setting the fd alias (not sure if it matters). On the terminal I get near instant results.

acarril avatar Apr 19 '19 23:04 acarril

Same issue over here on Ubuntu 19.04 using ULauncher 4.4.0.r1. Too bad, looked like a really useful extension.

FranGoitia avatar Jun 22 '19 16:06 FranGoitia

I fixed the problem on Ubuntu 19.04 by modifying the following script:

~/.cache/ulauncher_cache/extensions/com.github.brpaz.ulauncher-file-search/main.py

Look for the line number 42 (it's actually spread from line 40 to 44):

cmd = [ 'timeout', '5s', 'ionice', '-c', '3', 'fd', '--threads', '1', '--hidden' ]

Now, change 'fd' to 'fdfind', save the file, restart Ulauncher and try using the extension.

I did this because I noticed that using "fd" in the terminal wouldn't work for some reason, so I looked for the file in the bin folder and it was named fdfind, so I thought: "typing fdfind in the terminal should work", and it did. Then it made sense to modify the main script for the extension.

I hope it works for you guys.

fvcalderan avatar Aug 23 '19 22:08 fvcalderan

Same problem here but I didn't have fd installed and also had a bash alias set to fd for fdisk.

Installed fd and changed my alias and all is good now.

akovia avatar Aug 27 '19 13:08 akovia

@fvcalderan's method worked for me (Pop OS 19.04) while setting a bash alias didn't, but modifying the extension script isn't a great solution. I guess there are two things the extension could do to make this better: provide an error / warning if fd isn't installed (per #14), and provide a config option for user to set the program name (with the default set to fd).

[note for future googlers: the extension directory has changed in ulauncher v5, you'll now find the script in ~/.local/share/ulauncher/extensions/com.github.brpaz.ulauncher-file-search]

daveriedstra avatar Sep 25 '19 13:09 daveriedstra

On Linux Mint 19.3 Cinnamon the following solved it: I aliased fd=fdfind AND changed fd to fdfind in the main.py at ~/.local/share/ulauncher/extensions/com.github.brpaz.ulauncher-file-search as @fvcalderan suggested

Now I can type fd [something] in uLauncher

torbenf avatar Mar 24 '20 22:03 torbenf

Thanks @torbenf, this worked for me Ubuntu 19.04, xcfe

adarrra avatar Mar 30 '20 04:03 adarrra

On ubuntu: sudo ln -s /usr/bin/fdfind /usr/local/bin/fd or to some other destination in your path.

It works for me now, but it is a lot slower than on the terminal for some reason.

roelandm avatar May 10 '20 21:05 roelandm