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

Closed
opened 2025-11-02 10:34:25 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @sharpSteff on GitHub (Jun 24, 2024).

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

Originally created by @sharpSteff on GitHub (Jun 24, 2024). ### 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
GiteaMirror added the type/proposal label 2025-11-02 10:34:25 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Jun 24, 2024):

You expect to find text inside binary files?

@KN4CK3R commented on GitHub (Jun 24, 2024): You expect to find text inside binary files?
Author
Owner

@sharpSteff commented on GitHub (Jun 24, 2024):

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

@sharpSteff commented on GitHub (Jun 24, 2024): no, I just like have the files listed in the search results, without any preview
Author
Owner

@yp05327 commented on GitHub (Jun 27, 2024):

@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?

@yp05327 commented on GitHub (Jun 27, 2024): @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?
Author
Owner

@sharpSteff commented on GitHub (Jul 4, 2024):

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

@sharpSteff commented on GitHub (Jul 4, 2024): @yp05327 no, I just want to list the binary files in the search results (without preview) if the filename matches the search-query
Author
Owner

@yp05327 commented on GitHub (Jul 4, 2024):

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

@yp05327 commented on GitHub (Jul 4, 2024): we already have file name search. ![IMG_4053](https://github.com/go-gitea/gitea/assets/18380374/5bbce5de-8550-4d61-8ab6-a19025020f5f) it will go to: https://gitea.com/gitea/docs/find/branch/main
Author
Owner

@sharpSteff commented on GitHub (Jul 5, 2024):

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

@sharpSteff commented on GitHub (Jul 5, 2024): @yp05327 wow great, thats basically the functionality I'm looking for. Is it possible to enable this file search also organistation-wide?
Author
Owner

@lunny commented on GitHub (Jul 11, 2024):

@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.

@lunny commented on GitHub (Jul 11, 2024): > @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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13194