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

Less intrusive volumecontrol suggestions #2

Merged
merged 2 commits into from
May 18, 2019
Merged

Less intrusive volumecontrol suggestions #2

merged 2 commits into from
May 18, 2019

Conversation

DrorHarari
Copy link
Contributor

VolumeControl is very useful but its capturing of any number I type in the launch box take over higher priority items (it offers volume set suggestion for any text that has numbers in it). I am proposing a change that will add set volume suggestion only if launch text starts with any non-empty prefix of "volume" followed by a number. From the user perspective, instead of typing 30 to set volume at 30%, they would need to type something like v30. Typing vs17 (for Visual Studio 2017) would no longer suggest setting volume to 17%...

Comments:

  1. I moved the regex to be precompiled otherwise it gets re-compiled a lot.
  2. There may be more elegant way to match "volume" prefixes but I did not find it.

Propsed a change that will add set volume suggesion only if launch text starts with any non-empty prefix of "volume" followed by a number
@Fuhrmann Fuhrmann merged commit b209d9e into Fuhrmann:master May 18, 2019
@Fuhrmann
Copy link
Owner

Great suggestions. Thanks!

@DrorHarari
Copy link
Contributor Author

Awesome, thank!

@DrorHarari
Copy link
Contributor Author

Ricardo, are you going to push a new release? I have deleted my fork and am eagerly waiting PackageControl to bring me the latest and greatest...

Thanks,

/d

@Fuhrmann
Copy link
Owner

Sorry about that, I had to boot up my Windows installation.

Released! https://github.com/Fuhrmann/keypirinha-volumecontrol/releases/tag/1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants