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

Support "plain" links to Markdown files #72

Open
schra opened this issue Jan 24, 2023 · 1 comment
Open

Support "plain" links to Markdown files #72

schra opened this issue Jan 24, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@schra
Copy link

schra commented Jan 24, 2023

Is your feature request related to a problem? Please describe.

I want to be able to link to a specific line in a Markdown (restructuredtext/ ...) file.

When I press <leader>gy in the readme of this repo, I e.g. get the link https://github.com/ruifm/gitlinker.nvim/blob/c68d4873a14d2ae614875685ccca2e49472989e8/README.md#L3-L5, which links to the rendered version of the document, which means the #L3-L5 bit of the URL is ignored.

Describe the solution you'd like
It would be nice if a ?plain=1 was added to files with a .md, .rst, ... extension. For example, instead of https://github.com/ruifm/gitlinker.nvim/blob/c68d4873a14d2ae614875685ccca2e49472989e8/README.md#L3-L5 I want to get https://github.com/ruifm/gitlinker.nvim/blob/c68d4873a14d2ae614875685ccca2e49472989e8/README.md?plain=1#L3-L5

And thanks for the nice plugin :)

@schra schra added the enhancement New feature or request label Jan 24, 2023
@linrongbin16
Copy link

linrongbin16 commented Nov 12, 2023

hi @schra , my fork https://github.com/linrongbin16/gitlinker.nvim can support your use case.

update: add in linrongbin16/gitlinker.nvim#94.

stevanmilic pushed a commit to stevanmilic/gitlinker.nvim that referenced this issue Nov 12, 2023
* ci: remove please-release action

* ci: use action-create-tag

* ci: name

* chore

* ci: fix needs

* ci: fix needs

* ci: fix runs-on
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

No branches or pull requests

3 participants