-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Add new menu layouts #29
Comments
I would love to contribute, but need a lot of help, as I have no idea on how to implement this. So any similar resources and docs would be of great help. |
@Muhammad-Owais-Warsi great to hear, I'm happy to help :) You can start of by reading the Ratatui documentation/templates to get an idea how the project is structured: https://ratatui.rs/ (templates) Then taking a look at the And then you can give a shot implementing it, ask any questions! 🙂 |
It depends on which constrains you are changing. Those seems to be the Table constraints, I think you need to look into |
In the Changing the same line to Is this what we're trying to solve as per the issue? If I’m not mistaken, we also need to implement a key binding so that we can switch between different layouts. Let me know if I misunderstood something. Thanks :) |
Yes, we want to change the constraints and also the order of the layouts. If you play around with the tool a bit, you might realize that sometimes the text does not fit the exact area - we want to provide multiple layout options for improving the user experience in those cases. Take a look at bpytop's different UI modes (mini, detailed, etc) for inspiration :) |
Thanks, I'll look into it. |
Is your feature request related to a problem? Please describe.
It would be nice to have different menu layouts instead of having only one which is fixed. We already have the functionality for changing the block sizes and moving them around. This new menu(s) could be possibly change the overall layout for different use cases such as:
And a couple of other scenarios...
Describe the solution you'd like
Define a list of menu layouts and add a key binding for changing the current layout.
Describe alternatives you've considered
There could be a command-line argument for launching
kmon
with the given menu type. e.g.kmon --menu activities
Additional context
bpytop has something similar where you press
m
and the layout changes.The text was updated successfully, but these errors were encountered: