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 experimental clipboard feature #89

Merged
merged 4 commits into from
Jul 7, 2023
Merged

Conversation

HeavyWombat
Copy link
Member

@HeavyWombat HeavyWombat commented Dec 11, 2022

Ref: #86

Add --clipboard command-line flag (macOS only) to write the termshot into the clipboard and not into a file. This feature is experimental for now. It is using AppleScripts under the cover in order to avoid having to use CGO.

@HeavyWombat HeavyWombat force-pushed the add/clipboard-feature branch 2 times, most recently from 17fdd1d to c1f03d7 Compare December 11, 2022 21:05
Fix indentation inconsistencies.
Use `go run` for Ginkgo.
Add empty lines for readability.

Simplify commands.

Add comments.
@HeavyWombat HeavyWombat force-pushed the add/clipboard-feature branch 2 times, most recently from 924bb97 to 9aa1857 Compare July 7, 2023 20:49
Refactor scaffold to use `io.Writer` as its main target.

Refactor command code to allow for optional clipboard flag.

Introduce macOS specific code for copy to clipboard.
@HeavyWombat HeavyWombat changed the title Add clipboard feature Add _ experimental _ clipboard feature Jul 7, 2023
@HeavyWombat HeavyWombat changed the title Add _ experimental _ clipboard feature Add _experimental_ clipboard feature Jul 7, 2023
@HeavyWombat HeavyWombat changed the title Add _experimental_ clipboard feature Add **experimental** clipboard feature Jul 7, 2023
@HeavyWombat HeavyWombat changed the title Add **experimental** clipboard feature Add *experimental* clipboard feature Jul 7, 2023
@HeavyWombat HeavyWombat changed the title Add *experimental* clipboard feature Add experimental clipboard feature Jul 7, 2023
@HeavyWombat HeavyWombat added the enhancement New feature or request label Jul 7, 2023
@HeavyWombat HeavyWombat merged commit 88b9613 into main Jul 7, 2023
4 checks passed
@HeavyWombat HeavyWombat deleted the add/clipboard-feature branch July 7, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant