dhealey
Posts: 40 Joined: 14.12.2019 12:30
Post
by dhealey » 04.02.2020 01:18
Is there a way to bring up a list of functions in a file. In Atom and Sublime you do this by pressing CTRL+R, I haven't been able to find a similar thing in CudaText yet.
Alexey
Posts: 1633 Joined: 05.10.2012 22:10
Post
by Alexey » 04.02.2020 10:19
Yes, plugin CudaExt gives command
"Code tree: Symbols list...", which duplicates the content of CodeTree panel in a dialog.
You can assign a hotkey to this command.
Attachments
dhealey
Posts: 40 Joined: 14.12.2019 12:30
Post
by dhealey » 04.02.2020 12:13
Perfect, but I don't see the plugin in the addons manager to install.
Alexey
Posts: 1633 Joined: 05.10.2012 22:10
Post
by Alexey » 04.02.2020 14:30
It's called "CudaExt", it's in ReInstall menu if it's already installed.
dhealey
Posts: 40 Joined: 14.12.2019 12:30
Post
by dhealey » 04.02.2020 14:45
Thank you!
The pseudo namespaces I'm using in Javascript mean the code-tree is showing all functions as anon.
Alexey
Posts: 1633 Joined: 05.10.2012 22:10
Post
by Alexey » 04.02.2020 14:49
Maybe you suggest that JS code
nnnn: function() {...}
must be shown in code tree as "function nnnn"?
dhealey
Posts: 40 Joined: 14.12.2019 12:30
Post
by dhealey » 04.02.2020 15:27
Yeah, I think a lot of JS developers use the object method of namespacing their code, since JS doesn't really have namespaces.
Alexey
Posts: 1633 Joined: 05.10.2012 22:10
Post
by Alexey » 04.02.2020 21:09
i wrote this as to-do, will see it later...
dhealey
Posts: 40 Joined: 14.12.2019 12:30
Post
by dhealey » 04.02.2020 22:45
Wow that was fast, thank you!
I found one more type of function that shows as anon. It's when the function is created inline inside ()
Oh actually ignore me, those are anonymous functions