go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.36k stars 5.43k forks source link

Binary Files (.xlsx, .docx) are not shown in the code search results. #31469

Closed sharpSteff closed 2 months ago

sharpSteff commented 3 months ago

Description

When enabling repository indexer for zip-archive based files like .xlsx oder .docx, I would expect gitea to show these files in the code search as paths (without any preview).

Probably more a feature request than a bug.

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

MySQL/MariaDB

KN4CK3R commented 3 months ago

You expect to find text inside binary files?

sharpSteff commented 3 months ago

no, I just like have the files listed in the search results, without any preview

yp05327 commented 3 months ago

@KN4CK3R means: Listing them in the search results means we need to find text inside these binary files FIRST. Are you expect to do this?

sharpSteff commented 2 months ago

@yp05327 no, I just want to list the binary files in the search results (without preview) if the filename matches the search-query

yp05327 commented 2 months ago

we already have file name search. IMG_4053 it will go to: https://gitea.com/gitea/docs/find/branch/main

sharpSteff commented 2 months ago

@yp05327 wow great, thats basically the functionality I'm looking for. Is it possible to enable this file search also organistation-wide?

lunny commented 2 months ago

@yp05327 wow great, thats basically the functionality I'm looking for. Is it possible to enable this file search also organistation-wide?

Please open another issue for the proposal and I will close this one since it's not planned to index binary files.