Is there a way to run a search/replace type macro with “In the selection Only” selected if any text/columns are highlighted before the macro is run, but run on the entire file if no text is highlighted when the macro is called?
so to clarify – if I have a comma separated file as follows:
is there a way to run a SINGLE macro so if no text is selected, it will run on the entire file & produce this (just a simple example, searching for regexp start of line ^, replace with “):
BUT if I am in CSV Mode (so the file is now in columns), highlight Column “B” and run the same macro, it will produce this:
It seems there needs to be some way for the single macro to know if text is highlighted or not, before it can run on the whole file or just selected text?
Would an additional flag that checks if text is selected first, then run the macro and it will work on that selection only, but if text isn’t selected, if will run on the whole file instead