vbali / sublime-snakecase

Converts the selected text to a lower case, snake_case representation without accents in Sublime Text 2
1 stars 1 forks source link

It's not working with Sublime text 3 #1

Open jitendravyas opened 11 years ago

jitendravyas commented 11 years ago

Nothing happens when I press shortcut on "item1 item2 item3"

RebeccaWhit3 commented 7 years ago

Console log @ Build 3131

Traceback (most recent call last):
  File "C:\Program Files (x86)\Sublime Text 3\sublime_plugin.py", line 818, in run_
    return self.run(edit)
  File "C:\Users\Sleepy\AppData\Roaming\Sublime Text 3\Packages\sublime-snakecase-master\SnakeCase.py", line 17, in run
    self.view.replace(edit, region, remove_nonword_chars(strip_accents(content)).lower())
  File "C:\Users\Sleepy\AppData\Roaming\Sublime Text 3\Packages\sublime-snakecase-master\SnakeCase.py", line 6, in strip_accents
    return ''.join((c for c in unicodedata.normalize('NFD', unicode(s)) if unicodedata.category(c) != 'Mn'))
NameError: global name 'unicode' is not defined