Git Product home page Git Product logo

vrome's Introduction

##Vrome - Bringing Vim's elegance to Chrome

Vrome is a Vim keybindings extension for Chrome. Designed to provide a more efficient browsing experience, Vrome comes with its own additions that will surprise you.

Vim and Vimperator/Pentadactyl users will feel right at home.

What's new?

Getting started

  • install it from the Chrome Web Store
  • type ':' and voila!
  • you just upgraded your chrome with vim power!

if you had some tabs open already, just refresh them to make them respond to vrome.

Keybindings for:

  • URL navigation
  • Tab manipulation
  • Key Marks + bookmarks
  • Page navigation + Scrolling + Zoom + Search
  • History
  • External editor support
  • and much, much more

Important notes:

  • Chrome does not allow extensions to run in the Chrome Webstore, Settings/Extensions page or "New Tab" page!
  • Vrome is an open-source project. We do not log your personal information! All required permissions are used for features. You can check the source code here: http://github.com/jinzhu/vrome
  • After install/upgrade, please refresh all tabs to enable all/new Vrome features. Tip: use "<C-r>" (Control + R) to refresh a tab, then try Vrome command "R" to refresh all tabs.
  • Please enable Vrome in incognito mode in order to use commands that require incognito. Check chrome://extensions page.
  • Type <F1> for Help page.

Installation

  • (Recommended) Install the latest stable Vrome from Chrome Web Store. Afterwards, extension will be automatically updated when a new version is available!
  • (Manual) From source:
    • Make sure ruby, npm, git are installed
    • git clone git://github.com/jinzhu/vrome.git
    • Install coffee-script with npm npm install -g coffee-script
    • Install Bundler with rubygems gem install bundler
    • Run bundle install
    • Run bundle exec rake build
    • Load this extension from chrome://extensions/ page

Improve it!

Like Vrome? Improve it by:

Hack it!

  • Install Vrome from source
  • Run bundle exec guard
  • That's all, all changes you made will apply to your browser automatically!

Find more information in our WIKI

Thanks!

Author

Jinzhu

Boris Petrov

vrome's People

Contributors

bgoldsworthy avatar blob42 avatar boris-petrov avatar coderofsalvation avatar djsutherland avatar e2 avatar hayamiz avatar hbt avatar jinzhu avatar jrk avatar kabostime avatar kezabelle avatar kwpolska avatar markstos avatar maxolasersquad avatar pcaneill avatar pyx avatar thynctank avatar yoriksar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vrome's Issues

forward search fails and disappears

Go to http://www.smlnj.org/doc/literature.html and try to forward search for "ha" by these keys: / h a

The search box disappears, and the page loses all its formatting.

Also, I think vrome search should reuse the chromium search box, since chromium search is faster and the box looks nicer.

My versions: Chromium 4.0.288.0 (35430), Vrome 0.3.3

multiply "pass through" yellow label in igoogle interface

in fact, can't attach screenshot.. but in gmail widget and google calendar widget i have this yellow box (adding to main igoogle "pass through")

i think, this could happen because of widgets are actually loads in an iframe, and plugin handles them too..

don't know what to do with it.

not critical

Disable site does not work

The sites I enter in the form are not disabled...I have the newest version installed from the chrome gallery.

[feature request] search using native chrome search-box

is it possible to implement "search" using chrome native search box? it have very nice functionality which in fact is much more rich, than basic vimlike search.

and what happends to Ctrl-f hotkey? vimlike redefines it to half-page-down? why so?

is there any full hot-keys list by vimlike?

Show search result count

I think it's a good idea to show the number of results when searching : just like the original C-f or F3 does :)

[bug] vrome doesn't handle some inputs correct

there is a (great) bug in vrome at this moment.

it "disables" only on several inputs.

for example, when i select "input type=select", then with disabled vrome i can type first letters of option i need and it will be selected in the input box.

another example: try to input some text on http://search.snto.ru/ page. when you are trying to type any of vrome hotkeys - vrome handle it.. may be this happends because immediately after input tag is "id" attribute, not "type" attribute

can you fix this annoying bag plz?

Increment number does not preserve string length

The ctrl-a and ctrl-x keys for incrementing the last number of the URL do not preserve the character count of the number in the URL. For example, 001.html gets incremented to 2.html instead of the correct 002.html. The fix should be as simple as prepending zeros until the incremented string's length matches the original.

f/F do not work with numbers on French keyboard

French keyboards have their numbers inverted w.r.t. many other keyboards,
i.e. the numbers are on the top of the buttons and are thus accessed by pressing SHIFT
(I know, this sucks :)

