Skip to content

enable less/edit for documented variables #53539

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

JeffBezanson
Copy link
Member

We don't store the locations of definitions of variables, but the doc system does (when they are documented). This PR uses that info to make less and edit work on variables.

I'm not sure about the change to REPL. We copy metadata from the docsystem's objects to meta dicts in the markdown object, but for some reason we only copy certain fields. It seems to me that should include both the filename and line number. Then maybe the doc viewer could show locations.

@JeffBezanson JeffBezanson added the docsystem The documentation building system label Feb 29, 2024
@fingolfin
Copy link
Member

Very nice!

Can this also locate struct definitions or other type declarations (at least if they are documented)? Then one could also partially resolve #38966

@giordano
Copy link
Contributor

I presume this fixes #53534?

@JeffBezanson
Copy link
Member Author

Can this also locate struct definitions or other type declarations (at least if they are documented)? Then one could also partially resolve #38966

Yes! In fact it already works if you give the name of a documented type, since those are treated the same as other bindings. It does not yet work for instantiated types like T{Int} but that could be added.

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

Successfully merging this pull request may close these issues.

3 participants