• This repository has been archived on 19/Oct/2018
  • Stars
    star
    147
  • Rank 251,347 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created about 13 years ago
  • Updated almost 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Adds TextMate-like autocompletion to Sublime Text 2 and 3.

Alternative autocompletion for Sublime Text

This plugin adds an autocompletion command to Sublime Text 2 and 3 that acts similarly to TextMate:

  • Hitting the autocomplete key will attempt to complete the current word by looking at similar words in the current document.

  • Hitting the autocomplete key multiple times will cycle through the available words.

  • The last autocomplete position is remembered, so you can perform an autocompletion, move the cursor around, move back to where you were, and continue cycling through the completions.

  • Candidate completions are selected prioritized by distance to the cursor.

The plugin improves on TextMate in one respect: If no candidates are found, the plugin reverts to using a simple fuzzy, case-insensitive matching algorithm that is similar to Sublime's file/class matching algorithm. For example, typing appc might match ApplicationController.

Installation using Package Control (simplest)

  1. Install the Package Control plugin unless you don't have it already.

  2. Open Package Controll and choose "Install Package".

  3. Select alternative_autocompletion.

Manual installation

Drop the entire folder in Sublime's Packages folder. You can do this using git clone thus:

$ cd .../Packages  # Whatever the location is

$ git clone git://github.com/alexstaubo/sublime_text_alternative_autocompletion.git

To map to the tab key it gets a bit more complex to preserve indentation behaviour:

Keyboard mappings

The default keyboard settings use the Escape key for autocompletion. To use the tab key instead you will need to add some complex custom keyboard mappings (Preferences -> "Key Bindings - User"). Copy the bindings found in Tabs.sublime-keymap.

Limitations

Currently does not work with multiple selections.

License

Copyright 2011 Alexander Staubo. MIT license. See LICENSE file for license.

More Repositories

1

ktail

A tool to easily tail Kubernetes container logs
Go
272
star
2

keywurl

Keywurl only supports Safari 4.x and earlier and is therefore deprecated.
Objective-C
86
star
3

mongrel_proctitle

This is a simple module which changes Mongrel's process title to reflect what it's currently doing. You can then determine a given Mongrel server's status using "ps".
Ruby
24
star
4

ruby-hdfs

Native Ruby bindings to Hadoop's libhdfs, for interacting with Hadoop DFS.
C
16
star
5

backbone-jquery-collectionview

Generic, reusable view that provides automatic view management and mouse drag/drop.
8
star
6

bysykkel

A tiny JavaScript app to get real-time map of Oslo bike sharing status
JavaScript
8
star
7

k8s-config-controller

A simple helper application for Kubernetes that is designed to reload an application whenever its configmap changes.
Go
5
star
8

go-diff

Go library for line-based diffing.
Go
4
star
9

jlf

jlf is a basic JSON line formatter
Go
3
star
10

prompt

Prompt is an exporter for Prometheus that spawns a set of registered exporters on demand as subprocesses.
Go
2
star
11

gce-metadata-exporter

Exporter for Prometheus that collects metadata from Google Compute Engine.
Go
2
star
12

foil

Foil is a fast, simple WebDAV proxy written in Ruby
Ruby
2
star
13

pfinn

Simple Finn.no scraper and Pinterest-like frontend, written in Haskell.
Haskell
1
star
14

hackernews_feed_generator

Generates a properly formatted feed for Hacker News (news.ycombinator.com)
Ruby
1
star
15

homebrew-ktail

Homebrew formula for ktail.
Ruby
1
star
16

yardbird

Yardbird produces REST API documentation in Markdown format, via Yardoc comments in Ruby code.
Ruby
1
star