brpaz / ulauncher-file-search

Quick Search files and directories from Ulauncher
MIT License
72 stars 35 forks source link

None of the commands seem to work #9

Open hurani opened 5 years ago

hurani commented 5 years ago

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

jehutymax commented 5 years ago

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

acarril commented 5 years ago

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.

FranGoitia commented 5 years ago

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

fvcalderan commented 5 years ago

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

_~/.cache/ulaunchercache/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.

akovia commented 5 years ago

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.

daveriedstra commented 4 years ago

@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]

torbenf commented 4 years ago

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

adarrra commented 4 years ago

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

roelandxyz commented 4 years ago

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.