1

Any solutions out there for dealing with google script code-editor turning "forward delete" into a "kill line" binding? I'm used to the hidden cocoa/emacs derived navigation keys. Google decided to mess with control-d.

Clarifications:

  1. This occurs when using the code editor. (edit-view?)
  2. I would rather stop the google behavior than cope with it.

To understand more how fluid the control-key navigation can be (and therefore how annoying when missing), try this...

  1. set caps-lock to be the control key
  2. open a cocoa browser like Safari and
  3. start a script at https://script.google.com/
  4. switch briefly to address bar
    1. hit ctrl+a (goes to start of line)
    2. hit ctrl+d (characters get deleted 1 at a time)
    3. hit escape
  5. switch to script area and try same thing (whole lines get munched!)
Cœur
  • 37,241
  • 25
  • 195
  • 267
dvdrtrgn
  • 1,139
  • 10
  • 21

3 Answers3

0

If you mean while you're working on your program in that editor, press the forward-delete key. On Apple's laptops and wireless keyboard, it's fn-delete (where by “delete”, I mean the backward delete, the key that is a.k.a. “backspace”).

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
  • I may have to accept that. I just much prefer to keep my fingers on the home-keys. That's what makes the emacs shortcuts (available in 95% of OSX apps) so nice. – dvdrtrgn Sep 30 '12 at 11:50
  • 1
    They're available wherever the text editing is being run by Cocoa (because Cocoa implements them). In a web-based editor, the web page is what's running it. You could try writing a Safari extension to patch Google's script, but I would expect it to be a lot of work. – Peter Hosey Sep 30 '12 at 13:04
0

You could try KeyRemap4Macbook.

echristopherson
  • 6,974
  • 2
  • 21
  • 31
0

Today I noticed that this problem no longer exists. So when editing a script file in the macro editor, emacs shortcuts WORK as expected. I cannot tell if they simply removed a bug or override, or actually patched it to work.

dvdrtrgn
  • 1,139
  • 10
  • 21