Good evening
This one is probably a standard in every other editor, too:
It would be very helpful if we could enable that search uses the word below the cursor and pre-populates the "find what" string.
The logic is simple:
- Find Next / Previous act as today
- If the cursor is above a word, then the search dialog pre-populates this word in the "find what" string
- If the cursor is in between white spaces, then the search dialog act as today
Thanks a lot,
kind regards,
Thomas
PowerShell Studio: Search: please pre-populate with the word under cursor
Forum rules
Do not post any licensing information in this forum.
Do not post any licensing information in this forum.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: PowerShell Studio: Search: please pre-populate with the word under cursor
If you select the word it will use it as a find expression.
I was trying to think how often I search for the word I currently happen to have the caret on and
I personally think that I most often search for something unrelated to the current word.
So, I let everyone else weigh in here. Please post folks, what is your preference?
I was trying to think how often I search for the word I currently happen to have the caret on and
I personally think that I most often search for something unrelated to the current word.
So, I let everyone else weigh in here. Please post folks, what is your preference?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: PowerShell Studio: Search: please pre-populate with the word under cursor
I agree with Jehoschua - usually when im invoking find I am looking for that particular word. If its a function or variable that's easy enough since I can right click on it and look for all the declarations of that variable/function but if I need to find something that is NOT one of those items - it would be useful. Life doesn't end if this feature doesn't get added - its a nice to have though for sure.
Re: PowerShell Studio: Search: please pre-populate with the word under cursor
Good morning
I know there are two opinions: some likes it - other don't.
So please allow us to enable / disable it. At least with a hidden setting in a Config file.
I know no Editor / IDE which does not support this function.
In only about 5% I have to change the search-text to something other than the word under the cursor. Therefore it's very useful.
Kind regards, Thomas
I know there are two opinions: some likes it - other don't.
So please allow us to enable / disable it. At least with a hidden setting in a Config file.
I know no Editor / IDE which does not support this function.
In only about 5% I have to change the search-text to something other than the word under the cursor. Therefore it's very useful.
Kind regards, Thomas
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: PowerShell Studio: Search: please pre-populate with the word under cursor
Two swallows do not make a summer. Let's get some more opinions here. And please, no made up percentages. I very much doubt you did a comprehensive tally on how often you use the current word under the cursor or not while you were sleeping.
We read your post, so please let others post.
We read your post, so please let others post.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: PowerShell Studio: Search: please pre-populate with the word under cursor
FYI, you don't need to even bring up a find box. Just hit Ctrl+F3 and it searches for the current word.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: PowerShell Studio: Search: please pre-populate with the word under cursor
Can't say I care either way or can follow the issue:
- If I've already selected a section of code, "CTRL" + "C" is easy enough to run.
- If, when the search window pops up, the currently marked text is also already marked - as it is - I can type in a new text as if it were empty, when I try looking for something else.
- When I want to look for the next instance of the current selection, I can easily mark it and press "CTRL"+"F3"
The current state is perfect, as far as I am concerned.
If that wasn't actually the functionality you were complaining about, Thomas, then I don't really understand how you use it.
Maybe do a short screen recording to emphasize it, because I really think the two of us use PowerShell Studio very differently from each other.
- If I've already selected a section of code, "CTRL" + "C" is easy enough to run.
- If, when the search window pops up, the currently marked text is also already marked - as it is - I can type in a new text as if it were empty, when I try looking for something else.
- When I want to look for the next instance of the current selection, I can easily mark it and press "CTRL"+"F3"
The current state is perfect, as far as I am concerned.
If that wasn't actually the functionality you were complaining about, Thomas, then I don't really understand how you use it.
Maybe do a short screen recording to emphasize it, because I really think the two of us use PowerShell Studio very differently from each other.