Tuesday, June 25, 2019

Improving Your Chrome Browsing Productivity with Vimium



https://medium.com/@kevinpmcc/ditching-the-mouse-getting-started-with-vimium-chrome-extension-f45c61d6bc53
https://medium.com/@xnicox/10x-your-chrome-browsing-productivity-with-vimium-3ab733b0854a

https://gist.github.com/politicus/f7f13c493a46777fa08b

https://github.com/philc/vimium
  • map key command: Maps a key to a Vimium command. Overrides Chrome's default behavior (if any).
  • unmap key: Unmaps a key and restores Chrome's default behavior (if any).
  • unmapAll: Unmaps all bindings. This is useful if you want to completely wipe Vimium's defaults and start from scratch with your own setup.

https://superuser.com/questions/692960/how-to-disable-auto-input-focus-in-vimium
There's an option called "Don't let pages steal the focus on load" in the advanced options that should do this.

https://github.com/philc/vimium/wiki/Disabling-Vimium
If the list of excluded keys is empty, then Vimium is wholly disabled; for example:
Then p/P. (p is to paste the current string in clipboard to do a navigation if is an URL, otherwise do a search using the configured search engine. Uppercase P is to paste in a new tab)

https://github.com/philc/vimium/issues/3035
  • type v
  • type / to search for the email
  • select the email using w or something like that
  • hit y to yank the text
Exiting visual mode:
Esc - just exit visual mode
y - yank the selected text to the clipboard
p/P - send the selected text to the default search engine
https://github.com/philc/vimium/wiki/Tips-and-Tricks
map R reload hard
map X createTab http://www.bbc.com/news
map X createTab window
map X createTab incognito
map X createTab window http://www.bbc.com/news https://twitter.com/
map d scrollDown count=5
With such a mapping (and with smooth scrolling), d-and-hold gives a faster scroll than j-and-hold.
The following open multiple links in new tabs, switching to each as it is created:
map qf LinkHints.activateModeToOpenInNewForegroundTab count=999999

https://medium.com/productivity-freak/avoiding-productivity-mousetraps-177d80fa533b

Bookmarks search ( Shortcut : B)

https://github.com/philc/vimium/issues/502
Have you tried enabling the "Allow access to file URLs" checkbox in the Options -> Extensions list?
However be noted that PDF pages will still not work since PDF viewer itself is sort of an extension, and Chrome doesn't allow extensions running on extensions.

  • j/k: Scroll down/up
  • h/l: Scroll right/left
  • gg (in succession): Jump back to the top of a page
  • G (note the capital): Jump to the bottom of a page
  • d/u: Scroll a half page down/up
  • J/K: Switch tabs left/right
  • /: Enter "find" mode (type in search terms to instantly jump to them)
  • n/N: Jump forward/back between occurrences of search term (after pressing "/")
  • yy: Copy the current page's URL to your clipboard.
https://github.com/philc/vimium/wiki/Visual-Mode
  • use v to enter visual mode
  • use V to enter visual line mode
  • Visual mode implements a number of vim-like movements, jkhlweb, etc. Counts are also supported, for example 3e.
Caret mode is used for changing the starting point for selecting text on the page
  • use c to enter caret mode from visual mode (or v followed by c from normal mode)
  • If there is no existing selection when entering visual mode, then Vimium first enters caret mode. In caret mode, you can position the caret before entering visual-mode proper with v.
  • v and c can be used to move back and forward between visual and caret modes.
Exiting visual mode:
Esc - just exit visual mode
  • y - yank the selected text to the clipboard
  • p/P - send the selected text to the default search engine

  • In visual mode, o swaps the anchor and the focus, so you can also move the "other end" of the selection.
  • A good way to find the starting point for your selection is to to use Find mode to jump to your desired starting location on the page.
