-
Notifications
You must be signed in to change notification settings - Fork 7
Path relative to current file instead of cwd #7
Copy link
Copy link
Open
Description
Thanks for making this great plugin! Can I make it insert the path relative to my current file? Perhaps easier to explain with an example.
Let's say I have the following folder structure:
├── src
│ ├── lib
│ │ ├── utils.js
│ ├── modules
│ ├── example
│ ├── index.js
I open .src/modules/example/index.js and type: import * from './utils.js'. Then it will correctly find the path of ./src/lib/utils.js, but when I hit enter it insert the path relative to the cwd (./src/lib/utils.js). Is there a way to instead insert the path relative to where I searched from(../../lib/utils.js)?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels