open-project-file

Atom package: Open project file under cursor

avaly

1,053

3

1.1.1

MIT

GitHub

open-project-file

Open file under cursor in Atom.

Demo Screencast

It handles opening:

// /foo/bar.js
import test from './sub/dir/test';
// -> /foo/sub/dir/test.js
// /foo/bar.js
import test from 'sub/dir/test';
// -> /sub/dir/test.js
{
  title: "Sample Project"
  paths: [
    "/path/to/project"
  ]
  prefixPaths: [
    "/path/to/other"
  ]
}
// /path/to/project/foo.js
import test from 'sub/dir/bar';
// -> /path/to/other/sub/dir/bar.js

Useful for projects setting up custom path resolving (e.g. using webpack).

Install

$ apm install project-manager

You can also open Atom and go to Preferences > Install and search for open-project-file

Use

Keymaps:

Commands:

Credits

Inspired by: