New completion annotations and a minor improvement to aesthetics #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey Augusto, thanks for developing this excellent package! I've made some additions to completion annotations, along with a minor improvement (in my opinion) to aesthetics.
Changes:
devdocs--read-entrypreviously displayed document annotations in a manner similar to Marginalia without actually using Marginalia's facilities. This is not a problem when using Vertico, but it causes misalignment in annotations when using Emacs' built-in completion buffer. I replaced the existing annotation function with two separate ones, for built-in completion and Marginalia. The built-in completion uses a newly introduced variabledevdocs-annotation-separator(default:———) to separate annotations from completion candidates.devdocs--read-documentnow displays detailed version information as annotations for documents. Previously, without such annotations, for some documents it was not possible to know (without going to the DevDocs webpage or downloading the document) the exact versions that were being used. Similar to the above, these annotations support both the built-in completion and Marginalia. If the detailed version information is already present in the document title, we do not display it again as an annotation. Thus, "Python 3.13" has the annotation "3.13.5", but "PyTorch 2.7" has no annotation because theversionandreleasefields in its metadata are both "2.7".Here are two screenshots showing the new annotations:

