Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #549 from elebow/gimp-cheat-sheet
Browse files Browse the repository at this point in the history
Gimp cheat sheet
  • Loading branch information
Jag Talon committed Aug 25, 2014
2 parents 8dcb557 + 87d4c2b commit 2accbe8
Show file tree
Hide file tree
Showing 4 changed files with 468 additions and 0 deletions.
54 changes: 54 additions & 0 deletions lib/DDG/Goodie/GimpCheatSheet.pm
Original file line number Diff line number Diff line change
@@ -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", "cheat sheet gimp",
"gimp cheatsheet", "cheatsheet gimp",
"gimp help", "help gimp",
"gimp quick reference", "quick reference gimp",
"gimp reference", "reference gimp",
"gimp shortcut", "shortcut gimp",
"gimp shortcuts", "shortcuts gimp"
);

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;

205 changes: 205 additions & 0 deletions share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
<style type='text/css'>

.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: 3ex;
}

.zci--answer .gimp-subsection td {
padding-top: 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 class="gimp-subsection"><td>Context</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 class="gimp-subsection"><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 class="gimp-subsection"><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 class="gimp-subsection"><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 class="gimp-subsection"><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 class="gimp-subsection"><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 class="gimp-subsection"><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 class="gimp-subsection"><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 class="gimp-subsection"><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 class="gimp-subsection"><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>
Loading

0 comments on commit 2accbe8

Please sign in to comment.