Page 1 of 2
Auto casing?
Posted: 17.04.2018 13:35
by ilengyel
Is it possible to auto case certain keywords? For example, if you type
the lexer or editor changes the text to
Posted: 17.04.2018 14:52
by kvichans
Why you tell only about "case"?
Autoreplaces are better. In CudaText see "snippets"
Posted: 17.04.2018 23:30
by ilengyel
Thanks, this will be good for common keywords. I was hoping to also use this for a set of well known identifiers, but I would like to avoid to create a snippet for each (counted in the 100s). Maybe there is a way to have a function list/intellisense for these and any others deemed to be function identifiers?
Posted: 18.04.2018 00:20
by ilengyel
To answer my own question, I have discovered the SynWrite help which has a topic on Auto-completion and "Auto-Correction of Id Case"... I will see if this applies to cudatext too.
Posted: 19.04.2018 09:30
by kvichans
Your wish is good. But i still think replacements are better then only cases.
Need will append to snippet plugin simple list
Code: Select all
word1 replacement1
word2 replacement2
...
After then you will can write a file
and will be able to write "for", click Tab and see "FOR".
Is it solve you problem?
Posted: 20.04.2018 19:21
by Alexey
It's solved via Snippets plugin now. plugin supports .cuda-snips files [in folder data/snippets] in format shown above.
But user needs to press Tab after snip name.
W/o pressing Tab not solved.
Posted: 21.04.2018 15:23
by Alexey
@topic starter
Pls make snippet file in .cuda-snips format
It's described here
http://wiki.freepascal.org/CudaText#For ... ppet_files
Later will be plugin Auto Replace, which will use same snippets for autoreplace w/o tab-key.
Can you help with other snippets for other lexers?
Posted: 30.04.2018 19:48
by Alexey
No feedback, so postponed making the plugin, not easy.
Posted: 02.05.2018 07:07
by ilengyel
Sorry with late reply, I ended up going with SynWrite since the function hint, parameter list and autocasing gave the full experience I wanted. The only improvement to that I could see is adding support for individual parameter hints as the function args is typed out.
Posted: 01.08.2018 00:03
by captbill
Hi Alexey,
I would also be interested in this feature. Oberon and Lola-2 have case-sensitive keywords.