Make another version of TextCaseStartReplacingCommand that only considers the first part of the word
peterfication opened this issue · 6 comments
E.g. when you have CarScreen
and the cursor is on Car
it will start the command <CMD>Subs/Car/
instead of <CMD>Subs/CarScreen/
I would have just used the cword
and then use the to_parts
function to get the first part.
Removed my previous comment, I assumed it was another issue, just created another enhancement issue: #136
@peterfication. Question: should this be another command? shall we add custom objects according to different cases? for example a custom object defining a small part of a word like oneTwoThree, if the cursor is on the word two, that could be an object itself
I haven't thought of it. Most likely it makes sense to have this.
My use case for this issue was that I often have things that start with a word which I want to use for Subs.
I'd like to think more about the use case. Should it be parametrizable? like being able to specify how many words and where to start? According to different user use cases? Can you create a discussion?
Sorry, the discussion is not necessary, it took me by surprise, let's continue in the PR