Comments (12)
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 presso
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
andw
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.
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.
to elaborate a bit more on the current search result sorting of 'o' key
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.
The image is broken on my computer? Could you post it again?
from vimium-c.
hit 'o' -> type "youtube sub"
from vimium-c.
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.
As long as it bring more customizable options to the table, I am all for it 👍
from vimium-c.
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.
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.
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.
: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.
So is the ":B" broken? Or do you need higher scores for bookmarks?
from vimium-c.
Related Issues (20)
- add icon to disable vimium on websites HOT 1
- move the / "text search field" to the left HOT 1
- 请问禁止map 开头为数字和"-"是为什么? HOT 1
- The character 'ç' does not work with LinkHints HOT 2
- 如何在编辑输入时做自定义快捷键映射? HOT 2
- 关于自定义界面样式设置、皮肤设置问题 HOT 4
- Add firefox for android support HOT 1
- Vim mode for <input>
- Option for setting default color mode in settings (dark / light) HOT 2
- openUrl doesn't work as expected for chrome urls HOT 2
- How to select all search results matching a regular expression HOT 1
- Movement bug of key "zero" in visual mode. 19 j works, but 20j works as j because 0 cancels 2 and j works singly HOT 2
- 可不可以增加一个退出 编辑模式的 按键, Add another key to mimic [ESC] function HOT 5
- Pressing ‘O’ to open reddit research results in new tab also opens link in current tab
- First custom search engine not working HOT 2
- [chrome][wayland] linkhint render issues HOT 2
- x should't close pinned tabs HOT 2
- Link hint values change on page load HOT 2
- How to avoid closing tab on `Ctrl+W` HOT 2
- Integration with ff2mpv HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimium-c.