https://github.com/philc/vimium/wiki/Find-Mode
To search, first press / then the search expression followed by <Enter>. You can alternate between the matches by typing n to go forward and <Shift-n> to go back.
  • Find queries are global and persistent -- if you search for 'test' in one tab, pressing n on any other tab will search for 'test' as well.
  • If your search matches the contents of an input whose contents you wish to modify, press <Esc> to enter insert mode and begin editing.
  • Find queries have a history. Use <Up> and <Down> to re-use previous queries.

  • Case-sensitivity and RegExps
  • Find mode uses smartcase -- it defaults to a case-insensitive search if you use only lower-case characters, but switches to case-sensitive mode upon detecting upper-case letters. Hence /test is case-insensitive, and /Test is case-sensitive.
  • The \r escape sequence ensures that the search string gets treated like a Javascript regular expression, so /t.st\r matches 'test', 'tast', 'tost', etc.
  • Case-sensitivity behaves the same way for regular expressions -- /t.st\r will match 'TosT', but /t.st\r\I will only match 'tast', 'tost', etc.
  • Blackslashes themselves can be escaped, so /test\\ will match 'test\'.
https://github.com/philc/vimium/issues/591


https://github.com/philc/vimium/issues/508
`gi` + <Tab> to move through input boxes

https://github.com/philc/vimium/issues/2149
Alt/meta key no longer workingSeems like if I map π (the character that's entered when I press <a-p> on a Mac) to togglePinTab, it works again.

unmap <a-p>
map <a-π> togglePinTab
map <a-ƒ> LinkHints.activateModeWithQueue
https://github.com/philc/vimium/issues/2161
unmap <a-p>
map π togglePinTap

https://github.com/philc/vimium/issues/2402
Add count prefix before hitting f/F.
For example, 3 then F allows you to open three links in new tabs at once.
Alternatively you can use Alt+f to open indefinite links in new tabs, but you have to manually cancel with Esc (or any key sans Space that is not in your preferred link hint characters list in the Vimium settings) in this mode.

https://webapps.stackexchange.com/questions/100869/keyboard-shortcut-to-close-the-ads-on-youtube
  • The keyboard shortcut to skip the ad at the beginning of a video is Tab and then Enter.
  • There is no keyboard shortcut to skip ads in the middle of the video.
https://greasyfork.org/en/scripts/37654-popup-blocker-script

Vimium

Go the the Vimium options page.

Click Show cr commands.


Labels

Review (572) System Design (334) System Design - Review (198) Java (189) Coding (75) Interview-System Design (65) Interview (63) Book Notes (59) Coding - Review (59) to-do (45) Linux (43) Knowledge (39) Interview-Java (35) Knowledge - Review (32) Database (31) Design Patterns (31) Big Data (29) Product Architecture (28) MultiThread (27) Soft Skills (27) Concurrency (26) Cracking Code Interview (26) Miscs (25) Distributed (24) OOD Design (24) Google (23) Career (22) Interview - Review (21) Java - Code (21) Operating System (21) Interview Q&A (20) System Design - Practice (20) Tips (19) Algorithm (17) Company - Facebook (17) Security (17) How to Ace Interview (16) Brain Teaser (14) Linux - Shell (14) Redis (14) Testing (14) Tools (14) Code Quality (13) Search (13) Spark (13) Spring (13) Company - LinkedIn (12) How to (12) Interview-Database (12) Interview-Operating System (12) Solr (12) Architecture Principles (11) Resource (10) Amazon (9) Cache (9) Git (9) Interview - MultiThread (9) Scalability (9) Trouble Shooting (9) Web Dev (9) Architecture Model (8) Better Programmer (8) Cassandra (8) Company - Uber (8) Java67 (8) Math (8) OO Design principles (8) SOLID (8) Design (7) Interview Corner (7) JVM (7) Java Basics (7) Kafka (7) Mac (7) Machine Learning (7) NoSQL (7) C++ (6) Chrome (6) File System (6) Highscalability (6) How to Better (6) Network (6) Restful (6) CareerCup (5) Code Review (5) Hash (5) How to Interview (5) JDK Source Code (5) JavaScript (5) Leetcode (5) Must Known (5) Python (5)

Popular Posts