You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done a basic search of the issue tracker to find any existing issues that are similar.
I have checked that my version is at least the latest stable release available via my installation method.
Describe the bug
First of all, thanks a lot to everyone involved in introducing the new idx family of commands.
Searching has become really instantaneous and I am looking forward to using it in place of fd/rg.
One thing that bothers me currently is that idx search gives results from and relative to the location of the last idx init and not from the current path.
This limits it's effectiveness because one now needs to re-init every nested folder even if the parent was already init.
More important though it's confusing because the path is relative to the init folder which is not obvious from the output and not easy to filter/fix.
Suggestion, make idx search filter out results that are beyond cwd and possibly introduce a new key --workspace which will search in the init folder as now but make all the path relative to cwd
How to reproduce
Run idx init . in a folder that has subfolders
Change dir to a nested folder
Run idx search something
Expected behavior
Either only results from current and descendant folders should be included (preferred) or the paths should be relative to cwd
Activity
fdncred commentedon Jun 26, 2026
seems reasonable
fdncred commentedon Jun 26, 2026
Hopefully this works as expected #18477
allow `idx find` and `idx search` to show hits relative to cwd (nushe…
yerlaser commentedon Jun 26, 2026
Great, thank you very much for quick resolution!