Open file under cursor in Atom.
It handles opening:
// /foo/bar.jsimport test from './sub/dir/test';// -> /foo/sub/dir/test.js
// /foo/bar.jsimport test from 'sub/dir/test';// -> /sub/dir/test.js
projects.cson
{
title: "Sample Project"
paths: [
"/path/to/project"
]
prefixPaths: [
"/path/to/other"
]
}
// /path/to/project/foo.jsimport test from 'sub/dir/bar';// -> /path/to/other/sub/dir/bar.js
Useful for projects setting up custom path resolving (e.g. using webpack).
$ apm install project-manager
You can also open Atom and go to Preferences
> Install
and search for open-project-file
Keymaps:
ctrl-shift-o
: Opens file under cursorCommands:
open-project-file:open
: Opens file under cursorInspired by:
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.