Closed i5ar closed 7 years ago
Indeed we can. You can add the following code to your init.coffee file, and voilá, you have :Lex
mapped to toggle tree-view.
# in Atom's init.coffee
atom.packages.onDidActivatePackage (pack) ->
if pack.name == 'ex-mode'
Ex = pack.mainModule.provideEx()
Ex.registerCommand 'Lex', -> atom.commands.dispatch(document.querySelector('atom-workspace'), 'tree-view:toggle')
Is it possible to map
:Lex
toCtrl+\
so we can toggle the tree view in a vim fashion?The
:Lex
command was introduced in vim 8.0:Basically
:Lex
toggles a tree view.Thanks!