Skip to content

Commit

Permalink
add alt+click for "go to declaration", fix #2
Browse files Browse the repository at this point in the history
base atom#18
  • Loading branch information
yongkangchen committed Nov 20, 2014
1 parent d0770c0 commit 970ca17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ module.exports =
atom.workspaceView.command 'atom-ctags:return-from-declaration', =>
@createGoBackView().toggle()

atom.workspaceView.eachEditorView (editorView)->
editorView.on 'mousedown', (event) ->
return unless event.altKey and event.which is 1
atom.workspaceView.trigger 'atom-ctags:go-to-declaration'

if not atom.packages.isPackageDisabled("symbols-view")
atom.packages.disablePackage("symbols-view")
alert "Warning from atom-ctags:
Expand Down

0 comments on commit 970ca17

Please sign in to comment.