@Skif-off
Thank you for working on this tool as well

`"sort -f" TOOL`
(I will remove this part after I know you have read and after you have made 
quick edit to script you provided above)
At first when I ran this script an error dialog appeared
```
Lua script error:
<path>/<script-name.lua>:29:bad argument #1 to ‘gsub’ (string expected, got nil)
stack traceback:
[C]: in function ‘gsub’
<path>/<script-name.lua>:29: in main chunk
```
I changed `aTemplate` to `sTemplate` in the first line and then this worked.
If this correct? this is the quick edit I mentioned above, could you update 
your script above.

------------------------------------------------------------

`"grep" TOOL`
This worked great.
Funny because the grep example you mentioned helped out in multiple ways.
-I tested it out by replacing the first line with it which helped me to realize 
the “aTemplate” needed to be “sTemplate” in the “sort -f” tool.
-“grep” was one of the commands I was planning on trying, glad you provided 
this example, I probably would not have been able to figure that out
-I was trying to figure out how to develop a find tool using the “find” 
command, to use with the divider tool you created.
Because of “grep” tool example, you mentioned `geany.choose`, I will look into 
this and see if it has any benefit for that tool.

------------------------------------------------------------

`WITH & WITHOUT SELECTION`
Good thing you mentioned to try this also without selection.
Wow! Thank you for thinking of and figuring out how to combine this into the 
same tool.  This works perfectly.

------------------------------------------------------------

I obviously have not tried this out with every available command :)
but the few that I have tried so far have worked great! :)
Thank you again so much for providing this script and examples, really 
appreciate it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/discussions/4070#discussioncomment-11622709
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/repo-discussions/4070/comments/[email protected]>

Reply via email to