# sourcegraph-search-export **Repository Path**: mirrors_sourcegraph/sourcegraph-search-export ## Basic Information - **Project Name**: sourcegraph-search-export - **Description**: Export search results as CSV (Sourcegraph extension) - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2026-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sourcegraph search results CSV export extension [![master build status](https://img.shields.io/github/workflow/status/sourcegraph/sourcegraph-search-export/build/master?logo=github)](https://github.com/sourcegraph/sourcegraph-search-export/actions?query=branch%3Amaster) [![codecov](https://codecov.io/gh/sourcegraph/sourcegraph-search-export/branch/master/graph/badge.svg)](https://codecov.io/gh/sourcegraph/sourcegraph-search-export) ## ⚠️ Deprecation notice **Sourcegraph extensions have been deprecated with the September 2022 Sourcegraph release. [Learn more](https://docs.sourcegraph.com/extensions/deprecation).** Starting with the September 2022 release of Sourcegraph, search export is a core part of the product. The repo and the docs below are kept to support older Sourcegraph versions. ## Description A [Sourcegraph extension](https://docs.sourcegraph.com/extensions) to export a list of search results to CSV. [**🗃️ Source code**](https://github.com/sourcegraph/sourcegraph-search-export) [**➕ Add to Sourcegraph**](https://sourcegraph.com/extensions/sourcegraph/search-export) (for self-hosted instances: visit the **Extensions** page) ## Features - Adds a **Sourcegraph: Export search results** button on top of the Sourcegraph search results pages ![image](https://user-images.githubusercontent.com/68532117/138749863-2d5bb850-5707-4d3f-9090-ef73236d7053.png) ## Usage 1. Enable the extension at https://sourcegraph.com/extensions/sourcegraph/search-export or on the **Extensions** page of your self-hosted instance. 1. Perform a search query on Sourcegraph. 1. Press the **Sourcegraph: Export search results** button above the list of search results. (Note: This may take a while for large result sets. The extension is not optimized for streaming or paginating results.) 1. Click `Download CSV` from the pop-up window to download the CSV file. ![image](https://user-images.githubusercontent.com/68532117/138749809-9c074bd8-d9f2-4998-a84e-f6a3b0cfd4aa.png) ## Configuration The extension can be configured through JSON in user, organization or global settings. ```jsonc { // The maximum length of the preview for each match ("Search matches" column). // By default, the limit is 200. "searchExport.maxMatchContentLength": 50 } ``` ## Development 1. Run `yarn && yarn run serve` and keep the Parcel bundler process running. 1. [Sideload the extension](https://docs.sourcegraph.com/extensions/authoring/local_development) (at the URL http://localhost:1234 by default) on your Sourcegraph instance or Sourcegraph.com. When you edit a source file in your editor, Parcel will recompile the extension. Reload the Sourcegraph web page to use run the updated extension. ## Release Run `src extension publish` using the [Sourcegraph `src` CLI](https://github.com/sourcegraph/src-cli).