-
Notifications
You must be signed in to change notification settings - Fork 38
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 adding extra lines to separate commands/parameters #69
Comments
Should be fairly easy to add as an opt-in thing I think 🤔 |
Could even give a few different options - blank lines but also horizontal rules / table styles or alternating background colours. |
Would be awesome! |
ok, I just added this functionality in 50d89b7 The new Note that it's not exactly the same, as in order to set Hopefully that's ok. If you can figure out how to further reduce the padding, let me know 👍🏻 Alternatively we could add the spacing manually by just dumping a newline in to the help text. More crude, but should have the desired effect. I figured that people would inevitably request this at custom-group level eventually, so I wrote it in such a way that it can be done on a per-group level too. You can see that in action in |
Looks perfect! I actually enjoy the extra padding, but I can try to figure out a solution that would allow us to control it. |
Great! I set it up with rich-click/src/rich_click/rich_click.py Lines 48 to 49 in 95a3594
But I guess that there is still some other cell padding or something creeping in which could be finetuned to get exactly the right effect... But I didn't spend ages looking as I thought it looked ok as it was 😅 Note that some of the table style settings only work when the box is set to something other than rich-click/examples/click/10_table_styles.py Lines 3 to 4 in 95a3594
|
This one might be niche, not that useful, and (maybe) annoying to implement. I decided to post it here anyway.
I noticed that when I have several commands, the help dialogue looks very busy and difficult to read:
If I add an additional line to separate the commands, the dialogue looks much better.
The text was updated successfully, but these errors were encountered: