Zhixuan Yang on Nostr: Many file formats have some kinds of inclusion directive, like "#include" for C, ...
Many file formats have some kinds of inclusion directive, like "#include" for C, "\input" for LaTeX, "\transclude" for forester, "import" for many programming languages.
I would like to have a text editor feature that allows me to visually expand an inclusion directive in the text buffer, just like how folds of text regions work, while actual changes are still made to the referenced file.
This would be very useful when working with projects with many inter-linked files because most text editors are not very good at jumping around files/buffers.
However, this feature looks impossible to implement nicely in vim. Does anyone know an editor that supports this or is hopeful to support this?
Published at
2025-03-31 15:22:18Event JSON
{
"id": "5cd04f4c027a12604c0a5a158ac3afe935601d84252091ecc160c9ead8b53b91",
"pubkey": "a1e69aaa932de719c4576a3fe547589d0a4914acb43938956d5eea70581299b5",
"created_at": 1743434538,
"kind": 1,
"tags": [
[
"t",
"include"
],
[
"proxy",
"https://mathstodon.xyz/users/zyang/statuses/114257725937858843",
"activitypub"
]
],
"content": "Many file formats have some kinds of inclusion directive, like \"#include\" for C, \"\\input\" for LaTeX, \"\\transclude\" for forester, \"import\" for many programming languages.\n\nI would like to have a text editor feature that allows me to visually expand an inclusion directive in the text buffer, just like how folds of text regions work, while actual changes are still made to the referenced file.\n\nThis would be very useful when working with projects with many inter-linked files because most text editors are not very good at jumping around files/buffers.\nHowever, this feature looks impossible to implement nicely in vim. Does anyone know an editor that supports this or is hopeful to support this?",
"sig": "2c5a7c6f7bbf89623d7bcde38145181c9ff5f9761298035f7cc78c077c3fbe0451fdea6a8b9f605984df8829de0f1b879f6b198e3118b18498043fb675c3911d"
}