opengrok icon indicating copy to clipboard operation
opengrok copied to clipboard

Automatic display of unique searched file

Open ChristopheBordieu opened this issue 4 years ago • 9 comments

Question.

OG 1.6.6.

When full searching, if exactly 1 occurence is found, then the matched file is automatically displayed (/xref/...) instead of getting a search result page (with directory, file and lines).

Is there a way to avoid this automatic display of the file?

ChristopheBordieu avatar May 06 '21 12:05 ChristopheBordieu

I don't think so. That would be a global (or perhaps per project) tunable.

vladak avatar May 06 '21 12:05 vladak

Ok, thanks. Should be a tunable per user. Because it is totally user dependant such a behavior. Closing.

ChristopheBordieu avatar May 06 '21 13:05 ChristopheBordieu

Automatic display is not configurable.

ChristopheBordieu avatar May 06 '21 13:05 ChristopheBordieu

@ahornace recently mentioned having per user configuration for #3555 so perhaps one day it will be possible.

vladak avatar May 06 '21 14:05 vladak

Yep. Remember this. (Users) Would love that.

ChristopheBordieu avatar May 06 '21 15:05 ChristopheBordieu

Then keep it open.

vladak avatar May 06 '21 15:05 vladak

The foundation for per user settings is now in place via PR #3642.

vladak avatar Jun 28 '21 08:06 vladak

any updates on this? the redirection with a single result is extremely annoying

RetroZelda avatar Nov 03 '22 18:11 RetroZelda

Not at the moment. PRs are definitely welcome.

vladak avatar Nov 03 '22 18:11 vladak