Giter Site home page Giter Site logo

Comments (9)

lances101 avatar lances101 commented on May 20, 2024

hey there, @Sobak
I like your idea. I think this could be added as a option that can be toggled in the Settings tab. That way the user adapts it to his own needs.

from wox.plugin.switcheroo.

Sobak avatar Sobak commented on May 20, 2024

That would be absolutely great

from wox.plugin.switcheroo.

Sobak avatar Sobak commented on May 20, 2024

I found another issue with a current behavior. My scenario: I had Opera Browser opened and wanted to "teach" Wox to prefer switching to its window over opening new (actually, a new tab, but it's irrelevant). I typed "opera", "oper", "op", selected Opera result from Switcheroo and repeated until its weight was inreased enough. It worked, great.

But here comes the problem: I had Facebook tab opened so for Wox, the title was "Facebook - Opera". Then I switched current tab to something else, let it be "Foobar - Opera" and it has default weight again. I fully understand it - "Facebook - Opera" is different result than "Foobar - Opera", but maybe flipping title with description, as I suggested, would solve this issue as well?

from wox.plugin.switcheroo.

lances101 avatar lances101 commented on May 20, 2024

This plugin does not weight the results, they are weighted by Wox. And as far as I'm aware (this should be checked though), Wox weights it based on the score of the Fuzzy Matcher + how often a specific result is chosen. I could force a recalculation of the score to match how the results arrive from Switcheroo itself.

Totally offtopic
I have considered ditching Switcheroo (the core functionality) for half a year now. At this point it has not been updated for a year. I was planning to remake the plugin to target GoToWindow which has tab support for applications via plugins, but it has been also silent for 7 months now ☚ī¸ Seems like launchers and the like are not that popular on Windows or something, idk. If you know of a similar project I would take a look into taking their core functionality and developing a plugin for Wox with that.

from wox.plugin.switcheroo.

Sobak avatar Sobak commented on May 20, 2024

Sure, I know that the core is responsible for weighting. I suppose, however, that each result is identified by the title, not the description. If I'm right, then "Facebook - Opera" and "Foobar - Opera" would have the same title of "opera" (application name) and their respective descriptions. Then they would be considered same result and weighting should work as expected.

I might be wrong, though, so I'll try to Read The F... Source and come up with more useful thoughts.

PS: I would also suppose launchers to be more popular on Windows - I might be biased but for me it's not "geek-only" kind of workflow. It's just convenient and has big potential.

from wox.plugin.switcheroo.

lances101 avatar lances101 commented on May 20, 2024

Sorry I cannot be more helpful right now. I will have more time to look into it during the weekend.

from wox.plugin.switcheroo.

lances101 avatar lances101 commented on May 20, 2024

Just updated Switcheroo to 1.0.8. Added two new options:

  • an option to display applications first and the rest of the title last. Instead of "Github.com - Google Chrome" you will get "Google Chrome - Github.com"
  • an option to swap the title and subtitle places

@Sobak please report back once you have updated the Switcheroo plugin. You can do so by typing wpm install Switcheroo into Wox

from wox.plugin.switcheroo.

lances101 avatar lances101 commented on May 20, 2024

@Sobak regarding your comment about the weighting system... For each page it will be different. I believe Wox stores the weight for specific results. Again, this can be changed by some extra weighting.

**Edit:**About that "extra" weighting... I think I could just nuke it completely and make all of them return the same score for it. I will now test what Switcheroo actually returns.

Edit 2: right now its is not possible to pass unweighted results to Wox. Whatever I do, the MainViewModel will always add the frequency score. This can be seen here: Wox\ViewModel\MainViewModel.cs, Lines 614-624

This requires a change to Wox's Plugin class, which is the most untouchable thing we have due to it being used to by plugin developers. It would require some discussion and considerations, which is even more complicated at this point because @happlebao has been missing/busy for quite some time now.

from wox.plugin.switcheroo.

lances101 avatar lances101 commented on May 20, 2024

App name swap is already implemented. Closing this up. As for the weighting, if it's still relevant for the current version of Wox, please create a new issue.

from wox.plugin.switcheroo.

Related Issues (17)

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.