You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I agree with the replacement of string-inflection-final-position and the use of (bounds-of-symbol-at-point).
I will probably only use 'end, but there will likely be others who prefer 'remain.
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 variablestring-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 stringUsing
(bounds-of-symbol-at-point)
that would also allow us to dropstring-inflection-word-chars
andstring-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.
The text was updated successfully, but these errors were encountered: