You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Nicolas Petton 51b1fdff31
update the readme and add screencasts
5 years ago
screencasts update the readme and add screencasts 5 years ago
COPYING initial commit 5 years ago
readme.md update the readme and add screencasts 5 years ago
xref-js2.el Remove projectile dependency 5 years ago

readme.md

xref-js2

xref-js2 adds navigation to definitions or references to JavaScript projects in Emacs.

xref-js2 adds an xref backend for JavaScript files.

Instead of using a tag system, it relies on ag to query the codebase of a project. This might sound crazy at first, but it turns out that ag is so fast that jumping using xref-js2 is most of the time instantaneous, even on fairly large JavaScript codebases (it has been tested on 50k lines of JS code).

Because line by line regexp search has its limitations, xref-js2 does a second pass on result candidates and eliminates possible false positives using js2-mode's AST, thus giving very accurate results.

Requirements

Demo

jump-to-definition.gif jump-to-references.gif