2

Things like ctrl-a , ctrl-e , ctrl-f, ctrl-b, ctrl-n, ctrl-p, ctrl-k, ctrl-d.

When you edit in a normal html form in any browser I know (IE not included), the shortcuts above works the same as in emacs ?

(When I say normal form , I mean a html form without any interactive js stuff. )

Thank you for answering.

wenjun.yan
  • 618
  • 9
  • 15
  • I think this is an open-ended question with no practical answer. There are many applications/frameworks (Cocoa, for example) that use Emacs keybindings extensively. – Daniel Martín Apr 14 '13 at 14:36
  • It's not true, anyway. `Ctrl+A` is generally "Select All", etc. But I wish it worked that way. I hate leaving my emacs keybindings. – harpo Apr 14 '13 at 17:08
  • It seems to be somewhat true on Linux and Mac, where some other Linux/Mac apps also use Emacs-based keybindings. It's not true on Windows, where ctrl- keys are used for Windows shortcuts. – amitp Apr 14 '13 at 20:46
  • @DanielMartín thank you guys answering. I thought there might be some kind of historical reason like the first powerful browser is made by some emacs hackers, so no questions they put the emacs keybindings into it . Firefox? what was it called back at that time. – wenjun.yan Apr 15 '13 at 08:29
  • @harpo, "Select All" is `Cmd+A`. – katspaugh Apr 15 '13 at 09:32
  • 2
    @katspaugh, yes, on a Mac. I was using the PC term like the OP. The real way to say it of course is `C-a`. :) – harpo Apr 15 '13 at 14:04

2 Answers2

10

Because these are the key-bindings that God intended for us to use.

Stefan
  • 27,908
  • 4
  • 53
  • 82
  • 1
    This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – sjas Jul 04 '15 at 22:42
  • 1
    @sjas: hmm... really? – Stefan Jul 05 '15 at 05:20
  • Yes. See the accepted answer which is spot on. I love using emacs and its bindings, too, but that ain't making your answer more right. – sjas Jul 05 '15 at 05:24
3

It is because your browser uses the readline library. The keybindings depend on the OS Actually. You can even configure the keybindings editing the ~/.inputrc file. You can read more at the readline manual here

PuercoPop
  • 6,707
  • 4
  • 30
  • 40