Hello again Takuya!
It’s been a while but yes I have released a working plugin on inkdrop under command-palette. (I had to do some hacky workarounds to get some stuff to work though)
Before and After releasing I noticed I could use
inkdrops.keymaps.getKeybindings to get all available keybinds and upon logging it, i thought it gave all available commands (my bad honestly) but it turns out it doesn’t give you all the commands but only commands that have keybinds on them. For example:
application:about is missing because there’s no keybinds associated with that.
Looking further at the documentation, there’s the CommandRegistry class but there’s no method to get all available commands, so I currently resorted into a object array containing a list of commands based off here and a couple of stuff I found along the way.
Looking at the problem, I was wondering if there would be another way to obtain all available commands so the plugin won’t have to rely on developers to put their commands on plugins.js and it would be also much easier because that would mean the plugin can only show the commands that can really be invoked with their respective keybinds (instead of just sticking to defaults, current limitation) and I won’t be relying on such a hacky method of listing all the commands with theoretically the same layout as
getKeybindings. (like if i used
getKeybindings, all the available information such as
command are available.)