Skip to content

Conversation

@JoeKar
Copy link
Collaborator

@JoeKar JoeKar commented Nov 10, 2023

This PR should lower the maintenance effort for the available and maybe introduces options as well as help with the overview of the different types of them.
The dedicated option validators for the string options have been removed and one generic has been introduced to automatically handling a list of pre-defined strings.

@dmaluka
Copy link
Collaborator

dmaluka commented Nov 10, 2023

I like this idea, in particular because it would allow to implement generic switching between possible values of an option (in a circular fashion) via a command or a hotkey, as a generalization of the feature requested in #2086 (i.e. provide this toggling not just for boolean options but also for such "choice" options).

@JoeKar JoeKar force-pushed the feature/reduce-option-validators branch from a5ae2d6 to c713148 Compare November 11, 2023 05:18
@dmaluka
Copy link
Collaborator

dmaluka commented Nov 11, 2023

A possible extra improvement on top of this one is to automate the autocompletion check in OptionValueComplete() (as you noted yourself in #2876 (comment)).

@JoeKar
Copy link
Collaborator Author

JoeKar commented Nov 11, 2023

Absolutely right, that's the perfect moment to introduce and generalize this too.
Great, that you remembered that, because I already forgot my comment...what a shame.

@JoeKar JoeKar changed the title Reduce the available string option validators to one generic function Reduce the available string option validators and add autocompletion for them Nov 11, 2023
@JoeKar JoeKar force-pushed the feature/reduce-option-validators branch from 4c62eb0 to bbc6a1f Compare March 15, 2024 21:10
@JoeKar JoeKar merged commit 8724709 into zyedidia:master Mar 15, 2024
@JoeKar JoeKar deleted the feature/reduce-option-validators branch March 15, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants