SQL Editor #1418
-
Hi, I'm trying CogentCore for the first time with a precise idea. I'm trying around the editor widget, which is amazing by the way, but I was surprised that in the long list of supported fileinfo's types there was no SQL. Is there a way to support it ? Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hello, thank you for asking about this. It does look like SQL is missing from In the meantime, you can use texteditor.NewEditor(b).Buffer.SetFileExt("sql").SetString(`SELECT * FROM users`) |
Beta Was this translation helpful? Give feedback.
-
Thanks for your fast answer. This is working fine ! Just one last question about editors : There is a 1 second delay when creating a new line. Is there something I can do about it ? It's nearly perfect but this one second delay is kind of showing some kind of performance issues. Thanks a lot in advance. |
Beta Was this translation helpful? Give feedback.
-
Indeed, that fixed the issue ! Thanks a lot for your fast and clear answer. |
Beta Was this translation helpful? Give feedback.
Hello, thank you for asking about this. It does look like SQL is missing from
fileinfo.Known
, which is an oversight on our part. We will therefore add support for that soon. I filed #1419 for this.In the meantime, you can use
SetFileExt
as a workaround. Here is an example: