It is currently 26 Jun 2019, 18:31


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Social:  Say Hello | Anything Goes | Shares

GIMP Python Fu Scripts/Plug-insAuto Complete Keywords/Function Names in NotePad++ Plugin for GIMP

Share your Python Fu Scripts/plug-ins for GIMP here
Post Reply
tim

GL Blogger

Auto Complete Keywords/Function Names in NotePad++ Plugin for GIMP

Post#1 by tim » 07 Sep 2018, 19:52


If you use NotePad++ to write python plug-ins for GIMP. There's option to change the autocomplete to help you with keywords and function names.
This plug-in will export pdb.* function names and a little info such as input params and return value(s) in XML to a file.
You can then cut and paste this .xml result and insert it in to python.xml (found under NotePad++ 's plugins/APIs/ folder).
Then when as you type it'll show close matching results you can easily find by up/down arrow key and enter on the one you want of what you're trying to type.
get_keywords.py #
put in GIMP's plug-ins/ folder
(13.69 KiB) Downloaded 23 times
get_keywords.py #
version 2. return values defined and params to hint along as you type while inside param list
(13.32 KiB) Downloaded 28 times
Script Menu Location: Python-Fu/Get Keywords XML

Instructions:
1. Have any image opened.
2. Run Script (Python-Fu/Get Keywords XML) Select the directory that you'd like the script to write the keywords.xml output to. Click "OK" and wait for it to complete (It's say Complete! on the error/output console)
3. Open up keywords.xml generated in step 2, and manually add it to NotePad++'s /plugins/APIs/python.xml file in the right xml structure.
4. Or Optionally you can just download the below .xml to use in your Notepad++/plugins/APIs/python.xml file.
python.xml #
(524.46 KiB) Downloaded 21 times
python.xml #
version 2. more params friendly
(551.2 KiB) Downloaded 25 times
It'll autocomplete Keyword Constants and pdb.* function names, see images below:
Notepad++_autocomplete_keywords_constants.png
Notepad++_autocomplete_keywords_constants.png # (36.25 KiB) Viewed 447 times (Watermarked | Thumbnail)
Notepad++_autocomplete_see_number_of_parameters_you_need.png
Notepad++_autocomplete_see_number_of_parameters_you_need.png # (37.55 KiB) Viewed 447 times (Watermarked | Thumbnail)
Notepad++_autocomplete_selectable_function_names.png
Notepad++_autocomplete_selectable_function_names.png # (41.95 KiB) Viewed 447 times (Watermarked | Thumbnail)
version 2 preview:
Notepad++_autocomplete_param_hilighted_as_you_type.png
Notepad++_autocomplete_param_hilighted_as_you_type.png # (38.64 KiB) Viewed 437 times (Watermarked | Thumbnail)
0 x
aka Tin
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         

tim

GL Blogger

Post#2 by tim » 08 Sep 2018, 01:45


I don't know if Notepad++ is native to Ubuntu or not. I am guessing not because it runs slow on my Ubuntu.
Slower than GEdit. Like it would sometimes delay as I type which makes it not breezy to code at all.

I hope it's not because of the large autocomplete python.xml (maybe it's faster on Windows because I remember Notepad++ being really reactive when I worked on Windows before.

Next, I might try Sublime and try to configure autocomplete on that to see if it's any faster.

I want a breezy editor that has autocomplete (I like autocomplete)
0 x
aka Tin
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         

tim

GL Blogger

Post#3 by tim » 08 Sep 2018, 22:02


After trying Atom, it's good but seems to be buggy like it would populate parameter at times and other times not.
So I tried Sublime 3 and it's much faster than Atom and more reactive.
https://www.gimplearn.net/viewtopic.php ... f=3&t=1723
0 x
aka Tin
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Social:  Say Hello | Anything Goes | Shares

Post Reply
  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

Who is online

Users browsing this forum: No registered users and 5 guests