Giter Club home page Giter Club logo

powertoys-run-currency-converter's Introduction

Currency Converter

PowerToys Run plugin which will convert real and crypto currencies.

Screenshot

Usage

$$ 100 inr to usd

Changing / Removing prefix

You can change the $$ prefix from the settings page. To use this plugin without any prefix just check the "Include in global result" checkbox. With that option checked, you can use this plugin without any prefix like

1 eur to usd

Screenshot

Crypto and other currencies

This plugin also converters real currencies to crypto currencies and vice versa. Refer here for the full list of available conversions.

Example Usage:

$$ 1 btc to usd

Screenshot

Quick Conversions

You can swiftly convert from your local currency to another currency simply by typing the number. The settings allow you to change both the local and all other currencies.

$$ 102.2

Screenshot

Output formatting and precision

The plugin supports two modes of output:

  1. Short Text: The output will only contain the target currency.
  2. Full Text: The output will contain both the source and target currencies.

You can adjust the precision value in the settings. This will determine the number of decimal points to be displayed. The plugin outputs values using dynamic precision. This means that if a value is less than 1, the number of non-zero decimals displayed will be exactly as specified in the settings.

Screenshot

Mathematical Calculations

You can input mathematical expressions, and the plugin will evaluate them using the BODMAS rule. The permitted operations are + (addition), - (subtraction), * (multiplication), and / (division). The use of brackets is also supported.

Screenshot

Installation

  1. Download the latest release of the Currency Converter from the releases page.
  2. Extract the zip file's contents to your PowerToys modules directory (usually %LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins).
  3. Restart PowerToys.

Conversion API

This plugin internally uses Currency API for the latest conversion rates.

powertoys-run-currency-converter's People

Contributors

advaith3600 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

powertoys-run-currency-converter's Issues

On-the-fly Convertion Direction invertion

Most of the time, I'm happy with the Quick Convertion Direction setting I set, but sometimes, I want it the other way around. It's a hassle to go into the PowerToys settings to change it, only to have to change it back once I'm done with my search.

I'd love being able to invert the convertion direction on-the-fly. I'm not 100% sure what the most intuitive way to use it is, but my suggestion is to precede your number amount with a minus(-) sign.

So say that my normal Quick Convertion Direction would be set to 'From local to global' and my local currency is EUR and global is USD, doing a normal search like: "$ 100" would give me a currency conversion of EUR to USD. When I would do a search like this: "$ -100" would give me a currency conversion of USD to EUR.

Hope this makes sense, love the latest update, this is already the best currency converter I've used.

Quick conversion is confusing when I've added an 'extra currency'

Assuming the intent of converting something quickly is to convert from a home curency (SGD in this example) to other currencies (USD, EUR in this example):
It gets confusing when I see 13.77 EUR and 18.63 EUR. I need to spend a minute or more to see which direction and what amount is being converted.

MacOS does it well: https://techstacker.com/static/1785b23e59320ecd54efe14e0880a579/bfdc0/mac-spotlight-search-currency-conversion.png

Current UI (ignore the red box):
Untitled

Display both directions for quick conversions

It would be convenient to get both directions when using the quick conversions.

Example:
image

The Quick Conversion Direction setting could be used to select which direction to display first.

Failed to load plugin

Hi!

After installing the plugin and restarting PowerToys I get this error:

Message: Can't create instance for <Currency Converter> in C:\Users\<user>\AppData\Local\Microsoft\PowerToys\PowerToys Run\Plugins\currency-converter\PowerToysRunCurrencyConverter.dll

Exception full name  : System.Reflection.TargetInvocationException
Exception message    : Exception has been thrown by the target of an invocation.
Exception stack trace:
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
   at Wox.Plugin.PluginPair.CreatePluginInstance()
Exception source     : System.Private.CoreLib
Exception target site: System.Object CreateInstanceDefaultCtor(Boolean, Boolean)
Exception HResult    : -2146232828

Exception full name  : System.ArgumentException
Exception message    : Customized cultures cannot be passed by LCID, only by name. (Parameter 'culture')
Exception stack trace:
   at System.Globalization.RegionInfo..ctor(Int32 culture)
   at PowerToysRunCurrencyConverter.Main..ctor() in C:\Users\advai\AppData\Local\Microsoft\PowerToys\PowerToys Run\Plugins\PowerToysRunCurrencyConverter\PowerToysRunCurrencyConverter\Main.cs:line 24
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
Exception source     : System.Private.CoreLib
Exception target site: Void .ctor(Int32)
Exception HResult    : -2147024809

Comma Ignored in Currency Conversion

When entering a currency amount with a comma (e.g., $35,00 USD), the conversion tool ignores the comma, leading to incorrect results.

image
image

windows 11 Version 23H2 (OS Build 22631.3527)
sys language: eng, installation lang: ukrainian

Files in the release zip archive

Some files in the release zip archive, currency-converter.zip v1.0.1, is unnecessary:

  • PowerToys.Common.UI.dll
  • PowerToys.ManagedCommon.dll
  • PowerToys.Settings.UI.Lib.dll
  • Wox.Infrastructure.dll
  • Wox.Plugin.dll

"Invalid expression provided"

I would like to use the plugin with "Include in global result" enabled, but the plugin very often outputs the "Invalid expression provided (Please check your mathematical expression)" list item, which I don't want to see.

image

Ideally there should be a setting to either suppress this message. I don't want the plugin nagging me that unrelated input is not something it can convert.

Custom aliases + more currencyies

Hi, would it be possible to add the following things?

  • Load "currencies.json" from a local file. It can just be inside the plugin folder
  • Support aliases. I keep typing EURO or EU and always forget it's EUR. Would be nice if I could add my own aliase to some of the currencies. Or maybe just support fuzzy search on the current ones.

Thanks!

Theme issue with PowerToys run after installing the plugin

After installing the plugin, the theme is a little different than it used to be.

Before installing plugin:
image

After installing plugin:
image

Notice the background/theme/color scheme of the search result or whatever it is called.

While it is not a big problem in itself, but I'd like it if the theme or the colors are not changed

I don't have a good knowledge about C# or .NET but upon looking the code, couldn't find a reason why this is happening. I thought of building one myself having this plugin as a reference but since I couldn't find why this is happening, I didn't proceed further

I'd like if this issue is fixed and released because this is really useful and handy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.