Automagic ctrl+t filename completion to launch in your favorite editor
Project description
completeme
completeme is a python script that’ll allow you to auto-complete filenames and launch them in an editor, much like GitHub’s ‘t’ keyboard shortcut. Rather than tab-completing to oblivion (ever worked on a Java project?), just start typing the name of the file, and when you hit enter, it’ll open that file in your favorite $EDITOR. Uses files stored in the current GitHub repository and falls back on all files below the current working directory.
Make sure to add `source setup_completeme_keybinding.sh` (wherever it gets installed) to your .bashrc to enable Ctrl+t support!
Known issues
Currently, the git search (ls-tree) lists only the files under source control at or beneath this directory. Do we want to support querying all files in the git repository, regardless of which subdirectory you’re in? If so, we’ll want to use the –full-tree option. Related, this won’t pick up new files in your git repository.
Wishlist
I wish I didn’t have to run the $EDITOR command in the script. Wouldn’t it be neat if Ctrl+t could just output the filename into my current prompt? Then, you can autocomplete for anything, not just your text editor.
It’d also be neat to specify a different directory that you’d like to autocomplete, not just the current working directory, though perhaps that’s beyond the scope of this project.
License
This software is licensed under the WtHYWv2 (Whatever the Hell You Want, v2). Please throw some credit around if it’s deserved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.