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

Add IntelliSense Support for Auto-Completing Anchors #772

Open
bgeels opened this issue Aug 8, 2023 · 3 comments
Open

Add IntelliSense Support for Auto-Completing Anchors #772

bgeels opened this issue Aug 8, 2023 · 3 comments
Labels
💬 discussion Disccussion on new features, projects, etc... ✨ enhancement

Comments

@bgeels
Copy link

bgeels commented Aug 8, 2023

It would be really cool if this plugin supported IntelliSense for Anchors / Attributes defined in any .adoc file found in the opened project.

For example if I have first.adoc like:

:ticket-submission-url: https://open-ticket.example.net

== How to Glom Bleems [[how-to-glom-bleems]]

...and I begin writing a second doc second.adoc in the same project:

Within second.adoc, beginning to type:

  • <<how-to would suggest options to auto-complete matching anchors ( in this case how-to-glom-bleems )
  • {tick would suggest options to auto-complete matching attributes ( in this case ticket-submission-url )
@bgeels bgeels added ✨ enhancement 💬 discussion Disccussion on new features, projects, etc... labels Aug 8, 2023
@ggrossetie
Copy link
Member

{tick would suggest options to auto-complete matching attributes ( in this case ticket-submission-url )

I won't work unless you include first.adoc into second.adoc.
If you want ticket-submission-url to be available in both first.adoc and second.adoc I recommend to use the .asciidoctorconfig feature.

@bgeels
Copy link
Author

bgeels commented Aug 8, 2023

Ah gotcha, I'll look into setting up .asciidoctorconfig. Will setting that up allow for the autocompletion of anchors too? If not would that be something you would consider adding support for?

@ggrossetie
Copy link
Member

Will setting that up allow for the autocompletion of anchors too? If not would that be something you would consider adding support for?

No, as far as I know this feature is not implemented.
On a side-note, I believe that the following syntax is preferred:

[#how-to-glom-bleems]
== How to Glom Bleems

@ggrossetie ggrossetie changed the title Add IntelliSense Support for Auto-Completing Anchors and Attributes Add IntelliSense Support for Auto-Completing Anchors Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 discussion Disccussion on new features, projects, etc... ✨ enhancement
Projects
None yet
Development

No branches or pull requests

2 participants