For debug purpose: How can activate command from chrome console


#1

Hi guys, I wish activate a command using the console instead of the keyboard…for instance…run
’vim-mode:replace’

not sure if I need create an Emitter https://atom.io/docs/api/v0.141.0/Atom and not sure how require packages from the chrome console…any help is appreciate


#2

Use atom.workspaceView.trigger('vim-mode:replace')


#3

thanks @postcasio works nice!..