F7 and Zoom

Post questions on how to use or achieve an effect in Inkscape.
Sharon175
Posts: 50
Joined: Sun Aug 14, 2011 7:54 am

F7 and Zoom

Postby Sharon175 » Tue Sep 27, 2011 6:18 am

I use F7 to "zoom selected" 5 days a week, 8 hours a day at work in another product... Would really like F7 to do that in Inkscape (tired of clicking out of the dropper tool). Cannot get to the directory level to edit the default file.. any other way to customize/define a key??? Need help for Windows 7 and Mac OS 10.6.8..... thanks!
Technically Challenged User
Mac OS 10.13.4
Inkscape 0.92.2

User avatar
prokoudine
Posts: 186
Joined: Sat Jun 09, 2007 4:32 am
Contact:

Re: F7 and Zoom

Postby prokoudine » Tue Sep 27, 2011 7:59 am

You can save a local XML file with a keymap.

*sigh*

Looks like it's a call for an article on hotkeys requested by ~suv a while ago. I wish we just had a configuration dialog for hotkeys :)
http://libregraphicsworld.org — news and tutorials on free design software

Sharon175
Posts: 50
Joined: Sun Aug 14, 2011 7:54 am

Re: F7 and Zoom

Postby Sharon175 » Tue Sep 27, 2011 11:10 am

Thanks for the reply. Really need to change my username to "not a technical bone in my body"..... Don't know what a local XML file is.... keymap I understand....
Technically Challenged User
Mac OS 10.13.4
Inkscape 0.92.2

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: F7 and Zoom

Postby druban » Tue Sep 27, 2011 5:49 pm

Sharon175 wrote:I use F7 to "zoom selected" 5 days a week, 8 hours a day at work in another product... Would really like F7 to do that in Inkscape (tired of clicking out of the dropper tool).


