Find and Search and Replace nothing like is PrimalScript
Posted: Wed Jun 26, 2019 12:04 pm
Product, version and build: PowerShell Studio (year does NOT matter)
32 or 64 bit version of product: 64bit (I am sure this does NOT matter either)
Operating system: 64bit (again doesn't matter)
32 or 64 bit OS: Windows 7 and Windows 10 (also does NOT matter)
I have been using PrimalScript (PS) since 2002.
I have, within the last two months, started working MUCH more with PowerShell Studio (PSS)(PowerShell is the way of the future).
Being as I am coming from PS am am VERY used to the way the <Crtl>+F and Ctrl>+H work there and it is just engrained in my programmers DNA now.
When I try to use these normal functions in PSS I am constantly confronted with the lack of workableness of these dialogs.
Let me give you a few points.
If you want to refactor a small piece of code by renaming one of more variables in it, in PS you would mark that section of code the same way as you would if you were going to copy it. Then you press <Ctrl>+H and the "Replace" dialog pops up with the "Scope" radio button already set for me because, logically, NO ONE is going to search and replace an entire section.
The focus is set to the EMPTY "Find What:" textbox and away we go... fast and efficient
In PSS on the other hand, after marking the code I want to Find and Replace in & hitting the <Ctrl>+H keys the "Find/Replace" dialog pops up, and has thrown then entire marked text into the "Find What:" textbox. The "Search in selection" checkbox is NOT set!
NOT Fun! Who would EVER want to do that, I ask?
Another thing that the PSS "Fine/Replace" functionality does wrong has to do with the "Replace with:" textbox contents.
If I have completed a previous Search and Replace operation and want to do another one where I mark some NEW text the "Find/Replace" dialog pops up when called also correctly with the NEW marked text in the "Fine What:" textbox BUT the "Replace with:" textbox still has the OLD information in it. That is one problem the other problem with the OLD text is that when I <TAB> from the "Find What:" textbox to the "Replace with:" textbox the cursor is placed in a random position in the OLD text. If the OLD text was very long and the NEW text is shorter the cursor is somewhere in the middle. I have NOT been able to determine what value is being used for that position but I am sure your programmers will find out when they reproduce this behavior.
(I think that the position is the end of the "Find What:" text length)
In my opinion when a NEW "Find" or "Fine & Replace" is started the "Replace with:" textbox should be cleared!
When more than ONE (1) word is marked, delimited using spaces, and <Ctrl>+H was pressed then the "Find What:" textbox AND the "Replace with:" textbox should be cleared. as well as setting the CheckBox "Search in selection" automatically.
I am surprised that NO ONE else has complained about this lack of functionality.
I hope that you DON'T say again that "other" editors work this way.
Note: NotePad++ would in such a case ONLY put the entire first line of the marked text into the "Find what:" textbox but that is dumb also.
(PSS puts the ENTIRE marked text into the textbox (worse))
If they do work that way you know why I don't use them and use SAPIEN instead.
As I said before, I have been programming VBS since 2002 with PrimalScript, the ONLY runtime VBS debugger on the market that is worth ANYTHING.
And it is worth MORE than it's weight in GOLD.
(I don't know what software weighs, I would say nothing )
Have fun,
Drew
32 or 64 bit version of product: 64bit (I am sure this does NOT matter either)
Operating system: 64bit (again doesn't matter)
32 or 64 bit OS: Windows 7 and Windows 10 (also does NOT matter)
I have been using PrimalScript (PS) since 2002.
I have, within the last two months, started working MUCH more with PowerShell Studio (PSS)(PowerShell is the way of the future).
Being as I am coming from PS am am VERY used to the way the <Crtl>+F and Ctrl>+H work there and it is just engrained in my programmers DNA now.
When I try to use these normal functions in PSS I am constantly confronted with the lack of workableness of these dialogs.
Let me give you a few points.
If you want to refactor a small piece of code by renaming one of more variables in it, in PS you would mark that section of code the same way as you would if you were going to copy it. Then you press <Ctrl>+H and the "Replace" dialog pops up with the "Scope" radio button already set for me because, logically, NO ONE is going to search and replace an entire section.
The focus is set to the EMPTY "Find What:" textbox and away we go... fast and efficient
In PSS on the other hand, after marking the code I want to Find and Replace in & hitting the <Ctrl>+H keys the "Find/Replace" dialog pops up, and has thrown then entire marked text into the "Find What:" textbox. The "Search in selection" checkbox is NOT set!
NOT Fun! Who would EVER want to do that, I ask?
Another thing that the PSS "Fine/Replace" functionality does wrong has to do with the "Replace with:" textbox contents.
If I have completed a previous Search and Replace operation and want to do another one where I mark some NEW text the "Find/Replace" dialog pops up when called also correctly with the NEW marked text in the "Fine What:" textbox BUT the "Replace with:" textbox still has the OLD information in it. That is one problem the other problem with the OLD text is that when I <TAB> from the "Find What:" textbox to the "Replace with:" textbox the cursor is placed in a random position in the OLD text. If the OLD text was very long and the NEW text is shorter the cursor is somewhere in the middle. I have NOT been able to determine what value is being used for that position but I am sure your programmers will find out when they reproduce this behavior.
(I think that the position is the end of the "Find What:" text length)
In my opinion when a NEW "Find" or "Fine & Replace" is started the "Replace with:" textbox should be cleared!
When more than ONE (1) word is marked, delimited using spaces, and <Ctrl>+H was pressed then the "Find What:" textbox AND the "Replace with:" textbox should be cleared. as well as setting the CheckBox "Search in selection" automatically.
I am surprised that NO ONE else has complained about this lack of functionality.
I hope that you DON'T say again that "other" editors work this way.
Note: NotePad++ would in such a case ONLY put the entire first line of the marked text into the "Find what:" textbox but that is dumb also.
(PSS puts the ENTIRE marked text into the textbox (worse))
If they do work that way you know why I don't use them and use SAPIEN instead.
As I said before, I have been programming VBS since 2002 with PrimalScript, the ONLY runtime VBS debugger on the market that is worth ANYTHING.
And it is worth MORE than it's weight in GOLD.
(I don't know what software weighs, I would say nothing )
Have fun,
Drew