Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Url for opening file editing at a specific line number #295

Closed

Description

@hayd

At the moment there is a single link for making an edit, e.g.

https://github.com/JuliaLang/julia/edit/master/base/base.jl

It would be great to be able to advertise a link to edit a part of a file (e.g. the line number for a docstring of a specific function). IMO the whole point of the edit button is lowering the barrier for entry for contributions and this would help!

Similar to how you can access line numbers in a file, diff or a PR.

Activity

  1. cirosantilli commented on Nov 13, 2014

    @cirosantilli
    Collaborator

    +1, this is a great idea. On hover of blob view for branches, an edit button could be shown.

    BTW in #293 (comment) I also propose another such button: create an issue with body prefilled with the link to the location to report an issue at the given location.

    I have created a slightly more detailed version of this at: http://feedback.gitlab.com/forums/176466-general/suggestions/6711593-on-hover-per-line-button-on-branch-blob-show-to-ed

    This would also require: #297 to be doable for markdown.

  2. ptomato commented on Apr 29, 2017

    @ptomato

    You can append something like #L12 to the edit URL to place the editor cursor at that line. It's not overly obvious but it works!

  3. hayd commented on Apr 29, 2017

    @hayd
    Author

    Nice! I'm sure you didn't use to be able to, good job github!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions