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

Optionally copy the comment

Open cands opened this issue 3 years ago • 2 comments

Hi, I posted a feature request in Alfred Forum but you may not monitor that so copying here as well:

Hi again, I'm using this workflow a lot, and I have not experienced any problems after updating to macOS Big Sur. I have one feature request (besides autoupdate as asked before), would it be possible to optionally copy also the comment for a command (written as "# comment" above the command in the text files), .e.g. using another modifier such as the option key? I sometimes find a need to not only copy / paste the command itself but also the comment along with the command.

cands avatar Jan 12 '21 19:01 cands

Hey @cands. Thanks for the suggestion.

Just curious ... What is the scenario when you need to copy the comment? like sharing a command and a comment to someone? cuz I found using too many modifiers to enable different abilities is a bit ... unintuitive. I prefer not to do that but am willing to see how it works for your case. Thanks.

wayneyaoo avatar Jun 16 '21 14:06 wayneyaoo

Thanks for your response and considering my feature request @wayneyaoo

For me the most common scenario is when I document code for making it easier for others to use (and for myself in the future), e.g. when working with Python and Jupyter Notebooks. The comments to the commands are then very helpful as a starting point to explain how the code works. The scenario you mention also occurs sometimes when I want to provide tips to someone.

I guess that many Alfred users are used to pressing modifiers for alternative actions, since it is a feature used in many workflows and is a standard component of workflows, so I would hope that a function to copy the comment could be valuable for many other users of your workflow.

cands avatar Jun 16 '21 14:06 cands