advice2020 left a comment (geany/geany-plugins#1527)

@Skif-off 
Damn Skif, I came back here to quickly mention something I forgot mention
```
UPDATE:
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.
This 1 tool would be composed of 2 scripts
-move down
-move up
If these 2 tools were able to be combined, then could share the same set of 
keybindings as each other.
```
and you already read and responded
Thank you for taking the time to reading and respond, and also being able to 
decipher what I provided.

TOOL 1
The code fold part was the part I was referring to as being not sure if it was 
possible to access through GeanyLua plugin.
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.

TOOL2
This tool mentioned was more of an after thought based on when I was 
thinking/typing about TOOL 1 "code fold" idea.
I thought, this would also be beneficial if it could work for just general text 
(based on lines) as well, turns out some Geany developer thought this as well :)
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.)` approach I mentioned above 
but this provides what I had mentioned about this wow!
I will update my Geany request post with this, could help as a nice example.
Very similar concept to what I was mentioning about code folds.

TOOL 1
For code folds, if use these existing actions available, user would have to 
manually select the code fold block and then also would only be able to move 
the blocks 1 line at a time so not that convenient, but it is something.
If you do find anything about code folds being available in GeanyLua plugin 
please let me know.
If you do, then maybe the "UPDATE" I mentioned above might not be as 
complicated as I thought because maybe could just use these two build in actions
`geany.keycmd` = `EDITOR_MOVELINEUP` and `EDITOR_MOVELINEDOWN`
but obviously I do not know.

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

So because some applications/coding languages use a top to bottom approach, 
being able to move code block(s) up/down could be beneficial.  Hmmm, for 
example lets say an application does not offer a graphical way to sort how 
items appear in a list, instead application uses an xml file with list items 
that are made of blocks, I don't know maybe for example a list of "column sets" 
;)
Then user could just move blocks of code up/down to more conveniently 
re-arrange the sort order.
But could work for all kinds of coding languages/use cases.
This one could be a direct "hand shake" :)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1527#issuecomment-3628268210
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/1527/[email protected]>

Reply via email to