diff --git a/Change Case.alfredworkflow b/Change Case.alfredworkflow index 63faa9b..86c754b 100644 Binary files a/Change Case.alfredworkflow and b/Change Case.alfredworkflow differ diff --git a/changecase.py b/changecase.py index 8393e92..ea08a92 100644 --- a/changecase.py +++ b/changecase.py @@ -5,6 +5,7 @@ from xml.sax.saxutils import escape from titlecase import titlecase + if len(sys.argv) > 1 and len(sys.argv[1].strip()): text = sys.argv[1] else: @@ -36,37 +37,37 @@ def upcase(m): } -print """ +print(""" - %(lower)s - lowercase + "%(lower)s" + Transform text to `lowercase` lowercase.png - %(upper)s - UPPERCASE + "%(upper)s" + Transform text to `UPPERCASE` uppercase.png - %(title)s - Title Case + "%(title)s" + Transform text to `Title Case` titlecase.png - %(camel)s - CamelCase + "%(camel)s" + Transform text to `CamelCase` camelcase.png - %(kebab)s - kebab-case + "%(kebab)s" + Transform text to hyphenated `kebab-case` kebabcase.png - %(snake)s - snake_case + "%(snake)s" + Transform text to `snake_case` snakecase.png -""" % variations +""" % variations)