someone will be along to describe how to customise your F7 key. But it sounds like you don't have privileges on your computer so here's my suggestion...
I think the big problem you are having is having to switch tools to navigate,and there's nothing particularly great about the F7 key if you could do the same with another key.
Inkscape has the Q key that while something is selected will zoom to that object, while you hold the Q down you can work with the object when you release the Q it goes back to the original zoom level.
if you want to actually go to that zoom level permanently, that is not have to be holding the Q down, press Q once, release it, and press ` (above the tab key). this zooms you in to that object again, but leaves you there. to zoom back out, press it again.
With any luck, you will see that this is a much more flexible setup than the F7 business.
Your mind is what you think it is.

User avatar
tomh
Posts: 218
Joined: Sat Feb 14, 2009 10:14 pm

Re: F7 and Zoom

Postby tomh » Tue Sep 27, 2011 7:55 pm

Ok, things you need to make this work:

The verb (Actions) name: SP_VERB_ZOOM_SELECTION, "ZoomSelection" (from http://bazaar.launchpad.net/~inkscape.d ... /verbs.cpp)

The KeyCode: #define GDK_KEY_F7 0xffc4 (from http://git.gnome.org/browse/gtk+/plain/gdk/gdkkeysyms.h)

The Location of the default.xml shortcut file. On MAC's under the inkscape package file; then Contents->Resources->Keys->Default.xml
On Windows it is %userprofile%\­Application Data\­Inkscape\share\keys\defaults.xml

In your case open up the default.xml file; search for this line (line 157):

Code: Select all

<bind key="F7" action="ToolDropper" display="true" />

and replace it with this one:

Code: Select all

  <bind key="F7" action="ZoomSelection" />

then save the file. Note; untested!!!
Reference on how to do this: http://tavmjong.free.fr/INKSCAPE/MANUAL ... Files.html

User avatar
BobSongs
Posts: 324
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: F7 and Zoom

Postby BobSongs » Tue Sep 27, 2011 8:02 pm

Sharon175 wrote:I use F7 to "zoom selected" 5 days a week, 8 hours a day at work in another product... Would really like F7 to do that in Inkscape (tired of clicking out of the dropper tool). Cannot get to the directory level to edit the default file.. any other way to customize/define a key??? Need help for Windows 7 and Mac OS 10.6.8..... thanks!


I create publicity posters for a coffeehouse. I zoom in and out of my work constantly for precise work in certain areas. And I rarely use the :tool_zoom: tool.

The two fastest ways of zooming in Inkscape are the scroll wheel and the +/- keys on the right hands side of the numeric keypad, far right side of a standard keyboard. I imagine if you're using a laptop that these two features would be a pain. I can see why you'd want F7 to zoom in this case. But if you're using a standard mouse/keyb combo, try these two methods.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: F7 and Zoom

Postby brynn » Wed Sep 28, 2011 2:21 pm

There's also a little known shortcut to zooming using the Q key. See this topic: viewtopic.php?f=6&t=5690

Sharon175
Posts: 50
Joined: Sun Aug 14, 2011 7:54 am

Re: F7 and Zoom

Postby Sharon175 » Sat Oct 01, 2011 4:08 am

Finally had some time at work today to actually concentrate on all the suggestions. Printed the postings thread and opened the online manual to the configuration page. Enlisted Windows "help" to get me to the Command Prompt. Gathered all my "tech courage" (that's about enough to cover 1 keycap). Ok, Ready! Entered the info posted by tomh (%userprofile%\application data.....). Error.... "Users\Crown" is not recognized as an internal or external command...", CROWN being part of my username.... is there something else I should have done, typed, etc?

I know you all must think I should just let this go, but honestly, no matter what application I am in now, I am reaching for the F7 key to zoom.

Thanks again for your patience and suggestions.
Technically Challenged User
Mac OS 10.13.4
Inkscape 0.92.2

User avatar
ottadini
Posts: 34
Joined: Thu Sep 24, 2009 4:27 pm
Location: Australia

Re: F7 and Zoom

Postby ottadini » Wed Oct 05, 2011 1:14 pm

brynn wrote:There's also a little known shortcut to zooming using the Q key.


The '3', '4', and '5' keys on my keyboard (not the numeric keypad) all zoom in different ways:
3 = zoom to selection
4 = zoom to drawing
5 = zoom to artboard.

Actually, I've just tested these number keys on my numeric keypad, and bizarrely, 3 and 5 work the same way, but 4 does nothing.

User avatar
ottadini
Posts: 34
Joined: Thu Sep 24, 2009 4:27 pm
Location: Australia

Re: F7 and Zoom

Postby ottadini » Wed Oct 05, 2011 1:20 pm

Sharon175 wrote: Error.... "Users\Crown" is not recognized as an internal or external command...", CROWN being part of my username.... is there something else I should have done, typed, etc?

I'm not sure what the full path is like on Windows 7, but that error seems like ones you get when there's a space in a string of text at the command prompt. Is there a space immediately before 'Users'? Can you try putting the command inside double quotes?

Sharon175
Posts: 50
Joined: Sun Aug 14, 2011 7:54 am

Re: F7 and Zoom

Postby Sharon175 » Wed Oct 05, 2011 9:16 pm

Enlisted the aid of a friend who does not know Inkscape but has an abundance of Windows7 tech knowledge. I was trying to find this file at the command prompt rather than in the Inkscape folder. Once I found the folder and file, I opened it in the "notepad" (new skill for me), found the correct line (not easy cause it all ran together in one big clump - is there a techie term for that?), changed the F7 to "ZoomSelection" as suggested by TomH. Saved, prayed and opened Inkscape. Hurray! It works! Closed Inkscape, restarted computer. tested again. Still Working!

Thanks to everyone who offered help! Have learned some new tricks and now have a customized F7. Still need to tackle this on my Mac....
Technically Challenged User
Mac OS 10.13.4
Inkscape 0.92.2

Sharon175
Posts: 50
Joined: Sun Aug 14, 2011 7:54 am

Re: F7 and Zoom

Postby Sharon175 » Thu Oct 06, 2011 10:10 am

Mac successfully now sees F7 as "ZoomSelection".... nothing like conquering a computer dilemma to brighten a day!
Technically Challenged User
Mac OS 10.13.4
Inkscape 0.92.2

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: F7 and Zoom

Postby brynn » Thu Oct 06, 2011 10:17 am

Aahh! Nice work :D

Sharon175
Posts: 50
Joined: Sun Aug 14, 2011 7:54 am

Re: F7 and Zoom

Postby Sharon175 » Fri Oct 07, 2011 8:14 am

Oh, and Brynn, am up to Lesson 11 on the Heathenx tutorials... doing them a few a day. Thanks for the tip at the bottom of your posts....
Technically Challenged User
Mac OS 10.13.4
Inkscape 0.92.2

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: F7 and Zoom

Postby brynn » Fri Oct 07, 2011 11:14 am

Oh, that's impressive!
I usually just watch them if I have something specific to learn.
And you're welcome :D


Return to “Help with using Inkscape”