https://github.com/spektom/gcsearch
Google code search plug-in for Eclipse
https://github.com/spektom/gcsearch
Last synced: 3 months ago
JSON representation
Google code search plug-in for Eclipse
- Host: GitHub
- URL: https://github.com/spektom/gcsearch
- Owner: spektom
- Created: 2011-09-11T07:55:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T17:31:50.000Z (about 10 years ago)
- Last Synced: 2025-01-20T16:53:29.341Z (4 months ago)
- Language: Java
- Homepage:
- Size: 3.35 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcsearch #
The aim of this project is to provide intuitive interface for searching public source code
via Google Code Search directly from your lovely Eclipse IDE.## Installation ##
You must have Eclipse 3.5 and greater.
* Go to Help -> Install New Software...
* Type update site: https://github.com/spektom/gcsearch/raw/master/update/
* Press ENTER.
* Click on Select All, then proceed to the next page.
* Click on Next again.
* Accept the license agreement.
* Click on Finish, and follow the instructions.## Usage ##
Once installed, the feature integrates into exiting search dialog (press CTRL+H):

Search results are opened in the standard Eclipse search results view:

## Source retrieval rules ##
### Introduction ###
Source retrieval rules help re-construct URL that brings you to the file containing the source code of the search result.
### Details ###
Source retrieval rule consists of two parts:
**Package pattern** - Regular expression that matches one of search result package names.
**Target URL** - Replacement string that represents the URL to the file containing the source code. The string may contain the following placeholders:
* %FILE% - Search result file name (will be replaced with the actual one)
* $1, $2, etc... - Match group of the package pattern.### Editing Rules ###
To edit existing source retrieval rules, either go to Window -> Preferences -> General -> Search -> Google Code, or click on "Configure search settings" button placed in the Search Results View toolbar:

Configuration screen:

### Examples ###
#### Handling GitHub URL ####
This rule helps to convert git:// URL to HTTP (for github.com host only):
**Package pattern**: `git://github\.com/(.*)\.git`
**Target URL**: `http://github.com/$1/raw/master/%FILE%`