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

Feat: copy path button #181

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

CrudeCreations
Copy link

@CrudeCreations CrudeCreations commented Apr 7, 2024

Adds a 'Copy Path' button to the InfoHeader component as well as a 'language' preference that is saved to session.

Select the 'Copy Path' button that appears when hovering over a title in the infoheader:

image

This will copy the path to the selected key in your preferred language.
Like so:
.glossary.GlossDiv.GlossList.GlossEntry.GlossDef.GlossSeeAlso[1]

Right now I've only added JS/Python.
You can change this and also add optional chaining or a variable name by clicking the little settings icon to bring up a dialog.

image

@CrudeCreations CrudeCreations changed the title Feat copy path Feat: copy path button Apr 7, 2024
@CrudeCreations
Copy link
Author

Sorry, closed by accident.

@qkxie
Copy link

qkxie commented Apr 8, 2024

nice feature

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

Successfully merging this pull request may close these issues.

None yet

2 participants