
On 11/7/06, Bryce Harrington <bryce@...983...> wrote:
Bryce, the file to edit for remapping keys is called share/keys/default.xml.
Can you put a note about this into the Tips and Tricks tutorial or the Keys document?
OK, I will add a note.
As for the .rc file, would anyone object if I just delete it? It doesn't look like it's being used.
Well, units.xml was something Jon Cruz started after I implemented the units stuff using the units.txt file. The units.txt file is pretty easy to edit and has worked adequately, but I can see why some people might want it in xml. Unfortunately, the units.xml stuff never actually worked, and it wasn't clear what the plan was for making it work, so it's just been there disabled all this time.
JonCruz, will you object to removing units.xml?
Then would it be possible to have a shortcut key that does vertical and horizontal center alignment?
What needs to be done is creating a _verb_ that does this. After that, adding it to menu or assigning a key to it will be trivial. There are many things that Inkscape can do in principle, but not through a verb, and these things should be verbified. By the way, verbification is pretty simple thing to do, so it's a good work for novice coders. Just review verbs.h and verbs.cpp, they're pretty self-explanatory.
For example just recently, I verbified the select next/select prev actions, bound to Tab/Shift+Tab, and as a result these keys now work in all tools and not only Selector/Node as before.
Oh, there is also a bug in text centering - write some text, then change it from left-aligned to center-aligned. The text then moves from its current position to half its width to the left. This bug has been there since Sodipodi days...
It's not really a "bug". Inkscape just needs to recalculate the anchor point based on the bounding box of the text, in addition to changing alignment. More like a missing feature (worth a RFE).