Skip to content

Commit

Permalink
Improve XPath copy to clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
pleonex committed Sep 13, 2016
1 parent 47306fd commit 1935439
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## 0.8.4
* Add keymap to copy the current XPath into the clipboard.
* Fix #26 - Error trying to dispose the status bar.
* Fix tag value completion for fields with dots.

Expand Down
2 changes: 2 additions & 0 deletions keymaps/autocomplete-xml.cson
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
'atom-workspace':
'ctrl-alt-c': 'autocomplete-xml:copy-XPath-to-clipboard'
11 changes: 0 additions & 11 deletions lib/keymaps/autocomplete-xml.cson

This file was deleted.

8 changes: 4 additions & 4 deletions lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ module.exports =
getProvider: -> provider

activate: (state) ->
# Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable
@subscriptions = new CompositeDisposable
# Register command that toggles this view
@subscriptions.add atom.commands.add 'atom-workspace', 'main:copyXpathToClipboard': => @copyXpathToClipboard()
@subscriptions.dispose()
@subscriptions.add atom.commands.add 'atom-workspace',
'autocomplete-xml:copy-XPath-to-clipboard': => @copyXpathToClipboard()

deactivate: ->
@xpathView?.destroy()
@xpathView = null
@subscriptions?.dispose()
@subscription = null

consumeStatusBar: (statusBar) ->
XPathStatusBarView = require './xpath-statusbar-view'
Expand Down

0 comments on commit 1935439

Please sign in to comment.