Running atom commands


#1

I see that there is ‘find-and-replace:toggle’ command can be used on View instance, but I don’t get on which object I can use it.

atom.workspaceView.command doesn’t seems to work

I would like to close and reopen completion dialog with updated items if possible. (perhaps using autocomplete-plus:activate)


#2

Those commands are really intended mainly for using with keymaps. They’re not particularly intended for calling from other packages. If you really need to call them from code, you can use: atom.workspaceView.trigger 'find-and-replace:toggle'. There are significant drawbacks to doing this, though … so you should probably work with the package owner to see if there’s a better way.


#3

Thanks for super quick reply!