Show HN: vi in your browser - edit files directly from Dropbox, etc
mit.edu
mit.edu
http://code.google.com/p/chromium/issues/detail?id=33056
It's marked "WontFix" but I have it starred anyway.
Hmm, there's also the related issue 119881:
http://code.google.com/p/chromium/issues/detail?id=119881
It's marked "Assigned" so maybe there's still hope.
$('textarea').vim()
'^' goes to the first character in the line, not the first non-whitespace character
'o' is not undoable using 'u' (those most other things are, strangely)
Thanks!
Is this impossible to implement?
At least it works on chrome on osx. It didn't work when I tested it earlier in dev channel chrome on windows.
It works on OSX because it appears the operating system automatically creates a keypress of scancode 27 (escape) when you press "^[".
The special code in term_keypress_inner to handle this combination of keys is never hit, because no keypress event is created for ^[, but it isn't necessary on OSX due to the above feature.
You could expand your handling of keyup/keydown to handle it. For example, change your keyup handler to the following:
$(document).keyup(function(e) { if(e.keyCode === 27 || (e.ctrlKey && e.keyCode === 219)) { do_escape(); } });
It's an easy to overlook, for a long time BusyBox's vi didn't like combining counts with o/O either.
Vi commands: ^D ^E ^B . J and probably more that I haven't tried.
Possibly Vim commands: * #
U is functioning completely incorrectly. Try dd, U on line 3 in the example.
It also wasn't allowing me to hit <ESC> (OSX 10.6, Chrome 19)
(All this isn't Filepicker's fault. It's whomever's that wrote the choppy JS version of Vi. But if you want to show off Vi in the browser, you can't make me feel like a broken machine when I try to use it.)
"This app will have access to your entire Dropbox."
Which still happens with pretty much every Dropbox app, despite fine-grained permissions many months ago. Dropbox, love the app, but the company needs a strong developer relations programme to get messages like this out.
"We've introduced App folders: app-specific folders that Dropbox will automatically create and keep track of, even when users move or rename them."
I assume that means a fine-grained folder instead of the scary "entire Dropbox" situation. It was introduced on 8 months ago, but there's little detail on it.
(Original: First thing I tried: dG to delete everything, didn't work. So, it still needs improvement. Now, I'll admin I'm not 100% sure if G is a vim command or a vi one.)
Sorry about that, it's definitely cool.
file[cursory+base];
to return undefined, and any calls to it e.g. as xx.. 2171
_calcy(gg, xx.substr(zleft, xx.length-zleft), xg.substr(zleft, xg.length-zleft));
Will give errors. Uncaught TypeError: Cannot read property 'length' of undefined
Chrome 19.0.1084.56 on Windows.If I leave the first line alone, it appears to work great!
Ctrl-C is not a (user-defined) mapping. It will leave insert mode, but will not trigger things like abbreviations and autocommands (in Vim), so it's not a good idea to use it over Ctrl-[ (which is supported) or <esc>.
Too much vim in my browser at once. Vimium didn't like interacting with the window, and interpreted my typing with a back-button action.
Only draw back is having to give up Swype for hackers keyboard, thanks to Swype lack of esc key.