On Thu, Sep 24, 2020 at 9:03 AM <[email protected]> wrote:

> Yes, I believe it would :-)
>
> There still might be an issue with name collisions since @sql isn't
> directly a mode (i.e. tsql)
> and creating a directive for every mode obviously wouldn't be ideal either
> -
> but maybe a shorthand/mapping could be defined in the document Startup
> section?
> i.e. to map a local directive @sql (arbitrary) to a specific mode
> assignment, like tsql.
>
> I could also deal with buttons to assign/remove attributes but I'd need to
> be able to view them.
> The attributes plugin has still been on my list to try but haven't had
> time to dive into it yet.
>
> I understand these could also impact things like VR3 so I'm not quite sure
> how that would factor in.
> As it is, I already have to define in a comment, `-- language=sql`, for
> pycharm to nest syntaxes,
> so aligning with this could work too.
>

These are all reasonable approaches. You can define @button script any way
you like.

Let me know if you would benefit from Leo's core. BTW, you can probably use
@language sql even though Leo doesn't support it.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS1AZ4-pqFgiBW62vXApONNzHybAdFQEEkM1o4G9S%2BsrRw%40mail.gmail.com.

Reply via email to