Can I Create New hotkeys?

Hi. As often as I use word count in Pluma, is there some way to assign a hotkey to do a quick word count? Thanks.

Alt-T, then press D will give you Document Statistics which has a word count.

1 Like

Thanks. I appreciate the help. I’ll give it a go.

You can also edit the file ~/.config/pluma/accels to give Document Statistics a single Ctrl + letter shortcut.

You need to find the line

; (gtk_accel_path "<Actions>/PlumaDocInfoPluginActions/DocumentStatistics" "")

Remove the initial ; to uncomment the line and then add your desired shortcut between the two quotation marks at the end. For example, to make it Ctrl + D, the line would look like this:

(gtk_accel_path "<Actions>/PlumaDocInfoPluginActions/DocumentStatistics" "<primary>d")

(I didn’t actually try this one, but it doesn’t look like Ctrl + D is taken. I’ve used this method to edit and add shortcuts for other apps like Caja.)

3 Likes

Many thanks to you, too. I appreciate the help.