Hi,
Is it possible to bind a keyboard shortcut for "Set fill to solid #123456" or "Set Stroke Paint to Palette #1"?
I looked in /usr/share/inkscape/keys, but couldn't find an example of this there.
This would be very nice for documentation for example, where we have just a few colors in use.
Keyboard shortcut for a specific color
Re: Keyboard shortcut for a specific color
I`m not 100% sure but I think the whole thing would work better if you just create a custom palette, which would then make your colors available from that strip at the bottom of the screen. Just a one click away - might be even faster than a keyboard shortcut, right?
Re: Keyboard shortcut for a specific color
When typing a lot of text with both hands on the keyboard, it would be a lot faster to just select the previously typed word and use a shortcut.
Also when going through this and that object and setting two alternating colors, it takes a long time jump up and down to the palette all the time.
Custom palettes are already in heavy use, but they interrupts the workflow quite a bit.
Also when going through this and that object and setting two alternating colors, it takes a long time jump up and down to the palette all the time.
Custom palettes are already in heavy use, but they interrupts the workflow quite a bit.
Re: Keyboard shortcut for a specific color
Hi.
An alternative which might work for you;
Copy the stroke and fill from one object by CTRL-C,
then select the next object and paste the stroke and fill by CTRL-SHIFT-V
RGDS
Ragnar
An alternative which might work for you;
Copy the stroke and fill from one object by CTRL-C,
then select the next object and paste the stroke and fill by CTRL-SHIFT-V
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
( ͡° ͜ʖ ͡°)
RGDS
Ragnar
Re: Keyboard shortcut for a specific color
The problem with that is that I get more formatting than just color.
And it gets harder when you have two alternating colors.
And it gets harder when you have two alternating colors.
Re: Keyboard shortcut for a specific color
Creating an extension would be one solution, but I think that the whole SVG file has to be filtered through the script?
I guess I wouldn't want to do that with a large file a couple of times per second.
I guess I wouldn't want to do that with a large file a couple of times per second.
Re: Keyboard shortcut for a specific color
If I get it right... you`re working in the vector drawing program and you`re distressed because you have to use the mouse, occasionally?
p.s.
Does your last reply means that you`re in fact creating files in Inkscape only through the script? I mean, you don`t use the Inkscape interface at all, just the XML or some other text editor?
p.s.
Does your last reply means that you`re in fact creating files in Inkscape only through the script? I mean, you don`t use the Inkscape interface at all, just the XML or some other text editor?
-
- Posts: 2344
- Joined: Sun Apr 14, 2013 12:04 pm
- Location: Michigan, USA
Re: Keyboard shortcut for a specific color
I can see the value of the keystroke access.
I'd check into custom mapping. From the online manual:
From the default file:
I'd check into custom mapping. From the online manual:
You can change the keyboard shortcuts used by Inkscape by editing or replacing the file share/keys/defaults.xml.
There are a number of alternative shortcuts available. To use them, simply rename the file to defaults.xml.
<snip>
You can also add shortcuts to a keys/defaults.xml in your Inkscape preferences directory. These will override any shortcuts defined in the system-wide defaults.xml file. See the comments in the default file for more details.
From the default file:
Code: Select all
This file contains the default Inkscape keyboard shortcuts. In each "bind" element:
- The "key" attribute contains the key name. The names are the same as those in the
<gdk/gdkkeysyms.h> header file but without the leading "GDK_". If you don't have GDK
source locally, you can view that file at:
http://git.gnome.org/browse/gtk+/plain/gdk/gdkkeysyms.h
- The "modifiers" attribute contains a comma-separated list of modifiers, which can be
one or more of: "Ctrl", "Shift", "Alt".
- The "action" attribute contains the name of the action. The complete list of actions
(called "verbs") is in the file src/verbs.cpp in Inkscape source; there you can see
brief descriptions of what each action does. The same action may have multiple key
bindings.
- The "display" attribute controls whether this binding will be displayed in the menu
and tooltips. Only one binding for each action may have this attribute.
Note that the current file lists ALL Inkscape actions, even those that do not have any
keys in the default mapping (those don't have "key" or "modifiers" attributes). You can
assign any keys to these actions by adding "key" and "modifiers" attributes to
them. Developers: Please add here any new verbs you create!
This file is inkscape.xml, and in the original installation it is also copied as
default.xml. The latter is the file that Inkscape reads on startup. If you overwrite
default.xml with some other keymap file (e.g. xara.xml), you can always restore the
default keybindings by copying inkscape.xml to default.xml again.
In case of conflict, those bindings that come later override those before them. This
file resides in the share/keys directory of your Inkscape installation, but you may also
have a default.xml in your personal Inkscape profile directory (e.g. ~/.config/inkscape
on Unix). The bindings in that personal file are added to (or, if there's a conflict,
override) the bindings in the main default.xml.
Have a nice day.
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1
The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/
Re: Keyboard shortcut for a specific color
I'm distressed because I could be working much more effectively - I hope you are not ONLY using the mouse and not a single keyboard shortcut? 
I can bind a keyboard shortcut to an extension, but I just thought that I should mention why I don't think that would be good idea.

I can bind a keyboard shortcut to an extension, but I just thought that I should mention why I don't think that would be good idea.
Re: Keyboard shortcut for a specific color
tylerdurden wrote:I can see the value of the keystroke access.
I'd check into custom mapping.
That would be my wish, but the keys file didn't include an example of this, and I couldn't find documentation of all supported actions.
Re: Keyboard shortcut for a specific color
Forunately, I`m not mouse dependant ,)
It`s just I can`t figure out how does your workflow really works: "I guess I wouldn't want to do that (deploy extension) with a large file a couple of times per second."
It`s just I can`t figure out how does your workflow really works: "I guess I wouldn't want to do that (deploy extension) with a large file a couple of times per second."
Re: Keyboard shortcut for a specific color
There are lots of times this would be useful, but if you have a large amount of text in which you hilights separate words with a color (or alternating colors), it is very quick to dart about with the mouse, double-clicking the words. The words are usually quite close, and jumping down to the palette is a lot slower than just pressing a button in between selecting words.