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

Selection #21

Closed
stefnotch opened this issue Nov 14, 2022 · 7 comments
Closed

Selection #21

stefnotch opened this issue Nov 14, 2022 · 7 comments
Labels

Comments

@stefnotch
Copy link
Owner

stefnotch commented Nov 14, 2022

Hold down and drag to select more stuff. How exactly should it work with nested elements?

I think I prefer the variant where carets are turned into ranges. A range is simply a start caret and an end caret. They don't have to be in the same row.

@stefnotch
Copy link
Owner Author

When something is selected, certain insert commands should attempt to wrap the selection. Like "select something" and then hit ( or "

@stefnotch
Copy link
Owner Author

stefnotch commented Jan 1, 2023

To investigate

  • Selecting + removing
  • Selecting + copying
  • Selecting + cutting
  • Selecting + inserting (aka replacing)

e.g.

$$ a+\sqrt{b+\sqrt{c^2}} $$

image

$$ \frac{a}{b}+\frac{c}{d} $$

image

@stefnotch
Copy link
Owner Author

When selecting this range
image

should it actually select that range^ or should it select according to brackets v
image

@stefnotch
Copy link
Owner Author

Seems like selecting according to mathlayout is the reasonable option. Start somewhere, end somewhere else, and then select their shared row.
So, those are valid selections
image
image

@stefnotch stefnotch moved this from Planned to Doing in MathML Editor Jan 6, 2023
@github-project-automation github-project-automation bot moved this from Doing to Done in MathML Editor Jan 6, 2023
@stefnotch
Copy link
Owner Author

The table doesn't need ranges for selecting its cells. Instead it's a lot of individual row-selections!
Think: File list. You can drag-select and then unselect one file that you don't like.
Excel works the same way.

@stefnotch
Copy link
Owner Author

stefnotch commented Feb 8, 2023

One can choose whether text deserves its own type of row and its own type of context, or whether it's just symbols with "quotes".

The symbols with quotes around them design isn't half bad.

  • it forces you to only write text that's actually semantically useful. As in, text that's only an explanation absolutely belongs in the "annotations tree" and not in the math layout one.
  • rendering is different: we have to do the parsing and custom rendering anyways
  • shortcuts are different
  • it makes writing formal grammars rather nice, because writing $A -> "a" A | "a"$ gets handled naturally
  • "write some text, select it, put it in quotes => string"
  • /Copium , because I definitely didn't try making it its own type of row and failed

@stefnotch stefnotch reopened this Feb 8, 2023
@stefnotch
Copy link
Owner Author

Remember ctrl+d? Vscode actually has multiple selections!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

1 participant