-
Notifications
You must be signed in to change notification settings - Fork 97
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
Autocompletion for image:: and include:: files #377
Comments
@rdmueller should it really be necessary to press a keyboard shortcut like |
sure! even better if you don't have to activate it 😀 |
@rdmueller in addition, I added autocompletion also when using with defined variables. The completion will take the he pathes defined in the variable selected from the completion list and starts to search for child elements inside the directory |
wow! sounds perfect! |
Yes. There is still a small problem with just a specific case I linked a stackoverflow issue. Currently I have no idea how to solve it |
is there any progress on this? atm it seems a little broken to me. |
Could you please be more specific? This has been fixed in #529 and will be available in the next release. |
@eiswind Thanks that's really valuable. I think we should open new issues to track these feature enhancements.
I don't think we are using the path before the cursor but we definitely should. In your case
It seems that we are trying to resolve the attribute but I guess asciidoctor-vscode/src/providers/asciidoc.provider.ts Lines 45 to 51 in e96ac0b
I believe this is intended but I think we should see first files available within the current directory. |
The attribute is defined in the same file. You can see that in the first screenshot.
Plus I think that relative includes are always resolved to the directory the file lives in, but I am not completely sure about that.
Please let me know if I can provide assistance.
|
Oh I see... that does not work because the current implementation does not handle
I will take a closer look, thanks for your feedback that's really valuable 👍🏻 |
The IntelliJ-Asciidoctor-Plugin manages to do an autocomplete on
image::
andinclude::
macros to select a file.This is quite helpful and avoids typos. I would like to see this feature here in the asciidoctor-vscode plugin :-)
Details:
include::
and pressctrl
+space
.include::
macro by adding[]
The text was updated successfully, but these errors were encountered: