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

Optionally copy the comment #18

Open
cands opened this issue Jan 12, 2021 · 2 comments
Open

Optionally copy the comment #18

cands opened this issue Jan 12, 2021 · 2 comments

Comments

@cands
Copy link

cands commented Jan 12, 2021

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.

@wayneyaoo
Copy link
Owner

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.

@cands
Copy link
Author

cands commented Jun 16, 2021

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.

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

2 participants