Skip to content
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

[Run][Calculator Plugin] Calculator Expansion #4127

Open
SWinxy opened this issue Jun 5, 2020 · 6 comments
Open

[Run][Calculator Plugin] Calculator Expansion #4127

SWinxy opened this issue Jun 5, 2020 · 6 comments
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window Run-Plugin Things that relate with PowerToys Run's plugin interface

Comments

@SWinxy
Copy link

SWinxy commented Jun 5, 2020

Summary of the new feature/enhancement

Expand the calculator by implementing bit shifting, modulus operations, and bitwise operators like on macOS' Spotlight, as well as allowing an implicit multiplication when a number is next to a parenthesized number.

Proposed technical implementation details (optional)

Examples:

  • 5 << 4 * 2 = 1280
  • (24 >> 2) - 1 = 6
  • 5 % 3 = 2
  • 15 & 3 = 3
  • 26 | 5 = 31
  • 2(40) = 80
@Jay-o-Way
Copy link
Collaborator

This might be useful for people who are familiar with there operations, but can be very confusing for people who are not.

@saahmedm saahmedm added the Idea-Enhancement New feature or request on an existing product label Jun 9, 2020
@saahmedm saahmedm added this to the Suggested Enhancements milestone Jun 9, 2020
@saahmedm saahmedm added the Product-PowerToys Run Improved app launch PT Run (Win+R) Window label Jun 9, 2020
@androidSwDev099
Copy link

This might be useful for people who are familiar with there operations, but can be very confusing for people who are not.

Those who are not familiar with these operations can either learn about them or would not be trying to use them in the first place.

@crutkas crutkas added the Run-Plugin Things that relate with PowerToys Run's plugin interface label Aug 27, 2020
@crutkas
Copy link
Member

crutkas commented Dec 8, 2020

this work item may solve this: #2265 which will encompass microsoft/calculator#526

Need to validate what items it will enable.

@enricogior enricogior changed the title PowerToys Run Calculator Expansion [Run][Calculator Plugin] Calculator Expansion Jan 7, 2021
@Eagle3386
Copy link
Contributor

Since I find myself regularly typing =AxB instead of =A*B, may I ask to get x treated as an alias for *, i. e. =2x2 gets multiplied to 4 just as =2*2 already does?

@Cdddo
Copy link

Cdddo commented Feb 3, 2021

This might be useful for people who are familiar with there operations, but can be very confusing for people who are not.

Those who are not familiar with these operations can either learn about them or would not be trying to use them in the first place.

The better solution would be to have an option to "Enable advanced operators" or something like that.

@SWinxy
Copy link
Author

SWinxy commented Feb 4, 2021

The better solution would be to have an option to "Enable advanced operators" or something like that.

These operations won't interfere with anything (at least anything that I can think of). No other context would make sense for these characters. Plus, Spotlight had this for years. Why have an option when it really doesn't need one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-PowerToys Run Improved app launch PT Run (Win+R) Window Run-Plugin Things that relate with PowerToys Run's plugin interface
Projects
None yet
Development

No branches or pull requests

7 participants