rioj7 / command-variable

Visual Studio Code extension for variable substitution via ${command:commandID}
54 stars 10 forks source link

pickStringRemember: defaultSelect (alternative to addLabelToTop) #100

Open rioj7 opened 2 weeks ago

rioj7 commented 2 weeks ago

issue emerged from #96

l-inc: addLabelToTop: the name puts an emphasis on the visual side-effect rather than on the actual functional feature it brings. A possible alternative to this would be a property called defaultSelect (or alike) that takes a sequence of 0 or more labels. Then it could work consistently for both single-pick and multi-pick lists. It would bring the specified option to the top for single-pick lists and it would select 0 or more check-boxes for multi-pick lists.

Qazorr commented 2 weeks ago

will this also be included in the file.pickFile to maybe show the last picked file or put some emphasis on chosen files?

rioj7 commented 2 weeks ago

@Qazorr a nice feature, I have created a new issue for this.

An alternative is to use Example 6 from pickStringRemember. But this does not allow you to modify a previous multi file pick.