Skip to content
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

Allow using full command paths in headers #36

Merged
merged 3 commits into from
Feb 19, 2021

Conversation

florimondmanca
Copy link
Contributor

@florimondmanca florimondmanca commented Feb 19, 2021

Closes #35

Description

Allows progressively enhancing rendering to output full command paths, instead of only command names.

The only change is that headers show eg ddev env ls instead of ls, and permalinks are eg #ddev-env-ls instead of #ls.

We need the attr_list extension to be installed, so to bring this change progressively we check for the extension instead of making it a hard-requirement, and keep the old behavior as a fallback (AKA progressive enhancement). This does take a bit of additional code.

For cases when attr_list is already present, I think this behavior is better in any case, so no need for a "force-disable" flag.

Preview

before after

@florimondmanca florimondmanca merged commit edf0b7f into master Feb 19, 2021
@florimondmanca florimondmanca deleted the fm/heading-full-commands branch February 19, 2021 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/Added enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve visualisation of command hierarchy in headings
1 participant