plugin Cuda-Ext Align

Plugins for SynWrite and CudaText...
LuNik700
Posts: 18
Joined: 21.08.2021 14:56

Post by LuNik700 »

Thank you very much...
... and if you could support mutiple occurences per line one day that would be great (and in fact would be the same as "Align comma separated columns in selected lines" with a choosable separator)

Again thank you for your super fast support and have a great weekend!
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

My fork of plugin, with fixes for both cmds:
https://github.com/Alexey-T/cuda_ext

Uninstall old plugin, then do "plugins / addon manager / install from github".
LuNik700
Posts: 18
Joined: 21.08.2021 14:56

Post by LuNik700 »

8-) Alexey, works as it should! Again thank you so much!!!!!
LuNik700
Posts: 18
Joined: 21.08.2021 14:56

Post by LuNik700 »

Can someone pls tell me what the changes in version 1.734 are doing? Can figure it out ...
1.7.34 (2021-08-23)
added: New options for user.json:
"cuda_ext.<command>.menu.<style>": <value>
...
Thx
Ludger
uvviewsoft
Posts: 392
Joined: 01.12.2020 13:46

Post by uvviewsoft »

LuNik700
Posts: 18
Joined: 21.08.2021 14:56

Post by LuNik700 »

Hi,
as written before I needed a way to align text at the right-most position of multiple carets. For my needs this is very comfortable when I work with multiple cursors.
I now implemented a command that offers this functionality.
For that I just extended the existing plugin cuda_ext. Are you interested to consider to integrate this into cuda_ext?
I'm not an experienced Python coder but it seems to work well and it has just a couple of lines of code.
Align_by_caret(1).png
Align_by_caret(1).png (8.35 KiB) Viewed 2881 times
Align_by_caret(2).png
Align_by_caret(2).png (11.15 KiB) Viewed 2881 times

Best regards
Ludger
Last edited by LuNik700 on 03.09.2021 14:40, edited 1 time in total.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Yes, please post your code (the entire python file which is changed).
LuNik700
Posts: 18
Joined: 21.08.2021 14:56

Post by LuNik700 »

... there are changes in
install.inf, __init__.py and cd_ext_find_repl.py. The command is implemented in cd_ext_find_repl.py

Please check the code as I'm not so familiar with python and the cudatext API. Perhaps you find things to be done in a better way ...

Please find the files attached. I add .txt cause file extension .py, .inf and .zip seem not to be supported ...

Best regards
Ludger
Attachments
cd_ext_find_repl.py.txt
(89.8 KiB) Downloaded 172 times
__init__.py.txt
(12.89 KiB) Downloaded 174 times
install.inf.txt
(20.72 KiB) Downloaded 172 times
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

I see some places can/must be changed a little (we will change them, don;'t worry); I posted the request to @kvichans on Github.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Kvichans will be present in 2 weeks, let's wait.
Post Reply