I use TextMate (OSX) for developing and it has a rather nice word completion feature that you access by typing part of a word and pressing ESC. It searches for a match in your document and adds the word at the cursor point, subsequent taps of ESC offer up more suggestions (if there are any).
When I was working on NTRQ, the project was split into a lot of .ASM and .H files (OK, lets's not get pedantic about the .h extension ) and because of this the word completion feature seemed somewhat limited because it's scope is the file you are editing.
TextMate is very extendable with loads of add-on functions for all kinds of languages so I looked into the idea of trying to expand the word completion to search external files too. That way, if your variables/constants are defined in another file, typing part of it and pressing ESC would pull the variable name from the other source file.
Anyway, after some digging around and trial and error I managed to make it work with a composite unix command;
It's probably of limited use to people but if there are any TextMate users that are using it to code, you might find it useful.
When I was working on NTRQ, the project was split into a lot of .ASM and .H files (OK, lets's not get pedantic about the .h extension ) and because of this the word completion feature seemed somewhat limited because it's scope is the file you are editing.
TextMate is very extendable with loads of add-on functions for all kinds of languages so I looked into the idea of trying to expand the word completion to search external files too. That way, if your variables/constants are defined in another file, typing part of it and pressing ESC would pull the variable name from the other source file.
Anyway, after some digging around and trial and error I managed to make it work with a composite unix command;
Code:
{ completionCommand = 'grep -oh "\w*${TM_CURRENT_WORD}\w*" ${TM_DIRECTORY}/*.asm ${TM_DIRECTORY}/*.h | sort | uniq'; }
It's probably of limited use to people but if there are any TextMate users that are using it to code, you might find it useful.