Was thinking of maybe adding a symbols table to this this, something that looks like:
Let me know what you think, i've already got a class that i wrote for another project that'd work wonderfully for just this thing. I'd only need to modify it to work with the other languages as it only works for python at the moment.
@celltoolz Feel free to contribute a symbols table if you want :)
I think you have two options for getting the symbols in a language-independent way:
Langserver. Will work for any language with langserver configured, but it is a lot of work to implement, and will probably require changes to sansio-lsp-client.
Parsing text. This is probably what your existing class does, but it will require more configuration for each programming language in Porcupine's filetypes.toml.
Originally posted by @celltoolz in https://github.com/Akuli/porcupine/issues/1512#issuecomment-2184198002
@celltoolz Feel free to contribute a symbols table if you want :)
I think you have two options for getting the symbols in a language-independent way:
filetypes.toml
.