GimpCheatSheet: Add GIMP cheat sheet module.

master
elebow 2014-07-12 15:43:52 -04:00
parent ee621a7985
commit b436153a3e
3 changed files with 442 additions and 0 deletions

View File

@ -0,0 +1,54 @@
package DDG::Goodie::GimpCheatSheet;
# ABSTRACT: Some GIMP keyboard and mouse shortcuts
# Adapted from CrontabCheatSheet.pm
use DDG::Goodie;
zci answer_type => "gimp_cheat";
name "GimpCheatSheet";
description "GIMP shortcut cheat sheet";
code_url "https://github.com/duckduckgo/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/GimpCheatSheet.pm";
category "cheat_sheets";
topics "computing";
primary_example_queries "gimp help", "gimp cheat sheet", "gimp shortcuts";
triggers startend => (
"gimp cheat sheet",
"gimp cheatsheet",
"gimp help",
"gimp quick reference",
"gimp reference",
"gimp shortcut",
"gimp shortcuts"
);
attribution github => ["elebow", "Eddie Lebow"];
handle remainder => sub {
return
heading => "GIMP Shortcut Cheat Sheet",
html => html_cheat_sheet(),
answer => text_cheat_sheet(),
};
my $HTML;
sub html_cheat_sheet {
$HTML //= share("gimp_cheat_sheet.html")
->slurp(iomode => "<:encoding(UTF-8)");
return $HTML;
}
my $TEXT;
sub text_cheat_sheet {
$TEXT //= share("gimp_cheat_sheet.txt")
->slurp(iomode => "<:encoding(UTF-8)");
return $TEXT;
}
1;

View File

