Created
January 31, 2013 23:48
-
-
Save mikewilcox/4687808 to your computer and use it in GitHub Desktop.
Convert double quotes to single quotes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
komodo.assertMacroVersion(3); | |
if (komodo.view) { komodo.view.setFocus(); } | |
ko.views.manager.currentView.scimoz.beginUndoAction(); | |
var str = ko.views.manager.currentView.scimoz.selText; | |
str = str.replace(/\"/g, "'"); | |
komodo.view.selection = str; | |
ko.views.manager.currentView.scimoz.endUndoAction(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment