Tag completion mode for emacs or the like?
April 18, 2006 7:34 AM
Subscribe
I have a huge list of unique identifiers. A person needs to enter, for each one of those identifiers, a list of tags, and I'd like to make it really easy for them to tab-complete those tags, based on the ones they've already entered.
For example:
CAT mammal, animal, has-whiskers, has-fur, enjoys-petting
I want to make it really easy for them to enter those properties. When they start, no properties will have been defined yet. Each time they enter a new one, a new property gets defined.
So, after hitting return after typing 'enjoys-petting', their cursor will be after
DOG
I'd like them to be able to type 'm', and have some sort of way to see the "mammal" completion on the screen somewhere, and hitting tab or somesuch should accept the completion. If they typed 'h', they should see both 'has-whiskers' and 'has-fur'; hitting tab should complete it up to 'has-'; if they then type 'f', the completion list should dwindle to 'has-fur', and ... you get the idea.
Is there some editor that would make this trivial? This isn't (or doesn't have to be) web-based - it's all going to be done by one or two people. It'd probably be best, I think, if it were implemented as something like an emacs mode. Anyone have the emacs-fu do make this happen? Or any other bright ideas? I just know this is close to trivial.
posted by dmd to computers & internet (10 comments total)
posted by Leon at 7:55 AM on April 18, 2006