textpieces icon indicating copy to clipboard operation
textpieces copied to clipboard

add some kind of way to lowercase all letters (and uppercase)

Open Etaash-mathamsetty opened this issue 2 years ago • 4 comments

i still have to go to a random website for this, would be nice if this feature was available in this program. a "sentence case" would be good too.

Etaash-mathamsetty avatar Mar 28 '22 20:03 Etaash-mathamsetty

You can go to preferences -> tools -> add custom tool.

call it uppercase

edit script

from sys import stdin, stdout, stderr, argv
input_string = stdin.read()
stdout.write(input_string.upper())

and you can do the same thing in a tool for lower by doing

from sys import stdin, stdout, stderr, argv
input_string = stdin.read()
stdout.write(input_string.lower())

I implemented these, and a simple jwt parser a while ago.

adasauce avatar Dec 07 '22 13:12 adasauce

You can go to preferences -> tools -> add custom tool.

call it uppercase

edit script

from sys import stdin, stdout, stderr, argv
input_string = stdin.read()
stdout.write(input_string.upper())

and you can do the same thing in a tool for lower by doing

from sys import stdin, stdout, stderr, argv
input_string = stdin.read()
stdout.write(input_string.lower())

I implemented these, and a simple jwt parser a while ago.

I wasn't aware you could make custom tools, I am probably gonna do some really cool stuff with this

Etaash-mathamsetty avatar Dec 07 '22 16:12 Etaash-mathamsetty

Happy to hear it was a helpful suggestion 😄 I was a little worried you would take it the wrong way telling you to go away.

I've been adding up my own set of tools slowly as I need them. I found this issue when I was looking to see if there was some community list of people with their own textpieces tools hoping to find other non-official ones people are working on.

adasauce avatar Dec 07 '22 18:12 adasauce

@Etaash-mathamsetty can you please edit your feature request to include some other features too:

  • Title Case
  • Sentence Case
  • Camel Case
  • Snake Case

username0136 avatar Dec 21 '22 19:12 username0136