Git Product home page Git Product logo

Comments (12)

gdh1995 avatar gdh1995 commented on August 16, 2024

Firstly, thanks.

TSLint

The TSLint has worked well for months, so why do you want to switch to ESLint? Um, the tslint.json is indeed trimmed a lot by myself. If you think some rules are better, fell free to post them up here.

Refactor

The code is indeed too complicated to read - this is designed on purpose, mainly for the JS-uglifier (terser) to trim code as much as possible, according to some pre-defined macros (Build.* and BuildStr.* in https://github.com/gdh1995/vimium-c/blob/master/types/build/index.d.ts). With this, the distribution packages for Chrome and Firefox are different, so they are smaller and a little faster than a generic one.

Therefore, when you want to get familiar with some code, please ignore those lines containing Build or BuildStr, and all other code has been well-typed.

Search result order

It's a new idea which I haven't seen in https://github.com/philc/vimium/issues. A work-around is:

  • map o Vomnibar.activate and press o in most cases
  • if you want only to search in bookmarks, input :b **** into the Vomnibar input box
  • a prefix of :b means to enter "bookm" mode, and there're also :o, :h, :t and w for "omni", "history", "tabs" and "currentWindowTabs" modes.

Or you may map another key to Vomnibar.activateBookmarksInNewTab, and use it most of the time. Then :o may help.

Testing

Well, it's a much heavier time killer. You see I'm busy (fixing bugs and) adding new features and details, and as a result there're quite a few long-term tasks in #13 (comment) which haven't started, including translating to Chinese and writing a wiki.

Although it's quite helpful to add tests, personally I think, a more urgent need is to write usage wiki for this tool. But as a typical programmer I also dislike writing documents by myself, so this task has been delayed and delayed.

If you or anyone else is interested in adding tests or wiki, I would very appreciate it. Currently I have just one suggestion about the tests code: wrap new code for testing (like exposing some inner objects) by if ( ! Build.NDEBUG ) {...}

from vimium-c.

sluongng avatar sluongng commented on August 16, 2024

Hi, thanks a ton for the response!

Here is why you should move from TSLint to ESLint palantir/tslint#4534 (its being deprecated)

I am remapping and using b key. But my idea is more like being able to incorporate multiple search results at the same time into the omnibar and prioritize them accordingly, perhaps even with Tabs to switch between search engines (similar to how you press double Shift (or cmd + shift + A) in IntelliJ

The idea came from firefox address bar where its actually multiple search sources and you can definitely customize it https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Frecency_algorithm

I am enjoying the extension.
Cheers

from vimium-c.

sluongng avatar sluongng commented on August 16, 2024

to elaborate a bit more on the current search result sorting of 'o' key

image

as you can see the desired result in this case is at the bottom of the list which mean you either have to shift+tab or tab multiple times

from vimium-c.

gdh1995 avatar gdh1995 commented on August 16, 2024

The image is broken on my computer? Could you post it again?

from vimium-c.

sluongng avatar sluongng commented on August 16, 2024

image

hit 'o' -> type "youtube sub"

from vimium-c.

gdh1995 avatar gdh1995 commented on August 16, 2024

So is it enough if I add a new mode of Vomnibar (named "bomni" or something else) to make the bookmark suggestions usually have higher scores? Then a map b Vomnibar.activate mode="bomni" will make b an entry for this mode.

from vimium-c.

sluongng avatar sluongng commented on August 16, 2024

As long as it bring more customizable options to the table, I am all for it 👍

from vimium-c.

gdh1995 avatar gdh1995 commented on August 16, 2024

You may have a try: vimium_c-1.75.7-fx.zip (this is compiled from a3fffe0) Too many bugs in this commit. I'm still trying to fix.

from vimium-c.

gdh1995 avatar gdh1995 commented on August 16, 2024

Vimium C 1.76.0 has been released on Firefox Add-ons, so you may have a try of the "bomni" mode.

from vimium-c.

sluongng avatar sluongng commented on August 16, 2024

Hey I am not too sure how to use the "bomni" mode?

I press 'o' to open Omnibar and the type ":B" (capitalized B) + space + but the bookmarked youtube subscription is still sorted lower vs the history youtube videos

Perhaps I didnt understand the commit a3fffe0 fully?

from vimium-c.

gdh1995 avatar gdh1995 commented on August 16, 2024

:B will make bookmarks have a fake visiting time of "5 minutes ago", so if you have opening videos in the past 5 minutes, or some of your history have shorter URLs / more word matches, these history may get a higher score.

If this category's not enough, I have few ideas about what is better.

from vimium-c.

gdh1995 avatar gdh1995 commented on August 16, 2024

So is the ":B" broken? Or do you need higher scores for bookmarks?

from vimium-c.

Related Issues (20)

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.