johmsalas / text-case.nvim

An all in one plugin for converting text case in Neovim
447 stars 18 forks source link

[Feature Request] Allow to indicate default casing for words where its case is ambiguous #141

Open johmsalas opened 10 months ago

johmsalas commented 10 months ago

If the case is ambiguous, it should be possible to indicate a default case. In the following example, Button, a single word, does not provide much information about its casing. text-case infers a type, looks like Title Case, but ideally it should've used PascalCase. This is information is not available from the single word Button

image
johmsalas commented 10 months ago

One of the sources of the original casing could be the destination case. In the example of the issue description, it is providing Title Case, but the user could have also provided PascalCase

image