godotengine/emacs-gdscript-mode

Rewrite gdscript-imenu to provide GDScript-specific tables

Open

#89 opened on Sep 8, 2020

 (0 comments) (0 reactions) (0 assignees)Emacs Lisp (41 forks)auto 404
enhancementgood first issuerefactor

Repository metrics

Stars
 (395 stars)
PR merge metrics
 (PR metrics pending)

Description

While we have imenu support, it's based on the built-in Python package and not tailored to GDScript, creating tables that are useful but that also have incorrectly sorted or formatted entries at times. For instance, signals get labeled as "Structs".

Tasks:

  • Correctly label functions, variables, and inner classes.
  • Add support for optional type hints, at least for functions. We need a regexp that captures -> type. It'd be nice to have for variables too but with inferred types we're a bit limited.

Contributor guide