Calltips / Docstring while viewing a list of functions?

I recently switched to Komodo for Python programming, and I still love it. I like as if I typed the name of the function and then open-paren (, it will open calltip / docstring. I also like it as if I typed in the name of a module, and then .it opens a list of available functions. My question is: is it possible to get a calltip / docstring popup when I have a list of functions? In other words, I want to see what each function (docstring) does before inserting it and opening the argument list with(. The reason is because I need a function, scrolling through the list of functions and inserting functions that look relevant in order to call the tool to see if this is what I want, and then if it is not, delete it and try again ( by backing up the feature list). This functionality is present in Eclipse, and I'm trying to simulate it.

Sorry if this was confusing, and in advance for the help.

+3
source share
1 answer

, , . , , / / :

komodo.assertMacroVersion(2);
if (komodo.view && komodo.view.scintilla) { komodo.view.scintilla.focus(); }

var editor = ko.views.manager.currentView.scimoz;
var cursor_character = editor.getCharAt(editor.currentPos - 1); //get cursor position
editor.autoCComplete(); //autocomplete selected function in list
editor.copyText(1,"("); //add left parentheses to buffer

if(cursor_character > 96 && cursor_character < 123)
  {
  editor.paste(); //add left parentheses to editor after a function name 
  }
ko.commands.doCommand("cmd_triggerPrecedingCompletion"); //trigger calltip or function list

0

All Articles