Thus the "shiftnum" trick used at line 118 of modules/get-key.js does exactly the opposite as what it should do. I don't know if it's the same on all keyboards, but on mine, the shiftnum trick is useless as keyIdentifier already provides the good key.
Maybe you should check if this is not actually the case on all keyboards?
Otherwise I see two solutions:

  • Characters ~!@#$%^... are not that useful so we can keep only the number behaviour even when SHIFT is pressed. Of course it is not a problem for me, but maybe it is for non-French people over there?
  • or use a more general solution: I don't know javascript but I cannot believe that key detection is keyboard dependent?????

Cheers,
V.

PS: BTW the if block starting at line 121 of the same file is quite weird as this case will never happen. Is this intended?

YubNub

gleebox has a very useful and powerful function: to execute YubNub command.

Example in gleebox:
:"YubNub Commands"

Syntax is :command where command is a YubNub command. List of YubNub commands is available at yubnub.org. While using this command, the dollar character ($) can be used to represent the URL of the current page.
Examples -

:fbshare $Share the current page on Facebook
:wp cricketSearch Wikipedia for cricket
:tube elvisSearch YouTube for elvis
:site2pdf $Get a PDF for the current page.
:tw gleeboxSearch Twitter for gleebox

I guess It's very easy to implement this function. Just direct a new web page to url "http://yubnub.org/parser/parse?command=COMMAND". Nothing else...

How do you think?

now gmail hotkeys problem...

it seems that vimlike has the same troubles with gmail hotkeys.

i know, that google has a lot of experiments with hotkeys, not only in reader and gmail, but in google docs and others (can't tell any concrete examples, because don't use them as active as gmail and reader)

i realize, that from the js point of view it's complicated to handle a keypress event only when the web page doesn't handle it by itself.

so it may be useful to imlement some of these features

  1. disable by default vimlike in all google projects (except google search - it hasn't hotkeys at the moment at all, except in lab)
  2. add "default disable sitelist". it may be user personal list or auto updating list, such as adblock+ block lists. i think, that it's a really important feature, because today many sites implements hotkeys (for example, github also has some hotkeys)

p.s. thanks for so quick fix for google reader. it makes me happy )
p.p.s. don't panic from this issue) my own opinion is that implementing plugin help and/or options page is more important than this one. and only after plugin page - enabling default disabling sitelists and autodetecting site hotkeys

Disabled Site list

Adding a site to the Disabled Site list should not totally block it, but rather put it in "pass through" mode by default, much like Vimperator does.

I have several sites that provide their own shortcuts that conflict with Vrome, e.g. Google Reader. But I still want to be able to close that tab with . So it would be nice if Vrome would just pass through the keystrokes by default but offer the option to be reenabled quickly on demand.

Greetz

<CR> after tabopen in Gmail also opens email message

go to gmail, press t and type something, then press enter. the new tab opens but the enter is also sent to gmail and opens the selected message. more generally we may find that the is sent to the current window, whatever it may be, which may cause a problem (e.g. submit a form).

Provide shortcut for hide/show of the bookmarks bar

Vrome uses the built-in keybinding of Control-B, which is used to hide & show the bookmarks bar.

Because no alternative keybinding is prepared for this, it is required to use the mouse for this feature which was formerly possible with the keyboard.

I assume a project goal is to make Chromium more keyboard-friendly. Therefore, any keyboard shortcut that overridden in Chromium should be replaced with some alternative.

dissapearing f-hint box on documentOnLoad

while page doesn't loaded completely, press 'f' key to enable links hint mode.
don't press full link number (the simpliest case - doesn't press any digit key)

then on documentOnLoad event yellow hint labels stay on page, but hint input (in the right-bottom corner) is dissapearing and there isn't possibility to select a link. only by pressing Esc and starting all over again.

vimlike version: 0.2.0

didn't see this bug in previous versions

[feature request] configure hints size

is it possible to add an option to configure size of hints? on my screen, they are too small, so in some cases it's hard for me to discern numbers :(

disabling hotkeys in google reader

a small, but annoying bug. this plugin disable hotkeys in google reader (such as j/k navigation through posts)

it's possible to fix it?

wishlist: :w[rite]

It's nice to be able to save webpages, nice pictures, etc. without a filename prompt. In vimperator, this is available under :w, but any other keybinding would be fine.

bookmark

Hi,

How can I bookmark a page?

I was expecting "a".

Thanks.

-Nash

Build fails with rake

