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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add link to file lines #7960
Comments
Works since we switched away from codemirror -> https://build.opensuse.org/request/show/670596#n4 |
Ah this is about files... |
Just to be sure of the scope of the change. We're talking about linking to a file line in the CodeMirror code editor that pops up when opening a file, right? For example, this one |
Yes 馃槈 |
Ok, this is what I found out so far: We use CodeMirror via the codemirror-rails gem. It does not implement line anchoring by default, and by looking at the code and past issues looks like its not doable unless we start forking it to apply our modifications. So, what we can do from here?
What do you think? |
Well, I talked too much. Ace's way of accomplishing the line anchoring is probably doable with CodeMirror. I think I'll dig a bit more into this... |
I've been looking into how Ace does the line anchoring. But, it does not work for me. I guess the problem is that the code editor does not have a vertical scrollbar and I doubt very much that CodeMirror will scroll the whole browser page, that I guess its the point here. |
Sorry, closed by mistake. |
I would like to be able to link a file line as I can for example do in Github. 馃檹 It is for example helpful when reporting problems related to a line of a spec file.
Example in GiHub: https://github.com/openSUSE/open-build-service/blob/master/src/api/app/models/user.rb#L689
The text was updated successfully, but these errors were encountered: