Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C operator mode could consistently be applied to the text in the editor #916

Open
codemanyak opened this issue Jan 26, 2021 · 2 comments
Open

Comments

@codemanyak
Copy link
Collaborator

Issue #872 led to the introduction of a mere display switch (via menu toggle item and a toggle button in the toolbar). This was sound, easy to implement and free of risks. The syntax rules for the input remained the same.

In a way, we might try to extend this one-way conversion to a reversible one and

  1. allow to enter the text in C operator syntax in the editor (while the C operator mode is active), converting the text to Structorizer syntax on committing;
  2. fill the editor text field with the element text converted to C operator syntax (if C operator mode is active).

Originally posted by @codemanyak in #872 (comment)

@codemanyak
Copy link
Collaborator Author

codemanyak commented Jan 26, 2021

Combined assignment operators ( ++, --, +=, -=, *=, etc.) a user might enter are likely to cause major conversion problems, though.
So this is rather a long-term proposal, possibly to be postponed beyond the impementation of #800.

@codemanyak
Copy link
Collaborator Author

It should be mentioned that this enhancement tends to complicate the Content Assist introduced on behalf of #1066, and vice versa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant