• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Remapping autocomplete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remapping autocomplete


  • Subject: Re: Remapping autocomplete
  • From: Tim Bumgarner <email@hidden>
  • Date: Sun, 23 Nov 2003 00:13:54 -0500

Hi John,

If you take the contents of the following:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>^
</key>
<string>complete:</string>
</dict>
</plist>

And save it as a text file named "DefaultKeyBinding.dict" in your ~/Library/KeyBindings directory (which you may need to create), it will use the given key as the complete key (in addition to the key bound to the menu item). In the example that I give here, I have mine set to use Ctrl-Return (signified by the ^ key and a new line). You can adjust the value for the <key> to suit your needs, though I don't know what all of the possible key combinations would look like. Doing this maps the key binding to the complete functionality in any application, not just Script Editor. You can also map other actions (Cocoa action methods like the complete: action above) in the same way.

Hope this helps, even if it is a bit, well shall we say non-intuitive ;-)

Tim Bumgarner
AppleScript Engineering


On Nov 22, 2003, at 9:35 PM, John C. Welch wrote:

On 11/22/03 7:05 PM, "David Hood" <email@hidden> wrote:

Is there anyway to remap the autocomplete from F5 to another key? I
find
that I'm far more used to tab or enter for such things.

john


Well, adding a defaultKeyBindings.dict file to ~/Library/Keyindings/
lets you remap as you wish in Cocoa

But I don't want to change keybindings for every cocoa application at once.
I don't want to change the text system. I simply want to change one
keybinding in one application. I don't use Xcode, so I don't care about it
there. I only use script editor to check things if I'm making sure it isn't
a Script Debugger issue.

So, barring someone telling me how to just do this for one application, or
nib-hacking, I'll assume the answer is "live with it" and that's fine.

john

--
"He who knows others is wise. He who knows himself is enlightened. He who
conquers others has physical strength.
He who conquers himself is strong."
-Tao Te Ching
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Remapping autocomplete
      • From: "John C. Welch" <email@hidden>
References: 
 >Re: Remapping autocomplete (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: (beep) as string
  • Next by Date: Re: Remapping autocomplete
  • Previous by thread: Re: Remapping autocomplete
  • Next by thread: Re: Remapping autocomplete
  • Index(es):
    • Date
    • Thread