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

Add Copy Command to clipboard #431

Merged
merged 2 commits into from Oct 14, 2021
Merged

Add Copy Command to clipboard #431

merged 2 commits into from Oct 14, 2021

Conversation

amimaro
Copy link
Contributor

@amimaro amimaro commented Oct 13, 2021

Description of the PR

image

If I got the right idea. o/

Was create a new menu option "Copy Command" on right click at the task.

The event copies the task command using clipboard from electron.

Currently there is one test failing at task.test.js it("Stop task").

Please, let me know if it must have some changes.
Appreciate any feedback.

Issue: Copy command option in context menu #428


Please, before doing the PR make sure that you are following the intructions described in CONTRIBUTING.md and you have completed the following checklist

Checklist

  • Your PR is done against the dev branch
  • Your origin branch is updated with the latest changes from dev
  • All the tests and linters are passing (npm run test)
  • Your changes have tests

Thanks for contributing to Gaucho

Copy link
Owner

@angrykoala angrykoala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great Job @amimaro, Everything works as expected. Only a small change requested on naming 👍

@@ -5,7 +5,7 @@
<task-card
:key="index" :task="task" :index="index" :open="selectedTask===index"
@selected="selectTask(index)" @save="saveTask(index, $event)" @delete="deleteTask(index)"
@duplicate="duplicateTask(index)"
@duplicate="duplicateTask(index)" @copy-command="copyCommandTask(index)"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think copyCommandTask may be a bit confusing. copyTaskCommand seems like a slightly better wording for this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Got it!

@angrykoala angrykoala merged commit e1eddc1 into angrykoala:dev Oct 14, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants