top | item 1862442

Ymacs -- An Emacs-like editor for the Web

191 points| macco | 15 years ago |ymacs.org | reply

63 comments

order
[+] JoelMcCracken|15 years ago|reply
I tried integrating this into an app I am working on, but it was just too tightly integrated within its custom UI library.

This app is truly awesome, but it is just impossible to integrate with anything. Someday I might try to fork it -- lord knows I already know enough about its internals.

(edit: sorry about the double post. I wiped the screen of my iphone immediately after hitting submit -- guess this is what happened.

Also, it would be awesome if someone made this into a bookmarklet)

[+] Raphael|15 years ago|reply
Ah, so Ymacs stays true to its roots in being stuck with its own stack.
[+] mronge|15 years ago|reply
Now what I'd really like is the reverse: Webkit in an emacs buffer. That would totally rock I'd never have to leave emacs.

I wonder how hard it would be to hack something up like that?

[+] docgnome|15 years ago|reply
Closest I've ever come across is Conkeror (http://conkeror.org) That's using Gecko instead of WebKit but it's still a great project. It's my primary browser.
[+] bostonvaulter2|15 years ago|reply
Maybe you could hack uzbl into emacs
[+] shimon|15 years ago|reply
Dear god,

If you could combine this with a Google-docs-like collaborative editing feature, I could once again enjoy a life free of word processors, where the true meaning of Meta-Shift-^ could become known to the masses.

That would rock. Just sayin'.

[+] drblast|15 years ago|reply
I felt the same way and started making my own editor:

http://vianedit.appspot.com

Unfortunately I had to make it use vi key-bindings since the emacs ones were incompatible with most browser defaults. But it's extensible like emacs, through Javascript.

Someday I'll have time to finish it.

[+] onedognight|15 years ago|reply
Funny you should mention M-^ as that was the first command I tried that wasn't actually implemented, but given that I'm halfway done with its implementation without leaving ymacs, call me impressed.
[+] roadnottaken|15 years ago|reply
Cool, but Ctrl-N (move down) doesn't work (it opens a new page).
[+] jcsalterego|15 years ago|reply
Maybe it depends on which browser you're using, but in Safari 5, when the main textbox/input box has focus, C-n works for me, as well as ESC for Meta. You may want to try giving it focus first?
[+] jrockway|15 years ago|reply
Incidentally, Emacs 24 removes the dashes from the modeline, so using Ymacs is almost a bit nostalgic!
[+] sdp|15 years ago|reply
Odd, I'm using "GNU Emacs 24.0.50.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25) of 2010-03-27 on gallifrey.local" and it still has the dashes on the modeline.
[+] jasonjei|15 years ago|reply
The problem is I need an emacs/vim/TextMate style editor for the iPad usable in the airplane. I really wish TextMate would become available on iOS.
[+] sukuriant|15 years ago|reply
And really, do you want to be pressing multiple keys at the same time like you would for emacs hot keys on an iPad? I'm not an avid user, but those motions seem incredibly unnatural.

C-X, C-S to save? and that's just the beginning.

vim suffers similarly, though probably not to the same extent. An editor that takes advantage of the iPad's touch screen would be superior, imo

[+] angrycoder|15 years ago|reply
its called a netbook.
[+] grandalf|15 years ago|reply
I really wish this were rolled into github.
[+] makuro|15 years ago|reply
It would be nice if the code could end up in github. Also, more importantly, I need to disable that cursor blinking (peripheral blinky things make me feel like dying).
[+] thecombjelly|15 years ago|reply
I worked on this (my own version) for awhile and I got the basics working pretty quickly, but I just wasn't happy writing in JS, I really wanted it to be written in Lisp, but I couldn't find a JS version of Lisp that was good enough, and I didn't have the time to make one myself.

I'm glad to see this and I'm sure I'll enjoy using it. It would be nice to have the ability to create accounts and store in the cloud so I can access my code from anywhere.

[+] pinchyfingers|15 years ago|reply
This is something I've wanted to make, I'll be reading through the source to work on my Javascript knowledge. Now I need a Chrome plugin to make every text entry box work like this (Edit With Emacs didn't do it for me last time I tried, I habitually type C-x s and that was closing my buffer and returning to the browser).
[+] jfm3|15 years ago|reply
You can rebind keys to do different things in Emacs, and make Edit With Emacs behave any way you want.
[+] alcoholiday|15 years ago|reply
Super Dee Duper!

I cracked myself up when trying C-M-q using the Command (clover) key on my mac, which of course was seen as CMD-Q by the browser, which for you non OS X folks means QUIT.

[+] phmongeau|15 years ago|reply
I tried it wondering if it would quit the browser, but it didn't. (I'm using Firefox)
[+] agentultra|15 years ago|reply
Aw, FF + Vimperator = no go. lol

Neat app. I'm a total emacs nut.

[+] bradly|15 years ago|reply
Control+z will enter Vimperator pass-through mode and the site will work. Just hit escape to exit pass-through.
[+] Wilduck|15 years ago|reply
Funny that this doesn't work even a little bit with Conkeror (Web browser with emacs keybindings). Pretty sweet otherwise.
[+] docgnome|15 years ago|reply
To be fair, that's more a Conkeror problem than a ymacs problem. We're sort of trying to bang the square peg of the web into the round hole of keyboard based control. It often leads to gross hacks like all the page modes we have, which are equivalent to Major modes that you could only use on one or maybe two files in emacs.
[+] docgnome|15 years ago|reply
Actually, if you use quote mode (enabled by C-M-q by default) it works great!
[+] arnemart|15 years ago|reply
My first thought was "Whymacs?" but this is actually pretty cool. Shame I've never gotten around to learning emacs.
[+] sbt|15 years ago|reply
Great initiative. Get Ctrl-C Ctrl-E to work and I'll be even more happy :)
[+] dorkitude|15 years ago|reply
this is polished! salesforce should use this for the Apex platform.
[+] rspraetz|15 years ago|reply
Totally agreed. This would be great for Apex or any other place where you want a web based portal to your cloud based code.

Very cool!