$ rake build
(in ~/vrome)
~/vrome/buildex.rb:12:in `pack': can't convert String into Integer (TypeError)
    from ~/vrome/buildex.rb:12:in `<class:ExCreator>'
    from ~/vrome/buildex.rb:11:in `<main>'

Version: 97d77a6

Useless button on top

It might be a good idea to get rid of the button at the top that does nothing but settings, and move the settings to chrome://extensions where they should be.

open/tabopen should use chrome address bar

the chromium address bar has many benefits: automatic google search, automatic search through history, auto-completion. by contrast the open/tabopen box is limited. I suggest simply sending open/tabopen requests to the chrome address bar. The only difficulty will be to make sure the result is sent to a new tab if tabopen was used.

Open/tabopen should use the User's default search engine

When using open or tabopen to search for something (instead of going to an address). Vrome should use whatever search engine is set as the default. (instead of using Google).

Example:
I hit "t" then type "foo" and Vrome will search google for "foo". However my default search engine is not google.

o doesn't use my search engine

Chromium has an option to set a search engine, but vimperator ignores it, preferring a hard-coded Google search. The offending line is modules/url.js:26.

vrome's mapping of 'D' prevents bookmarking

Chome's built-in bookmarking shortcut (for me, at least) is Command-D, but when I hit that, Vrome closes my tab... sort of the opposite of bookmarking. I can't find any way to bookmark using Vrome, either, so I'd say this is a problem, since it forces me to use my mouse if I want to bookmark something.

Breaks Gmail (sending doesn't work)

Chrome v. 5.0.342.1 dev
Vrome v. 0.5.1

Installed Vrome... started to love it... tried to send an email... gmail said "Sending", but never actually completed... disabled Vrome, tried it again, had no problems. Toggled Vrome to enabled, tried it again; fail.

.vromerc

Thank you very much for this wonderful extension.

I created a .vromerc file to diable Vrome on reader.google.com and gmail.google.com. Should I run "nohup vrome > /dev/null &" after every system restart?

However, this is really not friendly for most novice users on any system. Would you please implement a option page for users like other extensions?

PS: Mac os x (at least on mac os x 10.6), gem is installed by default. So Mac users only need
sudo gem install vrome -s http://rubygems.org

Keyword work-around Question

As keywords are not currently usable in the Open and TabOpen dialog boxes, I was wondering if it was possible to define a key binding to simply open a specific URL in a new tab -- for example open mail.google.com in a new tab upon pressing G. Is there some command that have this effect?

Cheers!
Rasmus

Bug: Vrome does not enter Insert mode in certain Facebook text fields

This goes for the Status Update field and the Write-on-somebody's-wall field. It does work in the chat and search fields.

Not that it matters much in the big picture... I will still safe plenty of time even if I have to open gedit to compose my text each time I want to post something on Facebook!

Numbers for links in HintMode are too small

When hitting f to enter HintMode, the numbers on each link are too small to recognize (点击 f 后链接上的提示数字字体太小, 无法辨认).
I'm using the beta version of Google Chrome (v 4.0.249.43) on Linux. The problem didn't exist several days ago.

Marks support

Marks support is very handy in my opinion. ie. "ma" to add a mark to a page "'a" to jump to it. Just like in vim.Vimperator's "QuickMarks" is nice too.

Tab-complete URLs in open dialog

It would be great if the tab open dialog would allow tab-completion of URLs a-la vimperator, showing the fuzzy-search results like the Chrome address bar.

Can't get Customize to work on Ubuntu 9.10 -- help please?

I know this is a very rookie topic to raise, and I'm unsure if it's the right place, but I didn't know where else to ask. I can't seem to get custom shortcuts working in Ubuntu 9.10.

What I've done is:
Installed rubygems following these instructions: http://blog.rubyhead.com/2009/11/02/ubuntu-9-10-ruby-installation/

Created a .vromerc file in my home folder with text
"
map b H
map g gT
map h gt
"
Run "nohup vrome > /dev/null &" in terminal, which then writes:
"[1] 14262
rasmus@OptimusPrime:~$ nohup: ignoring input and redirecting stderr to stdout"
does nothing for a while and reacts with
"[1]+ Exit 1 sudo nohup vrome > /dev/null"
upon my pressing enter.

And nothing happens when I press g or h, and b opens the buffer box...

Does anyone of you know how I should proceed?

missing keyboard shortcut for Control-B

In Chromium, Control-B is used to hide and show the bookmarks bar. Vrome remaps this for a vim-like function. A replacement keyboard shortcut should be provided to hide/show the bookmarks bar, otherwise the mouse is needed for this function when it wasn't before.

alt+d problem

alt+d closes the tab instead of focusing the address bar.
Hope vrome could distinguish 'alt+d' from 'd' :)

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.