retext
retext copied to clipboard
Add alternative toolbar for Formatting options
This PR introduces an alternative way to display the list of available Formatting options in the toolbar. Instead of using a combobox, users can now enable a dedicated toolbar for one-click access. The default combobox is displayed when the new toolbar is disabled via the Configuration dialog or the toolbars' context menu.
Additionally, this PR includes:
- Small refactorings in
window.pyto improve the code structure. - Adjustments to the Config dialog, specifically in the Interface tab, to enhance organization.
Sorry for delay with reviewing this. I have left some comments now.
Sure thing, I'll handle all these in a few days, probably this weekend.
Regarding the code formatting, do you use any automation tools so you could share its settings?
Regarding the code formatting, do you use any automation tools so you could share its settings?
In new code I use black or ruff format (which use similar style), but ReText is very old code that doesn't use any best practices for formatting (it even had tabs until recently). And reformatting it would make git blame unusable.
Adding new black-style code is good.