Skif-off left a comment (geany/geany-plugins#1527) @advice2020,
> I have seen them in the past, but I was not thinking of the two keybindings > you mentioned. I tested them, they use the `B`.) If the selection captures more than one line, then another approach becomes too hard...:( > If you do find anything about code folds being available in GeanyLua plugin > please let me know. I won't find it :) The plugin doesn't know this and doesn't know how, but it can interact with the Scintilla and need to see what the Scintilla can provide. > Ideally this would be created as 1 tool that has the ability to recognize > between "code fold" and "regular text" and apply the ACTIONS accordingly. It's impossible: in this case, you will not be able to move any "regular text" inside the block. For example, HTML/XML is one large block with nested blocks inside it, so you will always be inside some kind of block. > I could not think of that many keywords to search for this when I did, I did > not do a search for the term "logical blocks" I will check this. Code folding is applied to logically isolated parts of a file (functions, procedures, conditional statements, loops, tags and so on), that's why I used this phrase :) --- It seems to me that in this case the best solution would be to use built-in commands, but need to find a way to select the block in which the cursor is located. Maybe Geany can do this already? I skimmed through the Geany's manual and might have missed it. Otherwise, need messages that allow to find the positions of a code block inside file. -- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/issues/1527#issuecomment-3632129749 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany-plugins/issues/1527/[email protected]>
