About Snippet_Panel snippets in file List.txt. i can publish them as is. but we can improve them - by converting snippets to VSCode format.
https://wiki.freepascal.org/CudaText_plugins
- this will allow to call snippets list only when foobar2000 lexer is active.
- this will allow to use tab-stops for func arguments.
- inserting by tab-key.
converting is not simple work. if you don't want it, i will agree.
foobar2000 - Mp3tag Title_formatting Lexer
Re: foobar2000 - Mp3tag Title_formatting Lexer
It's OK with me to convert it. But if it needs to be updated?
I have a couple more that i want to implement but now i don't have the time.
I have a couple more that i want to implement but now i don't have the time.
-
- Posts: 2236
- Joined: 25.08.2021 18:15
Re: foobar2000 - Mp3tag Title_formatting Lexer
> But if it needs to be updated?
Then you will edit the JSON file (VSCode format).
Then you will edit the JSON file (VSCode format).
Re: foobar2000 - Mp3tag Title_formatting Lexer
Ok then. Go for it, it will be much better for sure.
-
- Posts: 2236
- Joined: 25.08.2021 18:15
Re: foobar2000 - Mp3tag Title_formatting Lexer
but it is not my job to convert it. sorry for misunderstanding. only you can convert it.
Re: foobar2000 - Mp3tag Title_formatting Lexer
Ah! Ok sorry. But i don't think i will mess with it.
The problem is that i don't have the knowlage and as you told me is not an easy job.
Again sorry my fault.
The problem is that i don't have the knowlage and as you told me is not an easy job.
Again sorry my fault.
-
- Posts: 2236
- Joined: 25.08.2021 18:15
Re: foobar2000 - Mp3tag Title_formatting Lexer
Okay. As we don't have category in addons-manager for 'Snippet Panel snippets' I cannot publish this easily. maybe let's don't publish it, you can just put the note in the 1st post of this topic:
Zip file contains snippets for Snippet_Panel plugin. File List.txt must be copied to the folder [cudatext]/data/clips , then it can be called from the Snippet_Panel in the CudaText side panel.
Zip file contains snippets for Snippet_Panel plugin. File List.txt must be copied to the folder [cudatext]/data/clips , then it can be called from the Snippet_Panel in the CudaText side panel.
Re: foobar2000 - Mp3tag Title_formatting Lexer
OK. Done. Thank you.
I will give it a try to learn and convert it some time but i don't expect much.
I will give it a try to learn and convert it some time but i don't expect much.
-
- Posts: 2236
- Joined: 25.08.2021 18:15
Re: foobar2000 - Mp3tag Title_formatting Lexer
Are you available to requests to make some new lexers? not hard ones: Gleam, PureScript. Gleam is a good lang, several good editors have syntax for it, eg https://packagecontrol.io/packages/Gleam .
Re: foobar2000 - Mp3tag Title_formatting Lexer
Thanks for asking. But for the time being, i am very very sorry but i don't think i could do it.
As for converting snippets to VSCode format you've got me thinking into doing it,
but i have no clue.
Can you give me just one working starting example of say entering:
$add(a,b,...)
Or a link explaining how to do it for cudatext in detail with a simple (one or two items). The wiki link didn't help.
The snippet should work automatically or i have to choose it somehow?
I am trying to understand it, so is this a right start or am i doing it all wrong?
Thanks in advance.
As for converting snippets to VSCode format you've got me thinking into doing it,
but i have no clue.
Can you give me just one working starting example of say entering:
$add(a,b,...)
Or a link explaining how to do it for cudatext in detail with a simple (one or two items). The wiki link didn't help.
The snippet should work automatically or i have to choose it somehow?
I am trying to understand it, so is this a right start or am i doing it all wrong?
Thanks in advance.