-
Notifications
You must be signed in to change notification settings - Fork 43
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
Setting inheritance #330
Comments
It also makes sense to place reusable pieces directly in the current configuration, for example, directly in <config/set>. Use a colon to point to a base block from the <config/set> namespace. If the name is in quotes, then this is a link to the file. <config:"./base.xml">
<menu>
<item:dtvt_term:no_reset:rich_selection id=T1/>
<item:dtvt_term:html_selection id=T2/>
</menu>
<term:"./term/long-history.xml"/>
<set>
<blackdk = 0xFF101010 />
<reddk = 0xFF1f0fc4 />
<greendk = 0xFF0ea112 />
...
<dtvt_term type=DirectVT cmd="$0 -r term"/>
<no_reset>
<config>
<term>
<scrollback><reset onkey=off/></scrollback>
</term>
</config>
</no_reset>
<rich_selection>
<config>
<term>
<selection mode="rich"/>
</term>
</config>
</rich_selection>
<html_selection>
<config>
<term>
<selection mode="html"/>
</term>
</config>
</html_selection>
</set>
</config> |
We can also do inline nested blocks for brevity <config:"./base.xml">
<menu>
<item:dtvt_term:no_reset:rich_selection id=T1/>
<item:dtvt_term:html_selection id=T2/>
</menu>
<term:"./term/long-history.xml"/>
<set>
<blackdk = 0xFF101010 />
<reddk = 0xFF1f0fc4 />
<greendk = 0xFF0ea112 />
...
<dtvt_term type=DirectVT cmd="$0 -r term"/>
<no_reset/config/term/scrollback/reset onkey=off/>
<rich_selection/config/term/selection mode="rich"/>
<html_selection/config/term/selection mode="html"/>
</set>
</config> |
More special syntax will make #326 harder but I really like the ideas. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
o-sdn-o
added a commit
to o-sdn-o/vtm
that referenced
this issue
Sep 26, 2024
o-sdn-o
added a commit
to o-sdn-o/vtm
that referenced
this issue
Sep 26, 2024
o-sdn-o
added a commit
to o-sdn-o/vtm
that referenced
this issue
Sep 30, 2024
o-sdn-o
added a commit
to o-sdn-o/vtm
that referenced
this issue
Oct 1, 2024
o-sdn-o
added a commit
to o-sdn-o/vtm
that referenced
this issue
Oct 1, 2024
o-sdn-o
added a commit
to o-sdn-o/vtm
that referenced
this issue
Oct 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Allow setting files to include other setting files.
This would allow to have a base config and some that have small edits for specific uses.
Also it should be possible to define partial configs.
The text was updated successfully, but these errors were encountered: