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

Ability to link to line numbers in code #1417

Open
sbussard opened this issue Nov 26, 2024 · 2 comments
Open

Ability to link to line numbers in code #1417

sbussard opened this issue Nov 26, 2024 · 2 comments

Comments

@sbussard
Copy link

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

Documentation for code

Describe the solution you'd like

Something like this

[see code](./path/to/code.cpp#L30)

should open up the file at the specified line number, like github does.

Describe alternatives you've considered

Hosting the files works but is not an option. They have to be local.

Screenshots or Videos

No response

@sbussard
Copy link
Author

You can link to code files when updating foam settings like so, but it doesn't work for line numbers

"foam.files.attachmentExtensions": "cpp h c",

@sbussard
Copy link
Author

Update: just noticed it works in preview mode but not in edit mode. Will leave this open to see if this is a foam issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant