alfred-cheat icon indicating copy to clipboard operation
alfred-cheat copied to clipboard

-s instead of --search

Open chrisgrieser opened this issue 3 years ago • 2 comments

just for the sake of quickness, could you add -s as an equivalent alternative to --search? would make it much quicker.

chrisgrieser avatar May 21 '21 12:05 chrisgrieser

Thanks for the comment. will do.

wayneyaoo avatar Jun 16 '21 14:06 wayneyaoo

@chrisgrieser

I'm playing around with a fork now, but the quick way is to right-click the workflow and choose 'Open in FInder'. Edit the cheat.py to replace if sheetName=="--search": on lines 24 and 31* with if sheetName in ["--search", "-s"]:.

*Line numbers refer to the last released version

mikemcduffie avatar Aug 12 '21 21:08 mikemcduffie

This is one of the very greatest workflows of Alfred :) Thank you so much!

By the date of now, you have to change the line 30 to:
if len(tokens) == 1 and (tokens[0] == "--search" or tokens[0] == "-s"):
and the line 45 to:
sheetName = None if tokens[0] in ["--search", "-s"] else tokens[0].

That's the way how the -s option works for me.

MannyFay avatar Aug 02 '23 14:08 MannyFay

Hey folks sorry that I was basically inactive on this one since it's stable enough. A new release just added the short option. Thanks for suggesting and sorry for waiting for so long!

wayneyaoo avatar Aug 03 '23 13:08 wayneyaoo