Calculator?

Have a suggestion for "Everything"? Please post it here.
Post Reply
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Calculator?

Post by flamboyant_entropy »

OK, this is a way out there request, but thought I'd throw it in. I'd love to be able to do the quickest calculation possible inside everything. It loads so fast from Ctrl + Space and is so part of my daily routine now, that would be sweet if I could type in something like "(9*4)/365" (or something that prefixes indicating a calculator like "#(9*4)/365" and I see a response right there somewhere. It would help me a lot! If something like this already exists.... please let me know :D
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Calculator?

Post by void »

Everything 1.5 will have /=

Type in the following search:

/=(9*4)/365.0

Press ENTER in the search box.



Expressions can be used on search functions that accept numbers.

For example:

size:1<<17
len:3*47
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Re: Calculator?

Post by flamboyant_entropy »

oh man that's awesome thank you.
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Re: Calculator?

Post by flamboyant_entropy »

Revisiting this old thread, been using this a lot and wondering if there was a way to keep the formula in the search bar (eg not replace it with the value when pressing ENTER) or keep it somewhere else visible?
therube
Posts: 5056
Joined: Thu Sep 03, 2009 6:48 pm

Re: Calculator?

Post by therube »

(The search term is stored in the dropdown history.)
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Re: Calculator?

Post by flamboyant_entropy »

Yep I know that but it requires some extra clicks and there's a visual potential for 'loss' given the dropdown has so much of the history. I understand I may be an outlier but thought it would be nice to have it be there, maybe even in the search box itself.
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Calculator?

Post by void »

Everything 1.5.0.1384a will now show the formula result in the window title bar.

For example:

/=1+2


will show 3 in the window title bar.
Pressing ENTER will change your search to:
3

(only works when the search starts with /)



The formula result is also shown without the starting /
For example:
=1+2
=> 3
=1<<17
=> 131072
=LEN("abc")
=> 3



The Preprocessor result is now also shown in the window title bar.
For example:
/shell:desktop

/[text:today:,"YYYY-MM-DD"]
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Re: Calculator?

Post by flamboyant_entropy »

Thank you for following up on this! I'm seeing an issue with fractional values, please see attached image
Attachments
Screenshot 2024-11-28 093715.png
Screenshot 2024-11-28 093715.png (7.09 KiB) Viewed 2038 times
meteorquake
Posts: 523
Joined: Thu Dec 15, 2016 9:44 pm

Re: Calculator?

Post by meteorquake »

Just to add to this that SlickRun which I use for most customised launches - one of those mnemonic launchers - does calculations by preceding by =

I'm sure there may also be other "always-on" programs that are similarly adept.

D
froggie
Posts: 302
Joined: Wed Jun 12, 2013 10:43 pm

Re: Calculator?

Post by froggie »

flamboyant_entropy wrote: Thu Nov 28, 2024 12:38 pm Thank you for following up on this! I'm seeing an issue with fractional values, please see attached image
Works with a leading zero after the operator: /=4/0.25
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Calculator?

Post by void »

Everything is expecting the leading zero.
Everything currently does not like numbers starting with .

Thank you for the issue report.
I will have this fixed in the next alpha update.
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Re: Calculator?

Post by flamboyant_entropy »

Awesome thank you all. I can see it works with leading 0 but as my use case is very quick calculations (like if I'm baking and want to make the recipe smaller by .8) adding zeros all the time can make the work longer.
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Re: Calculator?

Post by flamboyant_entropy »

meteorquake wrote: Thu Nov 28, 2024 3:21 pm Just to add to this that SlickRun which I use for most customised launches - one of those mnemonic launchers - does calculations by preceding by =

I'm sure there may also be other "always-on" programs that are similarly adept.

D
do you use Slickrun AND Everything together? seems a bit redundant to me but i would love to hear the use case.
meteorquake
Posts: 523
Joined: Thu Dec 15, 2016 9:44 pm

Re: Calculator?

Post by meteorquake »

Yes both, as they are completely different use cases.
SlickRun you can assign all manner of actions to a code, quite a lot of which are calling up Everything in a certain state suitable for some regular task.
I might for example have recently launched libreoffice writer which my code is lwriter. Since it auto completes as you type based on what you recently used I would simply type the letter l and hit enter. If I had used some other program beginning l then I'd have to type lw and hit enter. Tasks in practice are therefore invariably launched with 1,2 or sometimes 3 letters even if the mnemonic itself is much longer.
d
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Re: Calculator?

Post by flamboyant_entropy »

meteorquake wrote: Fri Nov 29, 2024 1:08 pm Yes both, as they are completely different use cases.
SlickRun you can assign all manner of actions to a code, quite a lot of which are calling up Everything in a certain state suitable for some regular task.
I might for example have recently launched libreoffice writer which my code is lwriter. Since it auto completes as you type based on what you recently used I would simply type the letter l and hit enter. If I had used some other program beginning l then I'd have to type lw and hit enter. Tasks in practice are therefore invariably launched with 1,2 or sometimes 3 letters even if the mnemonic itself is much longer.
d
ah I understand now! I use phrasexpress for what you describe but find it clunky. wonder if I should switch to slickrun
meteorquake
Posts: 523
Joined: Thu Dec 15, 2016 9:44 pm

Re: Calculator?

Post by meteorquake »

If it's clunky I'd give other options a try out. I've never looked back from SlickRun, I'm sure there may be others.
I have it set up so that it is small and mostly transparent permanently floating in the area I want it with date and time but when focussed into for typing (Win-N is my hotkey) becomes opaque with the date-time disappeared for the typing.
It can be made to hide behind everything else till focussed or sit over everything, both are good options if it's visually adjusted and sized an appropriate way.
d
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Calculator?

Post by NotNull »

Just a FYI:
On a Dutch Windows 11 (thousands separator = . (dot) and decimal separator = , (comma)) the following results are shown:
(extra spaces added for clarity)
=1.1 * 1 = 1,1
=1,1 * 1 = 1,1

=1.000,01 * 1 = 1,0,1
=1,000.01 * 1 = 1,0,01

=1.000,01 + 1 = 1,0,2
=1,000.01 + 1 = 1,1,01

And the obvious wrong ones:
=1.000.01 * 1 = 1,0.1
=1,000,01 * 1 = 1,0,1



So better leave the thousansd separator out ..
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Calculator?

Post by void »

Everything 1.5.0.1386a will now correctly handle
=4*.25
flamboyant_entropy
Posts: 13
Joined: Thu Sep 28, 2023 2:16 pm

Re: Calculator?

Post by flamboyant_entropy »

can confirm, much appreciated
Post Reply