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

Configure indentation #394

Open
boydfields opened this issue Dec 6, 2024 · 1 comment
Open

Configure indentation #394

boydfields opened this issue Dec 6, 2024 · 1 comment

Comments

@boydfields
Copy link

Is it possible to remove the indents for displaying commands?

@niklasmohrin
Copy link
Collaborator

At the moment, the indent is hardcoded here:

tealdeer/src/output.rs

Lines 93 to 94 in 1d9153e

Description(s) => writeln!(writer, " {}", s.paint(style.description)),
Text(s) => writeln!(writer, " {}", s.paint(style.example_text)),

... which is kind of odd. I suppose adding an option for indent width wouldn't hurt

@niklasmohrin niklasmohrin changed the title Remove indentation Configure indentation Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants