ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Gimp Auto-Complete Python

by civAnimal ST3

A Sublime Text Auto-Complete plugin for GIMP's Python API.

Details

Installs

  • Total 496
  • Win 378
  • Mac 47
  • Linux 71
Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9
Windows 2 5 4 1 5 4 3 4 1 1 4 1 9 4 2 6 2 4 0 4 3 4 3 1 2 5 6 3 3 0 1 2 3 3 2 4 4 3 4 1 4 6 0 7 2 5
Mac 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0 2 0 0 0 0 0 0 0 0 1 1 1 0 0 1 0 1 0 0 1 1 1 0 1 0 0 0 0 0 0
Linux 0 0 0 0 1 1 1 1 1 0 0 0 2 2 0 0 0 0 0 1 0 0 0 1 1 1 0 1 0 0 0 1 1 0 1 0 0 0 0 2 0 3 2 1 1 0

Readme

Source
raw.​githubusercontent.​com

GIMP Auto-Complete Python API for Sublime Text

This auto-complete plugin covers 1000+ Functions and Constants available in GIMP's Plugin API. All these functions and constants are now just a few keys away. Simply type some letters of a function and press Enter. The full function name, qualified by module identifier pdb, together with arguments (if any) shall appear at cursor location. Imagine how much typing that would save you.

Examples

Text Entered Result
fundst pdb.gimp_image_undo_group_start(image)
flus pdb.gimp_displays_flush()
fthwl pdb.gimp_image_thaw_layers(image)
fgactl pdb.gimp_image_get_active_layer(image)
fitsn pdb.gimp_item_set_name(item, name)
fgau pdb.plug_in_gauss(image, drawable, horizontal, vertical, method)
fcub pdb.plug_in_cubism(image, drawable, tile_size, tile_saturation, bg_color)
fgsa pdb.python_fu_gradient_save_as_css(gradient, file_name)
ffo pdb.python_fu_foggify(image, drawable, name, colour, turbulence, opacity)
fstcm pdb.script_fu_set_cmap(image, drawable, palette)
fba pdb.script_fu_blend_anim(image, drawable, value, value, toggle)
cpfi PF_IMAGE
cpfdr PF_DRAWABLE
crgba RGBA_IMAGE
clov LAYER_MODE_OVERLAY
clinb LAYER_MODE_LINEAR_BURN
clmul LAYER_MODE_MULTIPLY_LEGACY
ctr TRUE

Tips

  • Remember, f is for … Functions, and c is for … Constants.
  • You don't need to type pdb or . or any of the prefixes, like gimp, python_fu, script_fu, etc. Just type a few letters from the “true name” of a function/constant. Observe the patterns used in examples.
  • You could use Tab and Shift+Tab to cycle forward and backward through arguments.
  • If you accidentally invoke an undesirable completion, performing a simple Undo ctrl + z might be a better fix, rather than manually deleting the unwanted bits.

Installation _ via Sublime Package Control

  • Open command palette by using the menu command: ToolsCommand Palette
  • Select: Package Control: Install Package
  • Search for the package name: Gimp Auto-Complete Python and press Enter
  • After installation completes, you could start using this plugin straight away; no restart required.

Installation _ Manually

  • Download the plugin (or clone this repository).
  • After extraction, copy gimp_autocomplete_python folder to Sublime Text's Packages folder.
  • You can locate this folder from Sublime Text by using the menu command: PreferencesBrowse Packages.
  • You could start using this plugin straight away; no restart required.

Notes

Feedback & Comments

Copyright © 2020 civAnimal