Feature request: shortcut to toggle superscript/subscript

Bug #1596410 reported by dervonnebenaan
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Wishlist
Unassigned

Bug Description

I am creating lots of scientific plots with Inkscape and am using the "toggle subscript / superscript" button a lot. It would be great if I could set a keyboard shortcut for this.

Tags: shortcuts text ui
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Geoff (gphillips) wrote :

I am forced to use the superscript toggle frequently. A shortcut key for this and for subscript would be enormously useful.

Revision history for this message
Patrick Storz (ede123) wrote :

Do you have any suggestions what shortcut key should be used?

I just checked the shortcut I know from Microsoft's OneNote:
- (Ctrl + "+") for superscript
  (Ctrl + Shift "+") for subcript
Unfortunately the formerf is already "taken".

An alternative would be to allow users to set a shortcut, without defining a default.

Revision history for this message
Ludo (ludonago) wrote :

Fully supporting this request.
I did investigate how I could create such shortcut.
Here is what I tried:
1) from within inkscape, Edit > Preferences > Interface > Keyboard Shortcuts
But I couldn't find anything related to Text formatting, a fortiori nothing for sub/super-script
Related page:
https://wiki.inkscape.org/wiki/Customizing_Inkscape

2) read the top of this page:
https://inkscape.org/doc/keys.html
This led me to explore the default.xml, but there is nothing related to even the existing Text formating shortcuts such as CTL-B for bold text (listed in the keyboard shortcut page just above).
The default.xml says a custom shortcut can be defined from its "verbs", with "verbs" located in inkscape tree truck src/verbs.cpp. But in that cpp file there's nothing related to subscript and superscript, and nothing either related to the existing text KB shortcut (e.g. bold).

So even digging in the source of inkscape, it seems like creating this shortcut isn't an easy task. But I trust it is feasible.
If any one has any hint beyond what I've tried, I'd be happy to provide a solution.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.