Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration for mdfind on MacOS #3354

Open
kekscode opened this issue Nov 6, 2024 · 0 comments
Open

Integration for mdfind on MacOS #3354

kekscode opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement Enhancement to performance, inner workings or existent features

Comments

@kekscode
Copy link

kekscode commented Nov 6, 2024

Is your feature request related to a problem? Please describe.
On the CLI in MacOS it is possible to use the system-wide desktop search using mdfind for like mdfind <partial-file/partial-path>. It also supports various flags to narrow down the search. It would be cool to have that in telescope because why not using what the OS provide as a well-supported, fast and efficient facility to find files all over the disk(s).

Example:

$> mdfind "restic sh"      
/Users/<redacted>/devops/github.com/restic/restic/doc/Makefile
/Users/<redacted>/devops/github.com/restic/restic/doc/_static/css/restic.css
/Users/<redacted>/devops/github.com/restic/restic/doc/bash-completion.sh
/Users/<redacted>/devops/github.com/restic/restic/doc/conf.py
/Users/<redacted>/devops/github.com/restic/restic/doc/zsh-completion.zsh
/Users/<redacted>/devops/github.com/restic/restic/docker/build.sh
/Users/<redacted>/devops/github.com/restic/restic/helpers/verify-release-binaries.sh
/Users/<redacted>/Backups/restic-mount.sh
/Users/<redacted>/Backups/restic-check-prune-stats.sh

I checked https://github.com/nvim-telescope/telescope.nvim/wiki/Extensions and if i did not overlook something, there is not an extension yet and https://github.com/search?q=mdfind%20telescope&type=repositories didn't yield much interesting stuff, too. Did I overlook something obvious?

I am aware that this is not a cross-platform thing, so it is maybe not a feature for the default telescope package. I just would like to know if i 1) have not found an already existing solution/extension/configuration or 2) jump in and try to provide it, because i think it may be useful for me and others alike.

Describe the solution you'd like
Essentially the same behaviour as Find Files does.

Describe alternatives you've considered
Open a terminal buffer inside neovim and just type in the mdfind and then e.g. use gf.

@kekscode kekscode added the enhancement Enhancement to performance, inner workings or existent features label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to performance, inner workings or existent features
Projects
None yet
Development

No branches or pull requests

1 participant