@ -0,0 +1,209 @@
<style type='text/css'>
.zci--answer .zero_click_wrapper .zero_click {
padding-left: 0px !important;
margin-left: 0px !important;
margin-right: 0px !important;
}
.zci--answer .gimp-container {
max-height: 45ex;
overflow-y: scroll;
overflow-x: hidden;
}
.zci--answer .gimp-column {
width: 48%;
display: inline-block;
vertical-align: top;
}
.zci--answer table.gimp-table {
width: 100%;
margin-bottom: 1ex;
}
.zci--answer table.gimp-table td {
padding-right: 1ex;
vertical-align: top;
}
.zci--answer table.gimp-table td code {
white-space: nowrap;
}
@media (max-width: 380px) {
.zci--answer .gimp-column {
width: 100%;
}
}
}
</style>
<div class="gimp-container">
<div class="gimp-column">
<b>Tools</b>
<table class="gimp-table">
<tr><td><code>R</code></td><td>Rect Select</td></tr>
<tr><td><code>E</code></td><td>Ellipse Select</td></tr>
<tr><td><code>F</code></td><td>Free Select</td></tr>
<tr><td><code>Z</code></td><td>Fuzzy Select</td></tr>
<tr><td><code>Shift + O</code></td><td>Select By Color</td></tr>
<tr><td><code>I</code></td><td>Scissors</td></tr>
<tr><td><code>B</code></td><td>Paths</td></tr>
<tr><td><code>O</code></td><td>Color Picker</td></tr>
<tr><td><code>M</code></td><td>Move</td></tr>
<tr><td><code>Shift + C</code></td><td>Crop and Resize</td></tr>
<tr><td><code>Shift + R</code></td><td>Rotate</td></tr>
<tr><td><code>Shift + T</code></td><td>Scale</td></tr>
<tr><td><code>Shift + S</code></td><td>Shear</td></tr>
<tr><td><code>Shift + P</code></td><td>Perspective</td></tr>
<tr><td><code>Shift + F</code></td><td>Flip</td></tr>
<tr><td><code>T</code></td><td>Text</td></tr>
<tr><td><code>Shift + B</code></td><td>Bucket Fill</td></tr>
<tr><td><code>L</code></td><td>Blend</td></tr>
<tr><td><code>N</code></td><td>Pencil</td></tr>
<tr><td><code>P</code></td><td>Paintbrush</td></tr>
<tr><td><code>Shift + E</code></td><td>Eraser</td></tr>
<tr><td><code>A</code></td><td>Airbrush</td></tr>
<tr><td><code>K</code></td><td>Ink</td></tr>
<tr><td><code>C</code></td><td>Clone</td></tr>
<tr><td><code>Shift + U</code></td><td>Blur/Sharpen</td></tr>
<tr><td><code>S</code></td><td>Smudge</td></tr>
<tr><td><code>Shift + D</code></td><td>Dodge/Burn</td></tr>
<tr><td><b>Context</b></td></tr>
<tr><td><code>X</code></td><td>Swap Colors</td></tr>
<tr><td><code>D</code></td><td>Default Colors</td></tr>
</table>
<b>File</b>
<table class="gimp-table">
<tr><td><code>Ctrl + N</code></td><td>New image</td></tr>
<tr><td><code>Ctrl + O</code></td><td>Open image</td></tr>
<tr><td><code>Ctrl + Alt + O</code></td><td>Open image as new layer</td></tr>
<tr><td><code>Ctrl + D</code></td><td>Duplicate</td></tr>
<tr><td><code>Ctrl + 1</code></td><td>Open recent image #1</td></tr>
<tr><td><code>Ctrl + 2</code></td><td>Open recent image #2</td></tr>
<tr><td><code>Ctrl + 3</code></td><td>Open recent image #3</td></tr>
<tr><td><code>Ctrl + 4</code></td><td>Open recent image #4</td></tr>
<tr><td><code>Ctrl + 5</code></td><td>Open recent image #5</td></tr>
<tr><td><code>Ctrl + 6</code></td><td>Open recent image #6</td></tr>
<tr><td><code>Ctrl + 7</code></td><td>Open recent image #7</td></tr>
<tr><td><code>Ctrl + 8</code></td><td>Open recent image #8</td></tr>
<tr><td><code>Ctrl + 9</code></td><td>Open recent image #9</td></tr>
<tr><td><code>Ctrl + 0</code></td><td>Open recent image #10</td></tr>
<tr><td><code>Ctrl + S</code></td><td>Save image</td></tr>
<tr><td><code>Shift + Ctrl + S</code></td><td>Save under a new name</td></tr>
<tr><td><code>Ctrl + Q</code></td><td>Quit</td></tr>
</table>
<b>Dialogs</b>
<table class="gimp-table">
<tr><td>Dockable Dialogs</td></tr>
<tr><td><code>Ctrl + L</code></td><td>Layers</td></tr>
<tr><td><code>Shift + Ctrl + B</code></td><td>Brushes</td></tr>
<tr><td><code>Shift + Ctrl + P</code></td><td>Patterns</td></tr>
<tr><td><code>Ctrl + G</code></td><td>Gradients</td></tr>
<tr><td>Within a Dialog</td></tr>
<tr><td><code>Alt + F4</code>, <code>Ctrl + W</code></td><td>Close the window</td></tr>
<tr><td><code>Tab</code></td><td>Jump to next widget</td></tr>
<tr><td><code>Shift + Tab</code></td><td>Jump to previous widget</td></tr>
<tr><td><code>Enter</code></td><td>Set the new value</td></tr>
<tr><td><code>Space</code>, <code>Enter</code></td><td>Activate current button or list</td></tr>
<tr><td><code>Ctrl + Alt + PgUp</code>, <code>Ctrl + Alt + PgDn</code></td><td>In a multi-tab dialog, switch tabs</td></tr>
<tr><td>Within a File Dialog</td></tr>
<tr><td><code>Shift + L</code></td><td>Open Location</td></tr>
<tr><td><code>Alt + Up</code></td><td>Up-Folder</td></tr>
<tr><td><code>Alt + Down</code></td><td>Down-Folder</td></tr>
<tr><td><code>Alt + Home</code></td><td>Home-Folder</td></tr>
<tr><td><code>Esc</code></td><td>Close Dialog</td></tr>
</table>
</div>
<div class="gimp-column">
<b>View</b>
<table class="gimp-table">
<tr><td>Window</td></tr>
<tr><td><code>F10</code></td><td>Main Menu</td></tr>
<tr><td><code>Shift + F10</code>, <code>right click</code></td><td>Drop-down Menu</td></tr>
<tr><td><code>F11</code></td><td>Toggle fullscreen</td></tr>
<tr><td><code>Shift + Q</code></td><td>Toggle quickmask</td></tr>
<tr><td><code>Ctrl + W</code></td><td>Close document window</td></tr>
<tr><td>Zoom</td></tr>
<tr><td><code>+</code></td><td>Zoom in</td></tr>
<tr><td><code>-</code></td><td>Zoom out</td></tr>
<tr><td><code>1</code></td><td>Zoom 1:1</td></tr>
<tr><td><code>Ctrl + E</code></td><td>Shrink wrap</td></tr>
<tr><td>Rulers and Guides</td></tr>
<tr><td><code>mouse drag</code></td><td>Drag off a ruler to create guide</td></tr>
<tr><td><code>Ctrl + mouse drag</code></td><td>Drag a sample point out of the rulers</td></tr>
<tr><td><code>Shift + Ctrl + R</code></td><td>Toggle rulers</td></tr>
<tr><td><code>Shift + Ctrl + T</code></td><td>Toggle guides</td></tr>
</table>
<b>Edit</b>
<table class="gimp-table">
<tr><td>Undo/redo</td></tr>
<tr><td><code>Ctrl + Z</code></td><td>Undo</td></tr>
<tr><td><code>Ctrl + Y</code></td><td>Redo</td></tr>
<tr><td>Clipboard</td></tr>
<tr><td><code>Ctrl + C</code></td><td>Copy selection</td></tr>
<tr><td><code>Ctrl + X</code></td><td>Cut selection</td></tr>
<tr><td><code>Ctrl + V</code></td><td>Paste clipboard</td></tr>
<tr><td><code>Del</code></td><td>Erase selection</td></tr>
<tr><td><code>Shift + Ctrl + C</code></td><td>Named copy selection</td></tr>
<tr><td><code>Shift + Ctrl + X</code></td><td>Named cut selection</td></tr>
<tr><td><code>Shift + Ctrl + V</code></td><td>Named paste clipboard</td></tr>
<tr><td>Fill</td></tr>
<tr><td><code>Ctrl + ,</code></td><td>Fill with FG Color</td></tr>
<tr><td><code>Ctrl + .</code></td><td>Fill with BG Color</td></tr>
<tr><td><code>Ctrl + ;</code></td><td>Fill with Pattern</td></tr>
</table>
<b>Layers</b>
<table class="gimp-table">
<tr><td><code>PgUp</code>, <code>Ctrl + Tab</code></td><td>Select the layer above</td></tr>
<tr><td><code>PgDn</code>, <code>Shift + Ctrl + Tab</code></td><td>Select the layer below</td></tr>
<tr><td><code>Home</code></td><td>Select the first layer</td></tr>
<tr><td><code>End</code></td><td>Select the last layer</td></tr>
<tr><td><code>Ctrl + M</code></td><td>Merge visible layers</td></tr>
<tr><td><code>Ctrl + H</code></td><td>Anchor layer</td></tr>
</table>
<b>Selections</b>
<table class="gimp-table">
<tr><td><code>Ctrl + T</code></td><td>Toggle selections</td></tr>
<tr><td><code>Ctrl + A</code></td><td>Select all</td></tr>
<tr><td><code>Shift + Ctrl + A</code></td><td>Select none</td></tr>
<tr><td><code>Ctrl + I</code></td><td>Invert selection</td></tr>
<tr><td><code>Shift + Ctrl + L</code></td><td>Float selection</td></tr>
<tr><td><code>Shift + V</code></td><td>Path to selection</td></tr>
</table>
<b>Filters</b>
<table class="gimp-table">
<tr><td><code>Ctrl + F</code></td><td>Repeat last filter</td></tr>
<tr><td><code>Shift + Ctrl + F</code></td><td>Reshow last filter</td></tr>
</table>
<b>Zoom tool</b>
<table class="gimp-table">
<tr><td><code>click</code></td><td>Zoom in</td></tr>
<tr><td><code>Ctrl + click</code></td><td>Zoom out</td></tr>
<tr><td><code>mouse drag</code></td><td>Zoom into the area</td></tr>
</table>
<b>Help</b>
<table class="gimp-table">
<tr><td><code>F1</code></td><td>Help</td></tr>
<tr><td><code>Shift + F1</code></td><td>Context Help</td></tr>
</table>
</div>
</div>

