Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Goto Type #14

Open
tferr opened this issue Mar 1, 2022 · 1 comment
Open

Enable Goto Type #14

tferr opened this issue Mar 1, 2022 · 1 comment

Comments

@tferr
Copy link
Collaborator

tferr commented Mar 1, 2022

@acardona,
I added a couple of more things to the ScriptEditor. It now has a clipboard manager, the ability to record actions and replay them in macros(!), some convenience methods for code formatting, etc.
Another addition is the GoTo Type Command (Ctrl Shift G), that brings a pop-up with all the members/types. Here is how it looks for JavaSript:
image
(you can try it using the latest code in Script Editor's master branch, and this script from Wayne)

It would be super useful to have this working in python. Here is what needs to be done:

  1. Assemble a AbstractSourceTree with all the members to be listed. Here are some examples of this being done for JavaScript, XML, and Java
  2. Assemble a GoToMemberAction from the AbstractSourceTree in 1)
  3. Register the action in 2) in the JythonLanguageSupportPlugin class (e.g., as it has been done here for JavaScript)

Once these conditions are met, the Script Editor, 'Goto Type' will work in the Script Editor. I feel you are in a privileged position to tackle 1). I could handle 2) and 3).

@haesleinhuepf, pinging you to make you aware for IJM support. The procedure would be the same.

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/auto-code-completion-for-ij-macro/11642/162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants