emmetio / brackets-emmet

Emmet plugin for Brackets editor
http://emmet.io
MIT License
489 stars 188 forks source link

Connect Expand Abbreviation with Evaluate Math Expression #91

Open Miodec opened 9 years ago

Miodec commented 9 years ago

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).
sergeche commented 9 years ago

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

Miodec commented 9 years ago

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".

sergeche commented 9 years ago

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

Miodec commented 9 years ago

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

5/2= tab 2.5