Plugin for Xcode that adds some handy TextMate and Emacs actions to the
Edit menu. Works in Xcode 5.1 or above.
###Ace Jump Word mode:
Build It Yourself
- Make sure the file path of Xcode is
/Applications/Xcode.app, because some Xcode frameworks need to be linked from the Xcode app itself.
- Clone this repo, build it, then restart Xcode.
Or Use My Build
- Download XMate-1.02.zip
- Unzip it, move
- Restart Xcode.
You can find XMate's actions under Xcode's
Edit menu if it's loaded.
Set Your Own Keyboard Shortcuts
All available actions are under Xcode's
Edit menu. There aren't any keyboard shortcuts by default in case of conflicts. You can assign your favorite keyboard shortcuts in
System Preferences ->
Here're all available actions, to save you some typing:
XMate:Select between Brackets,
XMate:Ace Jump Word.
Select scope action selects inside quotes, or dot notation, or part of method calls. Keep activating the same action will extend the selection to a acceptable range. e.g inside quotes to including quotes.
Select brackets action is similar to select scope action, but it will only extend selection to paired square brackets, curly brackets and parentheses.
Press the Ace Jump menu item or the hotkey you assigned. A little text field will pop up at the lower left corner of your current active editing area.
Input the character you want to jump to (case sensitive, can be letters or symbols), all the same characters will be covered by a yellow label with a lowercased indicating letter. In the word-mode, only words' first characters will be highlighted.
Input the indicating letter, the caret will be moved to that location.
If you input uppercased indicating letter, a selection from current caret location to the indicating letter's location will be made.
Sometimes there're too many same characters on the screen, 26 letters are not enough to represent all of them, you can push
returnto switch to next group.
You can always push
escor the Ace Jump hotkey you assigned to quit Ace Jump mode.
They can work together without crashing each other. Ace Jump Mode works fine since it just moves the caret to another position. Selecting actions are a little bit tricky, I don't recommend using XMate's selecting actions if you're using XVim.
I have no idea about how to write a syntax parser, ParseKit did all the heavy lifting for me behind the scene.
(For my Chinese fellas)
XMate is available under the MIT license. See the LICENSE.txt file for more information.