Scribus Forums

Development => Code => Topic started by: a.l.e on January 30, 2025, 03:32:50 PM

Title: Keyboard shortcuts for bold and italics
Post by: a.l.e on January 30, 2025, 03:32:50 PM
Recently, I've seen people asking again for Scribus having shortcuts for bold and italics.

I gave my standard answer ("it's more complicated than you think"). I also wrote about two possible workarounds (one works in 1.7 -- adding a python script in the script menu and using the action search -- the other needs a patch that is in pending review in the bug tracker, using the style applier based on the action search).
The explanation had a few more details than usual.

After having written that, I was inspired to sketch a way to implement this feature in a "simpler" way.

In short:


Here some more details



My plan is to let defined The rules in the document settings (and maybe also in the preferences: people use different fonts and styles in different documents; not sure how useful global rules can be).
It will be possible to export and import the rules and it should be possible to inherit them by using document templates.

Here a list of tickets that relate to this feature:


I've created a first draft of the configuration dialog:

bold-italics.png

VoilĂ : any feedback?
Title: Re: Keyboard shortcuts for bold and italics
Post by: a.l.e on March 08, 2025, 09:55:04 AM
some references to existing tickets:


Title: Re: Keyboard shortcuts for bold and italics
Post by: AIM on July 02, 2025, 05:58:25 PM
Hi.
That's a fantastic idea... I've been using Scribus for years and often, when I have to review drafts, I'm forced to do these very repetitive actions from the menu. A shortcut would make the job much easier.
I had hoped to solve it with some script but, as you wrote, it's not possible at the moment to call a script with a key combination.
You did even better and I think the dialog box for defining the rules is excellent.
I really hope this feature can be implemented.
Title: Re: Keyboard shortcuts for bold and italics
Post by: AIM on July 04, 2025, 03:48:55 PM
@a.l.e I don't know anything about code but if I can help or experiment with this modification, tell me how to do it and I'll be happy to help.