Skip to content

How to turn "*" into an exact version number? #67

Closed Answered by saecki
IndianBoy42 asked this question in Q&A
Discussion options

You must be logged in to vote

All functions that can insert a version accept an alt parameter, to make them use the opposite of the smart_insert config option, which is on by default. In case of a plain * version requirement nothing is inserted, which is intentional. Passing true for the alt parameter then will insert the whole version.

Here is an example:

require("crates").update_crate(true)

You can also configure the keymapping inside the versions popup, popup.keys.select_alt which is s by default.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by saecki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants