Giter Site home page Giter Site logo

akahuku / wasavi Goto Github PK

View Code? Open in Web Editor NEW
1.5K 17.0 66.0 33.46 MB

wasavi is an extension for Chrome, Firefox, and Opera. wasavi changes a textarea element to virtual vi editor which supports almost all the vi/ex commands.

Home Page: http://appsweets.net/wasavi/

License: Other

Makefile 0.75% JavaScript 96.81% HTML 1.78% CSS 0.53% ApacheConf 0.01% Shell 0.13%
javascript vi extension

wasavi's People

Contributors

akahuku avatar biell avatar klaernie avatar kstep avatar talha131 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

wasavi's Issues

No Paste option?

Hello,

I'm amazed how well the extension works. But I can't seem to paste text into it. That is, if I cut text from another window, I don't see a way to paste it into wasavi. (I'm using the Chrome extension.)

Thanks!

Brad

Start wasavi with Ctrl+[

I want to start wasavi with shortcut Ctrl+[, which is not supported.

最近wasaviを知りまして便利に使わせていただいております。
ViではCtrl+[Escと同じ役割で、Escより押しやすいので普段使っており、ブラウザのテキストボックスでも無意識に手が伸びてしまうほどになっています。
そこでCtrl+[でwasaviを起動するようにしたいのですが、起動ショートカットに使えるキーに記号キーが含まれていないため設定できません。

起動ショートカットに使えるキーに[を含めて頂けないでしょうか。
あるいは僕が見逃しているだけで何か方法があるのでしょうか。

How does saving to dropbox work?

It is a cool extension. Really helpful. Thanks for developing it.

I was wondering how does saving to and reading from Dropbox works in the online page?

It's not clear how can I load file from Dropbox and save to it. Can you please help me here? A little more description will be awesome.

map with a double quote fails

I would like a mapping that pastes
the contents of the star (or any) register,
possibly with other actions.

This fails because the double quote is interpreted as the start of a comment.

map ,p "*P

In vim see:

:help map-comments

It is not possible to put a comment after the map command, because the " char is considered to be part of the {lhs} or {rhs}.

Visual Select

Would be great to have visual select capabilities, i.e. , <^v>, (at the very least, by line <Shift+v>).

Implement gu[motion] and gU[motion] commands

These are the commands that make text from current position to [motion] all lowercase or uppercase, respectively. Would be really useful for me and probably for many more users.

Option to blacklist domains

Hello @akahuku. First and foremost, thank you for the amazing extension! This is by far the best Vim emulation I have ever seen.

I was wondering if it would be possible to implement a blacklist of domains to prevent wasavi from opening by default. I love the feature to have wasavi open by default when a text area is focused, but this unfortunately has terrible issues on pages like google spreadsheets.

I would be happy to try implementing this myself and submitting a pull request, but I wanted to check in with an issue first to see if this is a feature you would welcome in this extension.

Thanks!

Wasavi spins up to max CPU when executing a vim search for certain characters

Env: mac OS 10.8.2
Chrome Version 30.0.1599.101

Steps to reproduce:
Navigate to a form (like the one I'm using here to submit an issue on GitHub)
Right click, edit with wasavi
in VI command mode, start a search, by using "/"
enter various characters in the search, esp. "|"

Observed result: Chrome spins up to max CPU on the mac, the window goes unresponsive, and I have to kill the tab.

Expected result: I should be able to do vi-style searches in my form all day without trouble. :)

Polish diacritics doesn't work

Great tool, unfortunately not usable for Polish language. In Polish we do have such letters as:
ąćęłńóśżź - we are producing them with keybind: AltGR+[put respective "base-letter" here], for example AltGr+a gives ą. With wasavi enabled those letters do not appear in text.

Support "set expandtab" and "set et"

Is "set expandtab" and "set et" supported? I tried it but it says "unknow option". This is a very important option which allows me write code with spaces as indentation.

Prevent closing the tab if unsaved

Hi,

I've lost work a couple of times because I accidentally hit ctrl-w (to delete previous word) only to close the chrome tab :(

maybe something with window.onbeforeunload ? Either that or intercept the ctrl-w key combo?

Thanks!

wasavi_mediator.js doesn't work in http://wasavi.appsweets.net/

Thanks for this plugin, it works great in textarea with vimperator now.

But it doesn't work in wasavi site http://wasavi.appsweets.net/, I had to press key "i" to get into vimperator's ignore mode first and press "i" again to get in wasavi's insert mode. When editing was done, pressing key "Esc" only get vimperator back to normal mode, wasavi was still in insert mode. Is it a bug?

Firefox 16.0.1 + vimperator 3.5 + Ubuntu 12.04 + wasavi 0.4.196

Ctrl-enter to longer starts wasavi

Wasavi stopped working in textareas in Chrome on a Chromebook months ago, and now Ctrl-home no longer starts wasavi in a textarea in Chrome on a Mac. No idea why. I'm just sad it's gone!

Insert mode mapping

I mapped jk and kj to <Esc> in insert mode by

map! jk <ESC>
map! kj <ESC>

In insert mode, if I want to type a word that contains "j" or "k", say "joking", I have to type "j" twice for one "j" to appear. This is different from Vim. Is there any way of getting around this?

online gmail blank lines removed

acer c720 chromebook
wasavi 0.6.246

Is there a setting that is causing blank lines to be removed from online gmail when editing an existing email?

Blank lines are NOT removed posting this issue at wasavi.

Good news...
Using wasavi with online gmail seems to work with 'COMPOSE', that is create a new email.
Previously wasavi only would work when replying to online gmail.

[Feature request] Context menu item to launch wasavi

The keybinding Ctrl+Enter does not work in all text areas. For example, if I press this keyboard shortcut in Github issue tracker, it submits/updates the issue instead of launching wasavi on Firefox.

For such cases, it will be great to have a context menu item to launch wasavi.

Wasavi sometimes fails to start

I haven't yet found a consistent cause, but sometimes wasavi gets in a state where Ctrl-Enter doesn't start it. Nothing seems to happen at all. I haven't yet remembered to check the error console when it happens. I'll update this bug report when I do.

I've found that disabling and reenabling wasavi from about:addons fixes the problem.

Wasavi 0.5.329, Firefox 22.0, MacOS 10.7.5

`+` and `*` registers for copy/paste

Current wasavi behavior (on Chrome on Ubuntu): "+ pastes from somewhere that I don't understand, and "* pastes from the CLIPBOARD. This is confusing and different than Vim's behavior:

There are three documented X selections: PRIMARY (which is expected to represent the current visual selection - as in Vim's Visual mode), SECONDARY (which is ill-defined) and CLIPBOARD (which is expected to be used for cut, copy and paste operations).

Of these three, Vim uses PRIMARY when reading and writing the "* register (hence when the X11 selections are available, Vim sets a default value for |'clipboard'| of "autoselect"), and CLIPBOARD when reading and writing the "+ register. Vim does not access the SECONDARY selection.

http://vimdoc.sourceforge.net/htmldoc/gui_x11.html#x11-selection

Quick glossary: PRIMARY contains the currently selected text (from any X11 application) and can be pasted anywhere using middle-click; while CLIPBOARD contains the Ctrl+C text (also from right-click → Copy) and can be pasted with Ctrl+V text (also from right-click → Paste).

So, I'd suggest mapping the star register to the currently selected text, and the + register to the CLIPBOARD. See also: http://vimdoc.sourceforge.net/htmldoc/gui.html#quotestar

Alternatively, some people might prefer to map both star and plus to the clipboard.

Ideally, wasavi should map star and plus to PRIMARY and CLIPBOARD, but I guess that a browser extension can only access the CLIPBOARD.

Still confused? Read this: http://www.jwz.org/doc/x-cut-and-paste.html
It will explain X11 CLIPBOARD and PRIMARY in a easy-to-understand way.

How to reproduce:

  1. Select some text anywhere. (the text is now in PRIMARY)
  2. Ctrl+C to copy the text to the CLIPBOARD.
  3. Select other text anywhere. (the text now replaces PRIMARY)
  4. Now, PRIMARY and CLIPBOARD are different.
  5. Try using "+p and "*p in wasavi and in vim/gvim. Notice the different behavior.

can not map set commands

can not map set commands

wasavi options > exrc

map ,hh :set hlsearch
map ,nh :set nohlsearch

When in wasavi execute :map returns

map ,hh :set
map ,nh :set

Old windows don't use new config

If I set some configuration options in the global config window in the chrome extension options, previousely opened textarea windows use the old configuration, not the new one.

(oh and the Github Textare boxes here get submitted on CTRL+ENTER ...:))

cannot leave settings screen

acer c720 chromebook
wasavi 0.6.331
When I type :se I see the user defined settings.
While looking at the settings, if I type :se nu
I cannot leave the settings screen until I issue another :se

[Feature request] Show spelling mistakes

wasavi for Firefox does not underline misspelled words. I tried using set spell but to no avail. Is it possible then on issuing set spell command, the misspelled words are underlined. I don't mean the full functionality of spell family of commands like showing spelling suggestions.

If the misspelled words are only underlined like the browser does in the text area when wasavi is not running, is good enough.

need a option to custom the active key

need a option to custom the active key, because many site(like github.com ) use the Ctrl + Enter to submit form.

by the way, how to use the system clipboard(the "+y and "+p don't work)?

firefox 16.02, windows 8, wasavi 0.4.207

p.s. can't use v for the visual mode.

BUG: Shift-v & Replace misses last character

Example
--------------

Steps to reproduce:

  1. Move to --------------
  2. Shift-v (select whole line)
  3. r+ (replace whole selected line with +)

Returns:

Example
+++++++++++++-

Should return:

Example
++++++++++++++

Bound Mode Docs

Great work on the chrome extension! I'm finding it very useful.

I'm having trouble finding documentation on working in bound mode. What's the keyboard shortcut to work in "bound" mode? To exit bound mode? I've tried "v" (Visual Mode) with no luck.

Thanks.

Safari Support

This is just a suggestion, but support for Safari on a Mac would be nice.

Loses Data along with Focus

Sometimes while writing text I need to switch between applications to maybe verify some information, or to copy pieces of data. However, when wasavi loses focus, it also loses all the input, which is pretty disappointing.

To reproduce:

  • Open wasavi;
  • Enter some text;
  • Switch to another application;
  • Switch back;
  • The text from the second step is lost.

I use OS X and Google Chrome, if it's important.

P.S. Thank you for the most amazing extension ever.

Feature Request: Add keybinding catch

In the options page (Chrome) there is a field to save keybindings to fire up wasavi. So I have a feature request to implement an option to give the user the ability to just press the desired keys to save it as keybinding.

gmail

Congrats on a great plugin.

Can this be extended to work with gmail?

Thanks.

release to chrome store

There have been significant changes to wasavi since 0.5.442

Please release another version maybe wasavi 0.6.265

empty lines in exrc

acer c720 chromebook
wasavi 0.6.331
Empty lines in the exrc (wasavi options) will cause some following settings to fail.

Request: abbreviate with spaces or returns

Request: abbreviate with spaces or returns

I tried to make an abbreviation:

ab myname<cr>myphone<cr>

But the were inserted literally.

Is it possible to have spaces or returns in an abbreviation?
Using or

Better than Cloud9's Vim mode

Even the most brief examination reveals this vim mode to be superior to cloud9's Vim mode. However, Cloud9 has excellent highlighting. It would be great to be able to use this inside of Cloud9. It currently does not work correctly.

Unknown option: theme

Hi, I'm trying wasavi in Google Chrome, when trying to :set theme=blight a error message as this title showed.

if I try :set all, I guess the results it showed are all options wasavi has now, and there's no theme in the options list .

Is this a bug or should I write it in "exrc" textbox? I have tried it too but it didn't work.

Thanks for such an extension, really interesting.

Allow resizing wasavi

Nice, I'm writing this comment using Wasavi! But what if I want to resize the editor? Can I? It doesn't seem possible.

The editor includes :set columns and :set lines, but setting them does nothing.

As a side comment (probably worth opening a new issue), can I change the font size? On gvim, we have :set guifont.

what is "beautify"

acer c720 chromebook
wasavi 0.6.331
When I do
:set all
I see nobeautify

Is it implemented?
What does it do?

ctrl-enter no longer starts wasavi in a textarea on Chromebook

Ctrl-enter no longer starts wasavi in a textarea in Chrome on my Chromebook. Oddly, it still works fine in Chrome on my MacBook.

wasavi 0.5.400
Chrome OS info:
Version 35.0.1916.27 beta
Platform 5712.14.0 (Official Build) beta-channel daisy
Firmware Google_Snow.2695.117.0

map affects character replacing

When I set :map a b, command ra to replace a character with "a" results in replacing it with "b".

mapの設定がrの一文字置き換えにも影響するようで、:map a bを設定すると、文字を"a"に置き換えようとしてraと打つと"b"に置き換えられてしまいます。

個人的にjkは折り返し行単位、$^は物理行単位で使いたいので、exrcにmap [noremap] j gjなどと書いたところ、目的は果たせたのですが、文字を"j"に置き換えようとしてrjを打つと"g"に置き換えて1行下に移動、という動作をするようになってしまいました。

宜しくお願いします。

wasavi 0.6.277 / Chrome

Can't switch to visual (bound?) mode in Chrome (Mac)

I see the readme talks about Bound mode commands and see v and V as available commands, so I assume they're for switching to visual/bound mode. Is that so? If it is, it's not working for me. I disabled all other extensions but I can't switch to visual.

Cheers

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.