Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
./
to make the location relative to currently loaded file.../
prefix looks for the source file one layer up. These can stack (../../../
) since they use thePath*
types to resolve the location.(include)
instead of(import)
.FileDatabase
. This prevents recursive imports from stack overflowing and crashing eww, as well as multiple variable declaration errors.Relative imports are quite useful since they allow you to create isolated modules that can be shared among users without having to recreate the same file structure or using separate configuration directories.
Usage
Here's a snippet from the updated
(include)
documentation:Additional Notes
I would like to hear some feedback from users/maintainers since some of the solutions to the issues might have to be changed.
Checklist
Please make sure you can check all the boxes that apply to this PR.
docs/content/main
directory has been adjusted to reflect my changes. Um, this folder doesn't exist?..cargo fmt
to automatically format all code before committingBugs