Merge pull request #1180 from kbhat95/gimp-to-json

Convert cheatsheet to JSON: Gimp
master
Zaahir Moolla 2015-06-15 17:33:22 -04:00
commit 0ab70a1345
5 changed files with 462 additions and 419 deletions

View File

@ -1,41 +0,0 @@
package DDG::Goodie::GimpCheatSheet;
# ABSTRACT: Some GIMP keyboard and mouse shortcuts
use strict;
use DDG::Goodie;
zci answer_type => "gimp_cheat";
zci is_cached => 1;
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"];
my $HTML = share("gimp_cheat_sheet.html")->slurp(iomode => "<:encoding(UTF-8)");
my $TEXT = share("gimp_cheat_sheet.txt")->slurp(iomode => "<:encoding(UTF-8)");;
handle remainder => sub {
return
heading => "GIMP Shortcut Cheat Sheet",
html => $HTML,
answer => $TEXT,
};
1;

View File

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

View File

@ -1,34 +0,0 @@
@media (max-width: 380px) {
.zci--answer .gimp-column {
width: 100%;
}
}
.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;
}

View File

@ -1,165 +0,0 @@
<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>

View File

@ -1,179 +0,0 @@
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