'Expand selection to word' does not work as expected
Posted: 09.04.2019 10:27
Hello,
I'm not sure it is a bug or just a limitation but let me explain the issue:
I have such a text file.
def labelLeft1 aa
def labelRight1 bb
def labelLeft2 aa
def labelRight2 bb
def labelLeft3 aa
def labelRight3 bb
I want to change 'def labelLeft1' and 'def labelLeft2' from 'aa' to 'cc' and leave 'def labelLeft3' unchanged. I select ' def labelLeft' in the first line and choose 'expand selection to word'. Nothing happens. CudaText claims 'cannot find 'def labelLeft'. The 'Highlight Occurences' pluging higlights properly all occurences of selected 'def labelLeft'.
In all other text editors I tried it with (sublime, vscode, atom, pycharm ide) this selection would work.
On the other hand I can select all 'labelLeft' instances in the text by:
1. select 'def labelLeft' in the first line
2. Ctrl+c
3. Ctrl+f
4. Ctrl+v
5. Alt+e
6. Esc
However it would allow only to modify all 'labelLeft' instances, not just first 2. By the way, it would be great to have some shortcut for selecting all instances instead of 6 step procedure. I tried macro, but didn't work. Is there any way to automate above 6 steps?
I'm not sure it is a bug or just a limitation but let me explain the issue:
I have such a text file.
def labelLeft1 aa
def labelRight1 bb
def labelLeft2 aa
def labelRight2 bb
def labelLeft3 aa
def labelRight3 bb
I want to change 'def labelLeft1' and 'def labelLeft2' from 'aa' to 'cc' and leave 'def labelLeft3' unchanged. I select ' def labelLeft' in the first line and choose 'expand selection to word'. Nothing happens. CudaText claims 'cannot find 'def labelLeft'. The 'Highlight Occurences' pluging higlights properly all occurences of selected 'def labelLeft'.
In all other text editors I tried it with (sublime, vscode, atom, pycharm ide) this selection would work.
On the other hand I can select all 'labelLeft' instances in the text by:
1. select 'def labelLeft' in the first line
2. Ctrl+c
3. Ctrl+f
4. Ctrl+v
5. Alt+e
6. Esc
However it would allow only to modify all 'labelLeft' instances, not just first 2. By the way, it would be great to have some shortcut for selecting all instances instead of 6 step procedure. I tried macro, but didn't work. Is there any way to automate above 6 steps?