Giter Site home page Giter Site logo

ulauncher-file-search's Introduction

ulauncher-file-search

Quick Search files and directories from Ulauncher using fd.

Ulauncher Extension CI Status

GitHub license

Demo

demo

Requirements

  • Ulauncher 5+
  • Python 3+
  • fd - A simple, fast and user-friendly alternative to 'find'.

Install

Open ulauncher preferences window -> extensions -> add extension and paste the following url:

https://github.com/brpaz/ulauncher-file-search

Usage

This extension provides the following keywords:

  • fd -> Search files and directories
  • ff -> Search Files
  • fdir -> Search directories

To search, input one of the previous keywords to trigger the extension and start typing your search criteria. Ulauncher will call "fd" under the hood to perform your search and it will display a list of results.

Result items Actions

  • Press "Enter" - Open the file / folder using the default system action
  • Press "Alt+Enter" - On a folder, it will open the respective folder in a Terminal window.

Extension settings

  • Terminal Emulator -> Sets the terminal emulator to use when opening directories.
  • Base dir -> The base directory to start your searches. By detault, its the root folder "/" but you can set to your home directory, for example. Note, that only absolute paths are supported.

Development

git clone https://github.com/brpaz/ulauncher-file-search
make link

The make link command will symlink the cloned repo into the appropriate location on the ulauncher extensions folder.

Make sure Ulauncher is not running and from command line run:

ulauncher --no-extensions --dev -v |& grep "file-search"

This will start ulauncher with all the extensions disable which will make it easier to look for logs.

You then have to start the Circle CI extension manually. In the output of the previous command you should find something similar to this:

VERBOSE=1 ULAUNCHER_WS_API=ws://127.0.0.1:5054/file-search PYTHONPATH=/usr/lib/python3/dist-packages /usr/bin/python3 /home/bruno/.cache/ulauncher_cache/extensions/file-search/main.py

Copy and run that command in another terminal window.

Your extension should now be running. To see your changes, just Ctrl+C and re-run the last command.

Contributing

All contributions are welcome. Just open an issue and/or create a PR.

If you like my work, feel free to "Buy me a Coffee".

Buy Me A Coffee

Links

License

MIT © Bruno Paz

ulauncher-file-search's People

Contributors

brpaz avatar ckrybus avatar earlopain avatar friday avatar lunacd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ulauncher-file-search's Issues

`fd` process won't shut down

Since fd doesn't return an instantaneous result, it's reasonable to expect the ulauncher window to disappear. However, the fd process would still keep running in the background and in some cases* may result major system slowdowns or even crashes.

* In my case, I have multiple nfs mounts which fd really struggles to search.

Doesn't search files...

I'm annoyed that Krunner uses only baloo, so I can't use it to pull up my mpv.conf (or the copy installed in /usr/share which I use as a reference).

I can use kfind, but I want a shortcut.

So I installed this, AND XFCE terminal because it won't use konsole, or yakuake...

So I type 'ff mpv' and get nothing.

> locate mpv.conf /home/ben/.config/mpv/mpv.conf /home/ben/.config/mpv/mpv.conf.gz /home/ben/.config/mpv/mpv.conf~ /home/ben/Dropbox/mpv.conf /usr/share/doc/mpv/mpv.conf ~ >
and there are at least 5 versions in my system directory.

feature idea: locate

First, thanks for the useful extension!

One thing that I like about the Alfred launcher is the ability not just to open a file directly (with ') but to open its location in the file explorer (with find). In the ulauncher-file-search extension, this could be done with a keyword such as fl. (Even better would be if ulauncher provided a secondary action for file results–eg, alt+1 to open, alt+shift+1 to locate–but I don't think the API is there.)

Use cases:

  • I'm looking for a sibling file whose name I don't remember
  • I want to perform a file operation on a file or its siblings
  • I want to navigate somewhere starting from a file's location

Looking for mantainers

Hello. all.

I am not using this extension anymore, but I noticed by the number of stars and open issues, some interest in this. If someone is interested in step in and help to maintain this repo and triage the open issues/PRs, please reach me.

Thank you,

Feature request

Is there any way to add directories to be excluded from being search. I save backups of OpenSCAD files into a directory called either "deprecated" of "backup" with addition of "01, 02, 03...". Excluding these folders would help reduce the number hits.

Thanks
Dorian

Sorry if this is the wrong place to post a request, I am only a very occasional user of github, but use your extension enough to give this a go. Love this extension, saves me a lot of time as an attention deficit designer working in full screen as much as I can...

Proposal of future feature: cache of old searched

First of all, thanks for this amazing extension.

I mostly use the extension to open folders, and since it is a bit too slow to wait for a full search just to open a folder I thought that keeping a file with the results of last searches could speed-up the extension a lot. (Another option could be just storing the results selected by the user)

Then do two searches, one fast and one slow, being the fast one against the cache and the slow one the regular one. Searches could be done in parallel if the search on the cache has a meaningful performance impact.

I think the feature could be useful for other users too,
thanks a lot for your work

Doesnt Work

The extension does not show results for Ubuntu 20.4

Konsole

Konsole is not in the list of terminal emulators

Reuse the previous result

This is a proposal of reusing the previous search result.

The idea is to save the keyword and results in a 'previous' state. When the on_event is called again check if keyword start with previous.keyword and if it is the case then filter previous.results instead of running extension.search again.

fd dependency checks

Ubuntu average user here.
I found the extension in the ulauncher site.

It took me a while to realize that there was a dependency with 'fd', there was no message about this in the ulauncher extension site.

Suggestion #1: if the extension can't find a "proper" fd in the path, can a message be displayed in the ulauncher results, asking to install the package.

And then: in ubuntu, typing "fd" in the command line, bash suggests to install the package "fdclone", which provides fd, however this fd is totally unrelated to finding files. It took me another 10 minutes to figure this out.

What needed to be installed was the package "fd-find" and then, on top of that, a symbolic link is needed because debian changed the executable name to "fdfind" instead of fd. Another 10 minutes to figure this out.

Suggestion #2: please support both binary names: fd or fdfind, whatever is in the path and works

For ubuntu, Suggestion #1 could ask for installation of the "fd-find" package and Suggestion #2 could default to "fdfind" as the name of the binary

Or: just add a configuration option for the binary name and include there the explanations of what package need to be installed

Does not return any result

This command does not return any result for files I am sure exists and that I did not misspell. Great concept, unfortunately doesn't work.
System info: Fedora 32, Gnome, X11, uLauncher 5.8.0, uLauncher API 2.0.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.