advice2020 created an issue (geany/geany-plugins#1590) I thought I had a script for this / something similar but am having trouble finding on my system.
I thought this would be connected to `geany.find` but it is not, the only thing I found in documentation was `geany.selection` but in its description sounds more like the word has to already be selected in document for this to work, so therefore would not work in this script. However, this is similar to my recent post about static keyword find script request. I am looking for a script that would perform a simple static find and replace action / but could also allow user to type in a list of static words they would like to find and replace in a document. ------------------------------------------------------------------- PREFERRED FUNCTIONALITY -If document contains text that is currently selected = script applies to selection only -If document contains no text selected, just caret = script applies to entire document -Would obviously depend on what GeanyLua requires to perform this action, but ideally I would like each find & replace text item to be in its own line, so easier to see and edit. I do not know the exact syntax that is require but I will try to give examples below what is the desired outcome. ------------------------------------------------------------------- GENERAL CONCEPT OF HOW SCRIPT WOULD LOOK ``` code code "<find-this-text>" - "<replace-with-this-text>" code code ``` ------------------------------------------------------------------- SINGLE F&R ``` code code "apple" = "red" code code ``` ------------------------------------------------------------------- MULTI F&R ``` code code "red" = "apple" "orange" = "orange" (bad example :) "yellow" = " bunch of bananas " (include of spaces before and after text if included) "green" = "grapes" code code ``` Thank you to anyone who reads this -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/issues/1590 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany-plugins/issues/[email protected]>
