/FuzzyAutocompletePlugin

A Xcode 5 plugin that adds more flexible autocompletion rather than just prefix-matching.

Primary LanguageObjective-CMIT LicenseMIT

Fuzzy Autocomplete for Xcode

Demo

This is a Xcode 5 plugin that patches the autocomplete filter to work the same way the Open Quickly works.

It performs very well, and the fuzzy matching actually uses Xcode's own IDEOpenQuicklyPattern.

I wrote a blog post on how I used dtrace to figure out what to patch: Reverse engineering Xcode with dtrace

Like nifty tools like this plugin? Check out Shortcat, an app that lets you control your Mac more effectively with your keyboard!

Features

  • Gives Xcode's autocompletion to be able to filter like Open Quickly does
  • Supports Xcode 5.0.1
  • Supports Xcode's learning and context-aware priority system
  • Tab now inserts completion rathen than inserting prefix
  • Compatible with KSImageNamed (be sure to grab the newest version)
  • Uses Grand Central Dispatch to parallelise matching
  • Productivity++

Installation

  • Either:
    • Install with Alcatraz
    • Clone and build the project
  • Restart Xcode and enjoy!

Notes

  • Only tested with Xcode 5 on 10.9
  • Hasn't been tested with other plugins (other than KSImageNamed)

Changelog

1.5 - 2013/11/05

  • Shortest match will always be selected

1.4 - 2013/10/26

  • Remove requirement to start fuzzy match with first letter of desired match
  • Improve performance by parallelising work

1.3.1 - 2013/10/24

  • Decrease the weighting of Xcode's priority factor from 1.0 to 0.2
  • Prepare for KSImageNamed compatibility when KSImageNamed#31 gets merged.

1.3 - 2013/10/23

  • Now factors in Xcode's learning priority system - #2
  • Tab now accepts selected completion as it doesn't make sense to insert prefix with fuzzy matching

1.2 - 2013/10/22

  • Fixes missing file entries when autocompleting paths - #1

1.1 - 2013/10/21

  • Implement partial completion support via Tab

1.0 - 2013/10/20

  • Initial release

githalytics.com alpha