brackets-emmet icon indicating copy to clipboard operation
brackets-emmet copied to clipboard

Connect Expand Abbreviation with Evaluate Math Expression

Open Miodec opened this issue 9 years ago • 4 comments

Is it possible? It would be very nice to have that one shortcut less.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24210376-connect-expand-abbreviation-with-evaluate-math-expression?utm_campaign=plugin&utm_content=tracker%2F311111&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F311111&utm_medium=issues&utm_source=github).

Miodec avatar Jul 12 '15 21:07 Miodec

I think it’s better to provide example of what you want and how you want to use it

sergeche avatar Jul 12 '15 22:07 sergeche

What i mean - keep the standard "Tab to expand abbreviation" and also if there is a math equation next to the cursor its going to use the Evaluate Math funcion.

Write "div" press Tab = '

'. Write 10/2, press Tab = 5".

Miodec avatar Jul 12 '15 22:07 Miodec

I’ll think about it. There might be collisions with desired action calls

sergeche avatar Jul 12 '15 22:07 sergeche

Maybe make it so if there is a '=' sign then always use the math function?

5/2= tab 2.5

Miodec avatar Jul 12 '15 22:07 Miodec