retext icon indicating copy to clipboard operation
retext copied to clipboard

Add alternative toolbar for Formatting options

Open sendevent opened this issue 8 months ago • 2 comments
trafficstars

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.py to improve the code structure.
  • Adjustments to the Config dialog, specifically in the Interface tab, to enhance organization.

retext_1200_20

sendevent avatar Mar 09 '25 19:03 sendevent

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?

sendevent avatar Mar 27 '25 18:03 sendevent

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.

mitya57 avatar Mar 27 '25 19:03 mitya57