• 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: custom keybindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom keybindings


  • Subject: Re: custom keybindings
  • From: Tony Romano <email@hidden>
  • Date: Wed, 15 Jun 2011 00:30:58 -0700
  • Thread-topic: custom keybindings

The format for the new binding is different.  I've boiled it down to this problem.  In Xcode 3, you would put the commands in a section,<array  </array> in the plist.  This doesn't work for the new bindings for XCode 4.  Below is a sample file I am using, I do have the <array> </array pair in there and it works as long as I put ONE <string> </string>  item in the array.  If I attempt to do two or more, the binding does not work. 

// this sample works, <ctrl y> will do a select line in Xcode 4.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Text Key Bindings</key>
<dict>
<key>Key Bindings</key>
<dict>
<key>^y</key>
<array>
<string>selectLine:</string>
</array>
</dict>
<key>Version</key>
<integer>3</integer>
</dict>
</dict>
</plist>

If I change the content of the array to this:

<array>
<string>selectLine:</string>
<string>cut:</string>
</array>

It will not work as I wish and defaults to Yank.  

Tony Romano


From: Andy Lee <email@hidden>
Date: Wed, 15 Jun 2011 02:49:22 -0400
To: Xcode Users <email@hidden>
Subject: Re: custom keybindings

Re-sending, this time to the list.

--Andy

On Jun 15, 2011, at 2:41 AM, Andy Lee wrote:

On Jun 14, 2011, at 5:57 PM, Tony Romano wrote:
Anyone have working examples that have more than one edit command bound to a single key binding that works in Xcode 4 that can share it. Thanks in advance.

Maybe fiddle with the file using KeyBindingsEditor?

<http://www.cocoabits.com/KeyBindingsEditor/>

This is a total shot in the dark -- it may not do anything to the file you don't already know how to do manually.

--Andy


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: custom keybindings
      • From: Christiaan Hofman <email@hidden>
References: 
 >Re: custom keybindings (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: custom keybindings
  • Next by Date: Re: Xcode 4 - project settings, etc
  • Previous by thread: Re: custom keybindings
  • Next by thread: Re: custom keybindings
  • Index(es):
    • Date
    • Thread