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

Pressing backspace shouldn't (always?) delete the whole widget #11

Open
Azeirah opened this issue Jun 16, 2015 · 3 comments
Open

Pressing backspace shouldn't (always?) delete the whole widget #11

Azeirah opened this issue Jun 16, 2015 · 3 comments

Comments

@Azeirah
Copy link
Contributor

Azeirah commented Jun 16, 2015

Right now, widgets are completely removed when they get backspaced. This isn't desired behavior for several types of widgets.

Consider for example a widget that turns a var a = 3; statement into a §a = 3; statement (see Experiments in Code Typography)

Pressing backspace while beside the § shouldn't remove it, it should remove the last character that was part of the widget ...§a = 3;->vara = 3;

There are some cases where this is desirable behavior. So this should probably be implemented as an option for widgets.

@pdubroy
Copy link
Collaborator

pdubroy commented Jun 22, 2015

Yeah, this is one of the big open questions in the design right now. How should editing work at the edges of (and within) widgets?

One behaviour I'd like to try is for the source code to appear when the cursor is on or near the widget. Here's a prototype I made for Markdown:

markdown-demo

It would be cool to see if we could implement this in a generic way in Moonchild.

@Azeirah
Copy link
Contributor Author

Azeirah commented Jul 2, 2015

Yeah, that looks promising. Is that prototype implemented in Moonchild or as a separate demo? Can I try it out somewhere?

@pdubroy
Copy link
Collaborator

pdubroy commented Jul 20, 2015

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

No branches or pull requests

2 participants