So far, there is no option to maintain the cursor position where it was before the inflection. You can use string-inflection-skip-backward-when-done to determine if the cursor will end up at the end of the inflected string or jump to the beginning, but there is no option to make it remain where it was.
My proposal would be to replace string-inflection-skip-backward-when-done with a config variable string-inflection-final-position with the following semantics
'remain → cursor remains where it was initially
'end → cursor jumps to the end of the inflected string
'beginning → cursor jumps to the beginning of the inflected string
Using (bounds-of-symbol-at-point) that would also allow us to drop string-inflection-word-chars and string-inflection-non-word-chars.
Please drop a short comment whether you are in favor of such a change. If yes I will implement it, if not I will set up a solution in my local config.
So far, there is no option to maintain the cursor position where it was before the inflection. You can use
string-inflection-skip-backward-when-doneto determine if the cursor will end up at the end of the inflected string or jump to the beginning, but there is no option to make it remain where it was.My proposal would be to replace
string-inflection-skip-backward-when-donewith a config variablestring-inflection-final-positionwith the following semantics'remain→ cursor remains where it was initially'end→ cursor jumps to the end of the inflected string'beginning→ cursor jumps to the beginning of the inflected stringUsing
(bounds-of-symbol-at-point)that would also allow us to dropstring-inflection-word-charsandstring-inflection-non-word-chars.Please drop a short comment whether you are in favor of such a change. If yes I will implement it, if not I will set up a solution in my local config.