-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: absolute import support #1397
Comments
i may want to put 'bokura-config.d2' on a network drive when i share it with my colleagues. |
doesn't it work on v0.6.0? |
unfortunately not, didn't get to it |
Just wanted to add a comment and say this is something I'd really appreciate from D2 as well, for similar reasons as the classes and style imports. I'd also like to organize pieces of my diagrams in separate files, and then import them into the relevant diagram to avoid redundancies. Absolute imports would make this much easier and avoid the need to update relative paths if I were to change my directory structure |
This will be in the next release, thank you all for patience |
is this not supported on 'windows'? |
@bo-ku-ra it should, though I haven't tested it specifically. what are you seeing? |
@alixander am I wrong?
...@/ <----- where is ' |
i made an issue to test this, will do #2149 |
when importing d2-file that define 'style' and 'classes', absolute path is better than relative path.
move "cccc.d2" "./bar/cccc.d2"
├─d2
│ │ bokura-config.d2
│ │
│ └─foo
│ │ aaaaa.d2 (classes{ ...@../bokura-config.classes })
│ │ bbbbb.d2 (classes{ ...@../bokura-config.classes })
│ │ (ccccc.d2) <-OK
│ │
│ └─bar
│ ccccc.d2 (classes{ ...@
../
bokura-config.classes }) <- NG (../../
<-OK)The text was updated successfully, but these errors were encountered: