Skip to content

Commit

Permalink
Simplify previews
Browse files Browse the repository at this point in the history
Changed item titles to from sentences to just the name of the case.
Removed quotes from previews.
Kept workflow name as simply "Change Case".
Removed default keybinding (conflicted with other keybindings).
  • Loading branch information
gillibrand committed Sep 10, 2018
1 parent 1c9580e commit 075c93a
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 78 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Changes the case of text selected, provided, or on the clipboard to UPPERCASE, lowercase, Title Case, CamelCase, kebab-case, or snake_case.

[Download the workflow](https://github.com/gillibrand/alfred-change-case/blob/master/Change%20Case.alfredworkflow?raw=true).
[Download the workflow](https://github.com/gillibrand/alfred-change-case/blob/master/Change%20Case.alfredworkflow).

![Screenshot](changecase.png)

Expand All @@ -12,21 +12,12 @@ Change the case of text on the keyboard with the keyword `case`. All six styles

Optionally, any text typed after `case` will be changed instead of the clipboard.

Manage the keybinding (set to `Cmd+Opt+Ctrl+Shift+t` by default) to transform the currently selected text.

## Version History

### 9/9/2018

- Updated icons and added additional cases to match original style 👍
- Added CamelCase, kebab-case, and snake_case to icons.acorn layered file

### 8/21/2018

- Added CamelCase, kebab-case, and snake_case options
- Updated/Removed Icons
- Added keybinding for text selection transformation
- Added additional keywords "tt" and "transform" to default workflow options
- Added additional keywords "tt" and "transform"

### 4/19/2013

Expand Down
Binary file modified camelcase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified changecase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions changecase.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,33 @@ def upcase(m):
print """<?xml version="1.0"?>
<items>
<item arg="%(lower)s">
<title>"%(lower)s"</title>
<subtitle>Transform text to `lowercase`</subtitle>
<title>%(lower)s</title>
<subtitle>lowercase</subtitle>
<icon>lowercase.png</icon>
</item>
<item arg="%(upper)s">
<title>"%(upper)s"</title>
<subtitle>Transform text to `UPPERCASE`</subtitle>
<title>%(upper)s</title>
<subtitle>UPPERCASE</subtitle>
<icon>uppercase.png</icon>
</item>
<item arg="%(title)s">
<title>"%(title)s"</title>
<subtitle>Transform text to `Title Case`</subtitle>
<title>%(title)s</title>
<subtitle>Title Case</subtitle>
<icon>titlecase.png</icon>
</item>
<item arg="%(camel)s">
<title>"%(camel)s"</title>
<subtitle>Transform text to `CamelCase`</subtitle>
<title>%(camel)s</title>
<subtitle>CamelCase</subtitle>
<icon>camelcase.png</icon>
</item>
<item arg="%(kebab)s">
<title>"%(kebab)s"</title>
<subtitle>Transform text to hyphenated `kebab-case`</subtitle>
<title>%(kebab)s</title>
<subtitle>kebab-case</subtitle>
<icon>kebabcase.png</icon>
</item>
<item arg="%(snake)s">
<title>"%(snake)s"</title>
<subtitle>Transform text to `snake_case`</subtitle>
<title>%(snake)s</title>
<subtitle>snake_case</subtitle>
<icon>snakecase.png</icon>
</item>
Expand Down
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 6 additions & 55 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,6 @@
<false/>
</dict>
</array>
<key>3EEC7A2D-486C-4756-A271-FAD9448441C8</key>
<array>
<dict>
<key>destinationuid</key>
<string>B6600E5C-BB57-4054-827B-5688E776AEE7</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>B6600E5C-BB57-4054-827B-5688E776AEE7</key>
<array>
<dict>
Expand Down Expand Up @@ -64,11 +51,11 @@
<key>createdby</key>
<string>Jay Gillibrand</string>
<key>description</key>
<string>Change text case to upper, lower, title, camel, kebab, or snake.</string>
<string>Changes the case of text on the clipboard.</string>
<key>disabled</key>
<false/>
<key>name</key>
<string>Change/Transform Text Case</string>
<string>Change Case</string>
<key>objects</key>
<array>
<dict>
Expand Down Expand Up @@ -182,37 +169,6 @@
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>action</key>
<integer>0</integer>
<key>argument</key>
<integer>1</integer>
<key>focusedappvariable</key>
<false/>
<key>focusedappvariablename</key>
<string></string>
<key>hotkey</key>
<integer>17</integer>
<key>hotmod</key>
<integer>1966080</integer>
<key>hotstring</key>
<string>T</string>
<key>leftcursor</key>
<false/>
<key>modsmode</key>
<integer>0</integer>
<key>relatedAppsMode</key>
<integer>0</integer>
</dict>
<key>type</key>
<string>alfred.workflow.trigger.hotkey</string>
<key>uid</key>
<string>3EEC7A2D-486C-4756-A271-FAD9448441C8</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -262,9 +218,9 @@
</dict>
</array>
<key>readme</key>
<string>Change the case of text on the keyboard with the keyword case. All three styles are previewed as Alfred results. Select one to copy it to the clipboard and paste into in the current application.
<string>Change the case of text on the keyboard with the keyword case. All styles are previewed as Alfred results. Select one to copy it to the clipboard and paste into in the current application.
Optionally, any text type after case will be changed instead of the clipboard.</string>
Optionally, any text typed after `case` will be changed instead of the clipboard.</string>
<key>uidata</key>
<dict>
<key>272A1B72-8F54-4B5F-831A-8787D7264102</key>
Expand All @@ -274,13 +230,6 @@ Optionally, any text type after case will be changed instead of the clipboard.</
<key>ypos</key>
<integer>330</integer>
</dict>
<key>3EEC7A2D-486C-4756-A271-FAD9448441C8</key>
<dict>
<key>xpos</key>
<integer>260</integer>
<key>ypos</key>
<integer>220</integer>
</dict>
<key>48FA1057-4D68-48B5-BB44-CBC28130A414</key>
<dict>
<key>xpos</key>
Expand All @@ -303,6 +252,8 @@ Optionally, any text type after case will be changed instead of the clipboard.</
<integer>110</integer>
</dict>
</dict>
<key>version</key>
<string>1.1</string>
<key>webaddress</key>
<string>https://github.com/gillibrand/alfred-change-case</string>
</dict>
Expand Down
Binary file modified kebabcase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lowercase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified snakecase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified titlecase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified uppercase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 075c93a

Please sign in to comment.