Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentence Case #5

Open
christianmagill opened this issue Jan 28, 2020 · 2 comments
Open

Sentence Case #5

christianmagill opened this issue Jan 28, 2020 · 2 comments

Comments

@christianmagill
Copy link

Would be nice to have a sentence case option. Often I am using the extension for quickly correcting text that has been typed in all caps.

@Artform
Copy link

Artform commented Apr 5, 2021

My Solution for this:

  1. Right click on plugin and "Open in Finder"
  2. Open the changecase.py file in any editor you want (ie. VS Code)
  3. Add the following to it... then save and test

Line 36: 'sentence': escape(text[0].upper() + text[1:].lower(), {'"': '"', '\n': '
'} )
Line 72:

  <item arg="%(sentence)s">
    <title>"%(sentence)s"</title>
    <subtitle>Transform text to `Sentence case`</subtitle>
    <icon>camelcase.png</icon>
  </item>

Shout out to @jdavisclark for his Alfred plugin, which I used the solution for line 36.

@rachelcsimmons
Copy link

Hi there, I'm sorry, I'm new to editing alfred workflows. I followed a guide that said if you want to edit the contents of a .alfredworkflow file, you change the extension to .zip and unzip it. That worked and i was able to find the .py file and make the edits suggested above. However, the guide said to zip the folder again and then change .zip back to .alfredworkflow, and I did that, but when I imported to Alfred, it said Error, "The workflow you are trying to import is invalid."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants