gillibrand / alfred-change-case

An Alfred workflow to change the case of text on the clipboard.
114 stars 12 forks source link

Re-arrange options to make Uppercase first? #2

Closed jm3 closed 10 years ago

jm3 commented 10 years ago

THIS IS DOPE AS HELL. THANK YOU for making this workflow. Genius-level.

Question: if I want to modify the workflow to make the Uppercase filter appear first in Alfred's suggestion list, is that hard to do? Happy to submit a PR, but not sure where I would look in the source to hack that. (I really just want an Uppercase workflow, but I realize that some people may want lowercase too :)

gillibrand commented 10 years ago

You can just swap the order of the <item/> elements in the last print in changecase.py. See the commit https://github.com/gillibrand/alfred-change-case/commit/d02767dd378fc61c4dccdc50fdbb285697547acb, which I put in an uppercase-first branch. That should be right, but I can't test it right now.

I prefer lowercase first since it usually want to "un-SHOUT" some text. Maybe it would be better to have an "upper" keyword that defaults to uppercase instead, but I haven't worked on this recently since I've been using LaunchBar.

jm3 commented 10 years ago

@gillibrand that worked! you're the man, thanks!

jm3 commented 10 years ago

@gillibrand p.s. what made you switch to LaunchBar from Alfred?

gillibrand commented 10 years ago

I go back and forth. I prefer LaunchBar's handling of most file actions. Sending a file to "Open With" or viewing recently opened files for an app is much faster in LaunchBar. It also has a ton of great built in actions out of the box (including changing case!).

But, Alfred 2's extensions are easier to write, more powerful, and can be triggered in lots of ways (e.g., hotkeys).

jm3 commented 10 years ago

Cool… thanks for sharing your actions! Definitely post more if you create other ones. Cheers