advice2020 created an issue (geany/geany-plugins#1463) Have more of a specific task trying to achieve so these scripts might not be that useful to other users, but I was wondering if anyone would be willing to provide a Lua script that could achieve any of the following tasks.
Basically need already typed out text to fit into specific "column" width (length of lines) so I am looking for Lua scripts to achieve the following tasks. `MAIN TOOL - DELETE ALL AFTER` This would be the main script looking for. Say you have a text file that contains the following text, 10 of any characters, which in this case is 10 letters ``` AAAAAAAAAA11111 BBBBBBBBBB2222222 CCCCCCCCCC333333333 ``` Looking for a GeanyLua script would apply to entire document that would delete everything in each row after 10 characters, resulting in ``` AAAAAAAAAA BBBBBBBBBB CCCCCCCCCC ``` ------------------------------------------------ `BONUS TOOL - ENTER TO NEXT LINE` This one might be more complicated so not as important. Similar to example above ``` AAAAAAAAAA11111 BBBBBBBBBB22222222 CCCCCCCCCC333333333344444 ``` but instead of deleting everything after the 10th character, the remaining text goes to the next line (same action as hitting "Enter" key) ``` AAAAAAAAAA 11111 BBBBBBBBBB 22222222 CCCCCCCCCC 3333333333 44444 ``` Note that the line `CCCCCCCCCC333333333344444` becomes three separate lines because the numbers exceed the 10 character limit. Not sure if this would be issue for Lua script to be aware of? ---------------------------------------------------------------------------------- Can use `10` characters as character line length value in the script(s). I can then just do a keyword search for the number `10` and change to the desired value. Thank you to anyone who reads this and is willing to give it a try. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/issues/1463 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany-plugins/issues/[email protected]>
