-
Notifications
You must be signed in to change notification settings - Fork 325
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
Feature request: {
auto closing
#421
Comments
$$
auto enclose
Sure! I prefer the hotkey, too. One thing more, we should not insert whitespace when user press ctrl + m twice, otherwise we will get warning from markdownlint once enter a newline. |
We can add a third case
on third press |
I don't get the point. The math completion also works inside As for the |
Sorry for making it confusing.
I meant that if I type a opening $, I have to type another closing $ before
I can get auto complement. So auto closing the $ will help save time a lot.
…On Tue, Apr 23, 2019, 7:53 PM Yu Zhang ***@***.***> wrote:
we should auto-close $ because auto complement of KaTeX is only supported
in text surrounded by $$.
I don't get the point. The math completion also works inside $...$ 😳
------------------------------
As for the { thing, we can do it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#421 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4YPBDQGIEVE6SCOONNEVDPR32FBANCNFSM4HGJAKWA>
.
|
I understand. For But for So that is why we have the hotkey |
Very reasonably. I remembered that when I used Microsoft Word to edit formulas. There were many symbols that couldn't be typed by the keyboard, so I set up a lot of shortcuts, which I used very familiarly and could be typed very quickly. |
Another proposal, we can add some shortcut for quick surround current math code block with |
Thanks for the suggestion. I also have some custom snippets (with keybindings). For your case, it can be {
"key": "ctrl+whatever",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "\\begin{aligned}\n$TM_SELECTED_TEXT$1\\end{aligned}"
},
"when": "editorTextFocus && editorLangId == markdown"
}, However, as a Markdown extension, I guess this might be too special a feature. Let's see whether there are other people also want this.
|
Thanks, I will try it. I have another suggestion, you can see that the auto complement is always the same order and the user may press arrow down several times to get the complementation he/she needs. As far as I can see, Eclipse IDE will change the complete order according to users' previous input, I think this is a good feature to be added. |
If I am free, I should try to make these possible. But I am also quite busy right now, someday will come a PR! |
👍 VSCode seems to be able to auto reorder the completions. It does work for TypeScript. Maybe there are some options for the extension authors. I will have a look in this weekend. |
About snippets for math, maybe we can consult LaTeXWorkshop's snippets. |
Need to set |
{
auto closing
Let's sort out this one by one, for |
Sorry, I don't get the point. What feature would you like to implement? For example, the current behaviour can be described as: My previous idea is to add another state
between Could you elaborate your expected behaviour like this? |
I finally used ctrl+shift+m to toggle displayed math. |
Let us discuss it in a PR. |
Keeping the plugin simple is a better idea, let me simply close this issue, for the |
What is the problem?
It would be nice if the
{
is a js file was$
in an md file in the screenshot below:How can I reproduce it?
Enter
$
in an md file.Is there any error message in the console?
The text was updated successfully, but these errors were encountered: