Live data from Hacker News

Show HN: vi in your browser - edit files directly from Dropbox, etc

mit.edu

61–70 of 82 posts

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#62
post #12

Strike this. My bad. (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.)

I'm having trouble with this too.. Deleting everything causes

    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!

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#66
post #52

Earlier quoted context omitted.

Is there any other way to get an arbitrary file from your dropbox into a text editor?

https://www.dropbox.com/developers/announcements/11 "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.

but this would mean you wouldn't be able to share work from say an iPad app to this one, which to me is kind of a hassle if I couldn't

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#67

Here's what I really, really, want: $('textarea').vim()

You can get something similar to that with the Firefox vimperator plugin. Press ctrl-I in a textarea and a vim pops up. When you close it the text gets copied back. I use it a lot!

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#69
post #27
post #18

Slight issue: counts do not work in combination with insertion commands. (in other words, you can't use 5i to have something inserted 5 times, or for a more useful example you cannot use 5o or 5O) It's an easy to overlook, for a long time BusyBox's vi didn't like combining counts with o/O either.

As well, non of the screen movement commands and some miscellaneous commands aren't working. It really took out almost all of the flow I have when I'm editing files. 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 (OSX 10.6, Chrome 19) (All this isn't Filepicker's…

Also, some yanking commands don't work: yiw, yaw (it goes into insert mode)

Re: Show HN: vi in your browser - edit files directly from Dropbox, etc

#70

Somehow online vi clones never bother with implementing ^[ (does the same as escape), which seriously impairs me. Is this impossible to implement?

Same for ^C, which also does the same as Esc and is extremely convenient to type. (There is a slight difference with Esc though: VjjIblah^C does not do the same as VjjIblah.)
Post reply on HN