As useful as the escape key is, it would be nice to have visual feedback for auto completion. What would it take to build this? I think Xcode does it best, but I have seen a few fledgeling editors like Textastic and Chocolat implement basic auto complete quite well in the early stages.
Thanks
-Sam
On 2015-02-25 16:23, Sam Scherer wrote:
As useful as the escape key is, it would be nice to have visual feedback for auto completion. What would it take to build this? I think Xcode does it best, but I have seen a few fledgeling editors like Textastic and Chocolat implement basic auto complete quite well in the early stages.
It's already possible to do. Look at the "Completions for Word..." bundle item in the PHP bundle.
Jacob Carlborg wrote
It's already possible to do. Look at the "Completions for Word..." bundle item in the PHP bundle.
That's not quite the same, and it also only works in HTML/PHP blocks. Chocolat's auto-complete shows as you are typing, it doesn't require a hotkey, and it's context aware so it will lookup functions, classes, etc in your document. Here's a screenshot (this is what is showing after typing in "self.", the autocomplete also offered "self" as an autocomplete option as I was typing it): http://cl.ly/image/3N2j0T0G2O0b, and here is the info on autocomplete from Chocolat's documentation.
I agree with Jacob, this would be a fantastic addition to Textmate, and it's something I wish for frequently. It would definitely make me a lot more productive.
/(Sorry for the repost, I hadn't properly subscribed to the mailing list when I first posted this)/
-- View this message in context: http://textmate.1073791.n5.nabble.com/Xcode-like-auto-completion-tp28998p290... Sent from the textmate users mailing list archive at Nabble.com.
On Mar 17, 2015, at 12:03 AM, timd.mackey timd.mackey@gmail.com wrote:
That's not quite the same, and it also only works in HTML/PHP blocks. Chocolat's auto-complete shows as you are typing, it doesn't require a hotkey, and it's context aware so it will lookup functions, classes, etc in your document.
If I recall right Allan is against such intrusive auto-complete, so it wasn’t on his to do list the last time someone asked. If someone implements it though and makes it optional I’m pretty sure he’ll gladly accept the pull request.
On 17 Mar 2015, at 15:47, Igor wrote:
If I recall right Allan is against such intrusive auto-complete, so it wasn’t on his to do list
I don’t think I have said I am against it, it’s just not a major priority because I work perfectly fine without it, although I did recently make several updates to the C and Objective-C completion indexes: https://github.com/textmate/objective-c.tmbundle/commits/master
This was all based on libclang, it’s unclear if the OP is talking about completion for Objective-C (the topic is “Xcode”) or some other language. There is close to no code-reuse for auto-completion for different languages, so supporting auto-completion for all the languages that are used with TextMate would require a lot of work…