switch views

Post questions on how to use or achieve an effect in Inkscape.
kjw
Posts: 47
Joined: Wed Oct 14, 2009 10:09 am

switch views

Postby kjw » Sun May 30, 2010 7:14 am

I constantly switch between normal and outline views - is there any way to do a better shortcut than the "Atl+V D O" method?

KJ

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: switch views

Postby prkos » Sun May 30, 2010 8:28 am

Ctrl + KP_5 but have to use it more than once (that's the number 5 on Num keypad in case you're wondering).
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

kjw
Posts: 47
Joined: Wed Oct 14, 2009 10:09 am

Re: switch views

Postby kjw » Sun May 30, 2010 8:56 am

Thanks so much - it's a lot faster than what I had been doing! Could you tell me where you found it? I searched the forum and found a list of shortcuts but didn't see this one on it.

KJ

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: switch views

Postby prkos » Sun May 30, 2010 4:57 pm

When you go to View > Display mode > Toggle you can see the shortcut there, it toggles between all the view modes.

It's also listed under keyboard shortcuts (under Help menu, it opens a page in your browser) although I guess it's easy to miss it http://inkscape.org/doc/keys047.html#id2246623
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

skibadee
Posts: 5
Joined: Fri Nov 05, 2010 11:51 pm

Re: switch views

Postby skibadee » Fri Nov 05, 2010 11:55 pm

does anybody knows how to switch between the modes on a laptop without a numpad ?
THX a lot

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: switch views

Postby ~suv » Sat Nov 06, 2010 5:53 pm

skibadee wrote:does anybody knows how to switch between the modes on a laptop without a numpad ?

You can create a custom keymap file to override those keyboard shortcuts that are not available with your hardware/keyboard layout/platform combination. To get more detailed instructions it would be helpful if you provide more details about which platform you use (Windows, Linux or Mac OS X) and the keyboard layout (language).

skibadee
Posts: 5
Joined: Fri Nov 05, 2010 11:51 pm

Re: switch views

Postby skibadee » Sat Nov 06, 2010 8:47 pm

OSX, macbook pro, german keyboard layout.
thx

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: switch views

Postby ~suv » Sun Nov 07, 2010 3:16 pm

skibadee wrote:OSX, macbook pro

You start by creating a custom keymap file in your Inkscape preferences directory.
    Note: The Inkscape preferences directory is hidden in the normal Finder view because it starts with a dot ('.'). You can access it nevertheless from the Finder as described below without changing the Finder defaults.
  1. Copy and paste the code below into a new TextEdit document (make sure it is in 'Plain Text' format! With German menus use "Format > In reinen Text umwandeln" (⇧⌘T) if you see the text formatting controls in the TextEdit window).
    Below are the relevant default definitions for the 'View > Display modes' commands that you can change to your needs once you have saved the file:

    Code: Select all

    <?xml version="1.0"?>
    <keys name="Inkscape default">

    <!-- View -->

      <bind action="ViewModeNormal"/>
      <bind action="ViewModeOutline"/>

      <bind key="KP_5" modifiers="Ctrl" action="ViewModeToggle" display="true" />
      <bind key="KP_Begin" modifiers="Ctrl" action="ViewModeToggle" />

    </keys>
  2. Save it with the file name

    Code: Select all

    default.xml
  3. … as user keymap file: in the 'Save' dialog, use the keyboard shortcut for the Finder command 'Go > Go to Folder…' (⇧⌘G), enter

    Code: Select all

    ~/.config/inkscape
    and browse to the folder 'keys' (or create it if it doesn't exist, all lower caps)
  4. If asked when saving: use the file extension '.xml' (not '.txt')

    Your file should now be saved as
      'Home > .config > inkscape > keys > default.xml'
      (or in UNIX notation: '~/.config/inkscape/keys/default.xml')
  5. Now you can change the keys that are mapped to the commands for toggling the view mode and - if useful to you - add keyboard shortcuts for the two specific modes (normal, outline) which allows you to switch to outline or normal mode without cycling through all available modes.
skibadee wrote:german keyboard layout

    If you want to use some special characters (umlauts, or some currency symbol or similar) for the shortcuts to not override other useful keyboard shortcuts, I can help with looking up their names that need to be used in the 'keys="…"' field.
When you have changed the shortcuts and saved the modifications, restart Inkscape to load the new settings.

skibadee
Posts: 5
Joined: Fri Nov 05, 2010 11:51 pm

Re: switch views

Postby skibadee » Tue Nov 09, 2010 5:02 am

THX a lot for the explanation


Return to “Help with using Inkscape”