extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Built-in calculator

Open krstp opened this issue 2 years ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the feature

Would be great if ZED had build in calculator, which upon keyboard shortcut press or CMD+SHIFT+P -> Calculate would evaluate typed arithmetic and yield expected result. See below mockup for details.

If applicable, add mockups / screenshots to help present your vision of the feature

Sample code such as:

2+2

after pushing some keyboard shortcut or CMD+SHIFT+P would result in Calculate search.

The results should revaluate the above summation, yielding result, such as:

2+2=4

See screenshot Screenshot 2023-11-03 at 4 07 41 PM for details:

krstp avatar Nov 03 '23 21:11 krstp

On MacOS you can already do that in Spotlight. Wasn't sure if you're aware of that, hope it helps.

typeofweb avatar Nov 12 '23 00:11 typeofweb

I well am, nonetheless, I still would love to see such feature within the editor. On the side note: I wish anybody the best of luck handling multiple lines in Spotlight 😉 - if you know what I mean 😉

krstp avatar Nov 14 '23 14:11 krstp

@krstp This might be of interest to you. https://numi.app/

Otterpocket avatar Nov 14 '23 16:11 Otterpocket

Something line Sublime arithmetic would be great

dangh avatar Nov 21 '23 05:11 dangh

Something line Sublime arithmetic would be great

Issue, for reference:

  • https://github.com/zed-industries/extensions/issues/510

JosephTLyons avatar Apr 12 '24 17:04 JosephTLyons