-
Notifications
You must be signed in to change notification settings - Fork 5
Link to plain preview for rendered files #52
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
Link to plain preview for rendered files #52
Conversation
| - push | ||
| - pull_request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hogashi, I'd like to verify in my PR that the tests I added work. Can you approve this workflow change (not the PR itself yet)? See also https://docs.github.com/en/actions/how-tos/manage-workflow-runs/approve-runs-from-forks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the tests, they now pass locally. I'm opening the PR for review. Still, I'd appreciate having it gated by CI.
$ jest
PASS src/__tests__/makeHttpsUrl.test.ts
PASS src/__tests__/extension.test.ts
Test Suites: 2 passed, 2 total
Tests: 15 passed, 15 total
Snapshots: 0 total
Time: 2.945 s
Ran all test suites.
Done in 11.55s.
hogashi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! I granted workflow.
I missed markdown (and other rich docs format) and it looks good. Adding tests also helps me a lot!
|
this will be published as v0.5.0 🚀 https://github.com/hogashi/vscode-copy-github-permalink/releases/tag/v0.5.0 |
Thank you for this great extension! I often find myself wanting to link to specific lines in markdown files, but that's swallowed by GitHub's preview function. See for example
https://github.com/hogashi/vscode-copy-github-permalink/blob/f666c57d7e2cf1cdff26ca8cf87d918a2b990d8b/README.md#L9I need to manually click on the plain preview button or modify the URL to
https://github.com/hogashi/vscode-copy-github-permalink/blob/f666c57d7e2cf1cdff26ca8cf87d918a2b990d8b/README.md?plain=1#L9to get the linked line highlighted. Automated with this PR.