# Javascript live filter like textmate command-t

**URL:** <https://www.ruby-forum.com/t/javascript-live-filter-like-textmate-command-t/125741>\
**Category:** Rails\
**Created:** [January 11, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/javascript-live-filter-like-textmate-command-t/125741 "2008-01-11T17:02:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [January 11, 2008, 5:02pm UTC](https://www.ruby-forum.com/t/javascript-live-filter-like-textmate-command-t/125741/1 "2008-01-11T17:02:50Z")

</div>

I’m trying to create a list that can be filtered with javascript as  
you’re  
typing in a text box. I am basically trying to duplicate the textmate  
command-t feature. I am currently using a text field autocomplete to  
choose  
an item on a form and submitting it but the list I am working with is  
very  
long and I would rather kill the form and have each list item be a link  
instead. Basically users would type in the filter box until they see  
the  
item they want and click it, just like in textmate.

I don’t want to use a field observer bc of speed and server load so I  
need  
it all to happen in the browser. Is there a way to do this with rjs or  
do I  
need to create a straight out javascript solution?

---

<div class="post-metadata">

**Author:** ![dacbo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b9e5f3/32.png) [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Post date:** [January 11, 2008, 8:30pm UTC](https://www.ruby-forum.com/t/javascript-live-filter-like-textmate-command-t/125741/2 "2008-01-11T20:30:12Z")

</div>

Chris B. wrote:

> need it all to happen in the browser. Is there a way to do this with  
> rjs or do I need to create a straight out javascript solution?
> 
> >

Not sure I’m quite getting where you’re coming from, particularly the  
bit about using field observer bc of speed and server load (which is  
more to do with whether you do a query after each character has been  
typed rather than whether you use a field observer), but I did a post a  
while back which might help…

> **[Solving the live-search/slow mongrel process problem](https://pushrod.wordpress.com/2007/12/18/solving-the-live-searchslow-mongrel-process-problem/)**
>
> I’ve been using the excellent nginx ever since I put Autopendium :: Stuff about old cars, the classic car community website I run, into production. Now there’s another reason for using …

## –

Autopendium :: Stuff about old cars  
[http://autopendium.com](http://autopendium.com)
