Sucesso
-
Posts
10 -
Joined
-
Last visited
Reputation Activity
-
Sucesso reacted to Pearcen in Basic question: How to add a second step to a workflow? (I want to replace /n with | and then trim whitespace)
Extra mile. hehehe nah, just really got into Alfred the last year and thought if I can help then why not.
It makes no difference how it laid out at all. I just put it there and coloured it to make it obvious what I had done.
Glad it is working for you and good luck and enjoy Alfred and all it has to offer.
-
Sucesso got a reaction from Pearcen in Basic question: How to add a second step to a workflow? (I want to replace /n with | and then trim whitespace)
Wow! You really go the extra mile, doncha?
I'll take a look now.
-
Sucesso got a reaction from Pearcen in Basic question: How to add a second step to a workflow? (I want to replace /n with | and then trim whitespace)
That's perfect! Not sure what's different; I thought mine was the same.
Does it make a difference that your final step is dragged down and lower? Versus mine, which was straight across? I assumed it didn't make a difference. Never mind, I just tested it; it doesn't make a difference. I'm assuming you dragged it down to fit in the window so that I wouldn't get confused.
-
Sucesso reacted to Pearcen in Basic question: How to add a second step to a workflow? (I want to replace /n with | and then trim whitespace)
@Sucesso Download my version from https://github.com/pearcenuk/Alfred-public/raw/main/_Paste without newlines.alfredworkflow and see if that works as it does for me.
Things I've updated I've coloured red and left comments
-
Sucesso reacted to deanishe in Basic question: How to add a second step to a workflow? (I want to replace /n with | and then trim whitespace)
Check which whitespace is in your input. It might be some exotic Unicode that doesn't match the regex above.
-
Sucesso reacted to Pearcen in Basic question: How to add a second step to a workflow? (I want to replace /n with | and then trim whitespace)
Is this what you wanted it to do?
Take a block of text with multiple spaces in it and return a single line with \\ replacing newlines and a single space replacing any double or more spaces?
eg:
input:
This is Some test so lets
see how this goes with seeing if this does anything
output:
This is Some test so lets // see how this goes with seeing if this does anything
This is what I added to get the above result and I also changed your snippet trigger to a keyword for testing.