View File

@ -0,0 +1,179 @@
Help
F1 Help
Shift + F1 Context Help
Tools
R Rect Select
E Ellipse Select
F Free Select
Z Fuzzy Select
Shift + O Select By Color
I Scissors
B Paths
O Color Picker
M Move
Shift + C Crop and Resize
Shift + R Rotate
Shift + T Scale
Shift + S Shear
Shift + P Perspective
Shift + F Flip
T Text
Shift + B Bucket Fill
L Blend
N Pencil
P Paintbrush
Shift + E Eraser
A Airbrush
K Ink
C Clone
Shift + U Blur/Sharpen
S Smudge
Shift + D Dodge/Burn
Context
X Swap Colors
D Default Colors
File
Ctrl + N New image
Ctrl + O Open image
Ctrl + Alt + O Open image as new layer
Ctrl + D Duplicate
Ctrl + 1 Open recent image #1
Ctrl + 2 Open recent image #2
Ctrl + 3 Open recent image #3
Ctrl + 4 Open recent image #4
Ctrl + 5 Open recent image #5
Ctrl + 6 Open recent image #6
Ctrl + 7 Open recent image #7
Ctrl + 8 Open recent image #8
Ctrl + 9 Open recent image #9
Ctrl + 0 Open recent image #10
Ctrl + S Save image
Shift + Ctrl + S Save under a new name
Ctrl + Q Quit
Dialogs
Dockable Dialogs
Ctrl + L Layers
Shift + Ctrl + B Brushes
Shift + Ctrl + P Patterns
Ctrl + G Gradients
Within a Dialog
Alt + F4, Ctrl + W Close the window
Tab Jump to next widget
Shift + Tab Jump to previous widget
Enter Set the new value
Space, Enter Activate current button or list
Ctrl + Alt + PgUp, Ctrl + Alt + PgDn In a multi-tab dialog, switch tabs
Within a File Dialog
Shift + L Open Location
Alt + Up Up-Folder
Alt + Down Down-Folder
Alt + Home Home-Folder
Esc Close Dialog
View
Window
F10 Main Menu
Shift + F10, right click Drop-down Menu
F11 Toggle fullscreen
Shift + Q Toggle quickmask
Ctrl + W Close document window
Zoom
+ Zoom in
- Zoom out
1 Zoom 1:1
Ctrl + E Shrink wrap
Rulers and Guides
mouse drag Drag off a ruler to create guide
Ctrl + mouse drag Drag a sample point out of the rulers
Shift + Ctrl + R Toggle rulers
Shift + Ctrl + T Toggle guides
Edit
Undo/redo
Ctrl + Z Undo
Ctrl + Y Redo
Clipboard
Ctrl + C Copy selection
Ctrl + X Cut selection
Ctrl + V Paste clipboard
Del Erase selection
Shift + Ctrl + C Named copy selection
Shift + Ctrl + X Named cut selection
Shift + Ctrl + V Named paste clipboard
Fill
Ctrl + , Fill with FG Color
Ctrl + . Fill with BG Color
Ctrl + ; Fill with Pattern
Layers
PgUp, Ctrl + Tab Select the layer above
PgDn, Shift + Ctrl + Tab Select the layer below
Home Select the first layer
End Select the last layer
Ctrl + M Merge visible layers
Ctrl + H Anchor layer
Selections
Ctrl + T Toggle selections
Ctrl + A Select all
Shift + Ctrl + A Select none
Ctrl + I Invert selection
Shift + Ctrl + L Float selection
Shift + V Path to selection
Filters
Ctrl + F Repeat last filter
Shift + Ctrl + F Reshow last filter
Zoom tool
click Zoom in
Ctrl + click Zoom out
mouse drag Zoom into the area