question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Add option to revert to command mode

See original GitHub issue

Edit

I have since learned (https://github.com/arnog/mathlive/issues/915#issuecomment-826382433) that this is intended and is due to the new Latex Mode feature. However it would then be nice to have an option to revert to command mode or disable it completely. This is because in my app pressing enter is regarded as submission making leaving Latex Mode once entered difficult.

Description

When typing the latex for a latex symbol ie. \neg, \cup, or others tab completion of these symbols does not appear to work anymore.

Codesandbox: https://codesandbox.io/s/brave-lewin-5hvg2?file=/index.html

Steps to Reproduce

  1. Open the above Codesandbox
  2. Attempt to type a latex symbox ie. \cap
  3. Attempt to complete the symbol using tab

Actual Behavior

When pressing tab nothing happens and it appears to stay in its latex symbol completion state.

Expected Behavior

The symbol is substituted in and normal typing can be proceeded.

This regression began with 0.60.0 as going to 0.59.0 produces the expected functionality.

Environment

MathLive version 0.63.0 however issue began in 0.60.0

Operating System Arch Linux

Browser Firefox

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
stefnotchcommented, May 29, 2021

This is because in my app pressing enter is regarded as submission making leaving Latex Mode once entered difficult.

Would it be possible for you to use the onCommit hook instead of listening for the enter event? (Or preventing enter events in the mathfield from bubbling up and using the onCommit hook for mathfields. The rest of the app can still use enter)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Revert changes - GitLab Docs
When you revert a commit in Git, you create a new commit that reverses all ... The option to Revert is no longer...
Read more >
git-revert Documentation - Git
Given one or more existing commits, revert the changes that the related patches introduce, and record some new commits that record them.
Read more >
Git Revert | Atlassian Git Tutorial
The git revert command is a forward-moving undo operation that offers a safe method of undoing changes. Instead of deleting or orphaning commits...
Read more >
Feature Requests - RemNote
I request the team to add a feature for creating(and ability to change) shortcut for Toggles. The toggle nearest to cursor shall be...
Read more >
Changing the stage of a pull request - GitHub Docs
Who can use this feature. People with write permissions to a repository and pull request authors can change the stage of a pull...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found