atom-dxr-search

DXR search for Atom.

Osmose

313

2

0.1.3

MIT

GitHub

Atom DXR Search

Atom DXR Search is an Atom package for performing DXR searches. It allows users to search DXR from within the Atom interface and jump to matches if they've got the matching tree open within the editor.

Note: This package requires you to be able to connect to a running DXR instance, which usually means you need internet access to use it.

Screenshot of package

Usage

Hit Cmd-Alt-J/Ctrl-Alt-J to open the search dialog. Enter your query and hit Return to submit the search. The results will be displayed below the search bar. If there are more results than the per-page limit configured in the package settings, there will be a "Show More" button at the bottom of the results that will load more results when clicked.

If you have the tree you're searching open in the current project, clicking on any of the filenames or matching lines will open that file in a new tab.

You can also remap the command to any key you want. For example, add the following to your keymap to map Ctrl-Alt-G to open the dialog:

'atom-workspace':
  'ctrl-alt-g': 'atom-dxr-search:toggle'

Settings:

Server
Base URL of the server to query when searching. Defaults to `https://dxr.mozilla.org`.
Tree
Name of the code tree to search. Defaults to `mozilla-central`.
Results Per Page
Number of files to show per page of results. Defaults to `10`.

License

Licensed under the MIT License. See LICENSE for details.