Page 1 of 1

No bugs... so let's turn to a suggestion

Posted: 23.06.2020 09:37
by tmsg
I can't resist :D

I have one simple suggestion for the editor (ie not as a plugin) that's pretty straightforward: create a command Edit>>Blank operations>>Convert spaces (leading) to tabs... the difference to the already existing command being that this command asks for the number of spaces per tab. The existing command is fine for my own files but when I want to change files from other people it could 4 or 8 or any other number of spaces per tab. I've done that now myself as a plugin but I think it would be good function to include in the editor itself.

And there's question as well... how difficult would it be to change the Macros plugin so that the defined Macros can be displayed in a tree (or menu) structure, ie group them? It would make keeping track of macros easier if I could group them.

Posted: 23.06.2020 10:16
by Alexey
1) You can just click statusbar and change tab-width, then current cmd works!
2) useful plugin: Detect Indent
2b) and: Colored Indent

Posted: 23.06.2020 10:40
by tmsg
Again... good to know! 8-)

There are many things the Wiki doesn't tell... and this is not at all meant as criticism: I think compared to many other FOSS projects I've seen Cud has pretty solid docs :o

Posted: 23.06.2020 10:46
by kvichans
> Macros can be displayed in a tree... group them...
Now: no plans.

Do you know that you can call any macro from the "Command palette" (F1)? It is great!

Posted: 23.06.2020 11:03
by tmsg
kvichans wrote:> Macros can be displayed in a tree... group them...
Now: no plans.
Well, I wasn't after a change as such, I rather wanted to get some rough ideas about the best/easiest way to do that.
kvichans wrote:Do you know that you can call any macro from the "Command palette" (F1)?
I do.

Actually I call quite a few macros via keyboard shortcuts and one reason for my question was that I don't need (and don't want) to see these macros in the Macros dialog listbox.

Posted: 23.06.2020 12:18
by Alexey
>There are many things the Wiki doesn't tell...
you can write here- new wiki topic- e.g. "Tips to work with indentation", with all useful tips.

Posted: 23.06.2020 12:22
by Alexey
ideas about the best/easiest way to do that.
Macros dlg has "listbox" control on the left. you can replace it to "treeview" control. to work with it, use tree_proc(), it can add sub-nodes, can fold/unfold.

Posted: 23.06.2020 12:24
by Alexey

Posted: 23.06.2020 13:01
by tmsg
Thanks @Alexey, that may be what I was looking for.

Actually, I will soon be off to my "dacha" in the mountains... no great Internet connection there (sometimes it works but often it's just horrible :( ). So certainly some stuff for thought...

And you probably won't see a lot in the way of suggestions (or even bugs) for a while because when I am in the mountains I tend to hike and climb the whole day long... weather permitting of course. So if you hear something it means there's bad weather :lol: :lol:

Posted: 23.06.2020 14:53
by Alexey
When it's bad connection, I can do offline coding, much code, and dump it to GH later..

PS. if you find N bugs, please post as N posts to GH, not single one. be careful at climbing..