Trying to build my first extension and running into some issues, but here I’ll look at a specific one.
I’ve built a rudimentary sidebar view to list some data, and each item is going to be assigned the same command. What I’d like to be able to do is receive the TreeItem (or some identifying piece of data) in the command so that I can operate on it, but I don’t seem to be able to do that. All I’ve done is register the command with nova.commands.register() and specified the command name in getTreeItem using item.command = "".
The documentation doesn’t mention any other way to assign this command, but am I missing something? How do you retrieve the selected TreeItem when running a command?