Plugin: import-code
Import via !![](../src/foo.py)
, as a CodeBlock, optionally filtering further — e.g. to #someFunction
or line range #L32-L48
.
Status
✽ Partly implemented ✽
Entire-file imports are implemented, but none of the filters/fragments are.
Filters and fragments
🚧 | Range of lines, e.g.#L32-L48 |
🚧 | One definition, e.g. #someFunction |
🚧 | One definition + deps, e.g. #someFunction:followedByItsDeps |
🚧 | :includeReferencedImports |
UX in existing text editors
Major text editors (including VSCode), without any extensions, will consider the (…)
part to be the src of an Image node, so they will helpfully provide link-autocompletion when writing and link-following when command-clicking.
From zip2zip
When used in zip2zip
mode, these import-*
plugins can load files from your input/source zip without having to leave the WASM sandbox or incur any more file-system latency.