diff --git a/lib/DDG/Goodie/GimpCheatSheet.pm b/lib/DDG/Goodie/GimpCheatSheet.pm deleted file mode 100644 index 9ac16e3be..000000000 --- a/lib/DDG/Goodie/GimpCheatSheet.pm +++ /dev/null @@ -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; - diff --git a/share/goodie/cheat_sheets/gimp.json b/share/goodie/cheat_sheets/gimp.json new file mode 100644 index 000000000..4ca183590 --- /dev/null +++ b/share/goodie/cheat_sheets/gimp.json @@ -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" + } + ] + } +} \ No newline at end of file diff --git a/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.css b/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.css deleted file mode 100644 index f74e27f2b..000000000 --- a/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.css +++ /dev/null @@ -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; -} \ No newline at end of file diff --git a/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.html b/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.html deleted file mode 100644 index b94ab3e84..000000000 --- a/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.html +++ /dev/null @@ -1,165 +0,0 @@ -
- -
- Tools - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RRect Select
EEllipse Select
FFree Select
ZFuzzy Select
Shift + OSelect By Color
IScissors
BPaths
OColor Picker
MMove
Shift + CCrop and Resize
Shift + RRotate
Shift + TScale
Shift + SShear
Shift + PPerspective
Shift + FFlip
TText
Shift + BBucket Fill
LBlend
NPencil
PPaintbrush
Shift + EEraser
AAirbrush
KInk
CClone
Shift + UBlur/Sharpen
SSmudge
Shift + DDodge/Burn
Context
XSwap Colors
DDefault Colors
- - File - - - - - - - - - - - - - - - - - - -
Ctrl + NNew image
Ctrl + OOpen image
Ctrl + Alt + OOpen image as new layer
Ctrl + DDuplicate
Ctrl + 1Open recent image #1
Ctrl + 2Open recent image #2
Ctrl + 3Open recent image #3
Ctrl + 4Open recent image #4
Ctrl + 5Open recent image #5
Ctrl + 6Open recent image #6
Ctrl + 7Open recent image #7
Ctrl + 8Open recent image #8
Ctrl + 9Open recent image #9
Ctrl + 0Open recent image #10
Ctrl + SSave image
Shift + Ctrl + SSave under a new name
Ctrl + QQuit
- - - - Dialogs - - - - - - - - - - - - - - - - - - - -
Dockable Dialogs
Ctrl + LLayers
Shift + Ctrl + BBrushes
Shift + Ctrl + PPatterns
Ctrl + GGradients
Within a Dialog
Alt + F4, Ctrl + WClose the window
TabJump to next widget
Shift + TabJump to previous widget
EnterSet the new value
Space, EnterActivate current button or list
Ctrl + Alt + PgUp, Ctrl + Alt + PgDnIn a multi-tab dialog, switch tabs
Within a File Dialog
Shift + LOpen Location
Alt + UpUp-Folder
Alt + DownDown-Folder
Alt + HomeHome-Folder
EscClose Dialog
-
- -
- View - - - - - - - - - - - - - - - - - -
Window
F10Main Menu
Shift + F10, right clickDrop-down Menu
F11Toggle fullscreen
Shift + QToggle quickmask
Ctrl + WClose document window
Zoom
+Zoom in
-Zoom out
1Zoom 1:1
Ctrl + EShrink wrap
Rulers and Guides
mouse dragDrag off a ruler to create guide
Ctrl + mouse dragDrag a sample point out of the rulers
Shift + Ctrl + RToggle rulers
Shift + Ctrl + TToggle guides
- - Edit - - - - - - - - - - - - - - - - -
Undo/redo
Ctrl + ZUndo
Ctrl + YRedo
Clipboard
Ctrl + CCopy selection
Ctrl + XCut selection
Ctrl + VPaste clipboard
DelErase selection
Shift + Ctrl + CNamed copy selection
Shift + Ctrl + XNamed cut selection
Shift + Ctrl + VNamed paste clipboard
Fill
Ctrl + ,Fill with FG Color
Ctrl + .Fill with BG Color
Ctrl + ;Fill with Pattern
- - Layers - - - - - - - -
PgUp, Ctrl + TabSelect the layer above
PgDn, Shift + Ctrl + TabSelect the layer below
HomeSelect the first layer
EndSelect the last layer
Ctrl + MMerge visible layers
Ctrl + HAnchor layer
- - Selections - - - - - - - -
Ctrl + TToggle selections
Ctrl + ASelect all
Shift + Ctrl + ASelect none
Ctrl + IInvert selection
Shift + Ctrl + LFloat selection
Shift + VPath to selection
- - Filters - - - -
Ctrl + FRepeat last filter
Shift + Ctrl + FReshow last filter
- - Zoom tool - - - - -
clickZoom in
Ctrl + clickZoom out
mouse dragZoom into the area
- - Help - - - -
F1Help
Shift + F1Context Help
-
-
diff --git a/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.txt b/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.txt deleted file mode 100644 index fdd5bb3cc..000000000 --- a/share/goodie/gimp_cheat_sheet/gimp_cheat_sheet.txt +++ /dev/null @@ -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