Skip to content

feature request: an option to search #442

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

Open
heygarrett opened this issue Nov 5, 2024 · 1 comment
Open

feature request: an option to search #442

heygarrett opened this issue Nov 5, 2024 · 1 comment

Comments

@heygarrett
Copy link

heygarrett commented Nov 5, 2024

I'd love to be able to do something like xdg-ninja ghc to see where ghc puts config files by default and what options there are to move them to XDG directories. Currently I'd need to use the tool to see where the default files end up, and then I can run xdg-ninja to see what the suggestions are (or I need to search the code in this repo).

@ian-h-chamberlain
Copy link

On the flip side of this, I'd love to query an existing file/directory and see if xdg-ninja can tell me how to fix it, e.g. something like

$ xdg-ninja ~/.android
[android]: /home/ian/.android

  Export the following environment variable:

    export ANDROID_USER_HOME="$XDG_DATA_HOME"/android

  Additionally, if you use adb, use the following alias:

    alias adb='HOME="$XDG_DATA_HOME"/android adb'

Both of these seem like they could be done using the same argument (if filepath exists, check it, otherwise search) but it might also make sense to have more explicit args like --filepath or --search

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants