text-case.nvim icon indicating copy to clipboard operation
text-case.nvim copied to clipboard

[Feature request] Word under cursor replacement: Current word could have "-", "_", ".", "/"

Open johmsalas opened this issue 1 year ago • 1 comments

Currently word under cursor replacement is supported, but it is based on the definition of word provided by "w". More complex scenarios should be supported, like words with special characters like "-", "_", ".", "/"

johmsalas avatar Jan 07 '24 00:01 johmsalas

The _ character is already handled by "w".

From my point of view, your plugin does not need to do anything special. Maybe advice people, that use dash-case to put

vim.opt.iskeyword:append '-'

in their config.

I am not sure in which cases "." and "/" would ever be relevant for this plugin. Out of scope, in my opinion.

Thanks for releasing this plugin btw. It is very useful!

edit: I just noticed you have a thing called "Path case" and a PR wants to add "Comma case". From my point of view, this is going too far. In what world do I want to convert from snake_case to snake/case? Does Path case consider different path separators on Windows? Maybe such cases are best left for #151 ?

bugabinga avatar Apr 17 '24 14:04 bugabinga