I want to create a commands (for vim-mode) that does these three things:
- Enter search mode (the one you enter with “”)
- Type a search term (e.g.
- Press enter (so the search is performed).
Since they are many commands I have to create a custom Atom command in init.coffee:
atom.commands.add 'atom-text-editor', 'custom:search-term', -> editor = atom.workspace.getActiveTextEditor() // more code
I couldn’t find, though, where commands are being defined in
vim-mode. I downloaded the source code of the package and did Find in Folder but couldn’t find anything. (e.g. I searched for vim-mode:search but only the keymap folder popped up).
Where can I find where the commands are being defined so I can use them in my custom Atom command?