Steve Howell
0e9e102324
Make the space key smarter for search typeaheads.
...
Hitting the space key accepts the current selection and allow you
to continue typing.
(imported from commit f902d051807b9296009896e40853bcefca434752)
2013-07-18 11:15:28 -04:00
Steve Howell
3af905db66
search.js: extract get_suggestion_based_on_query
...
(imported from commit 6c242fa9dd9ad9f73976fe9b1265521610326c5d)
2013-07-17 15:39:35 -04:00
Steve Howell
c9ec96cab3
search.js: Eliminate get_query and get_person
...
(imported from commit c785f33378a0a5a436d9a7cb236a4af29c94921a)
2013-07-17 15:39:35 -04:00
Steve Howell
98d2c5361f
search.js: Simplify get_person_suggestions
...
(imported from commit 44f22923a73633c5693a99ae9ce788f10cd5f505)
2013-07-17 15:39:35 -04:00
Steve Howell
c515ad4cbb
search.js: Simplify get_stream_suggestions
...
(imported from commit 0fd00a2f22cc0241945767b4bf1151b811f00a63)
2013-07-17 15:39:35 -04:00
Steve Howell
ed622c457b
search.js: eliminate action concept
...
(imported from commit 224997bd656a1c1b39260cf7fdec97988f9854b6)
2013-07-17 15:39:35 -04:00
Steve Howell
87e025602c
search.js: kill get_search_string
...
(imported from commit 5979832ba697386a660ca9cdc6487fa79257511b)
2013-07-17 15:39:35 -04:00
Steve Howell
c201354e6b
search.js: slice earlier when building typeahead objects
...
Slicing earlier means less work to do on items that were gonna
be sliced anyhow.
(imported from commit 743c51c478679a14f101e6cf7c14eafb9d719a58)
2013-07-17 15:39:34 -04:00
Steve Howell
e6e56ef97e
search.js: sort earlier when building typeahead objects
...
This sets up a later optimization.
(imported from commit 49d285ce4e30fff222c8160d12fd345b9afeb417)
2013-07-17 15:39:34 -04:00
Jessica McKellar
849b49b22d
Make "subject" an alias for the "topic" operator.
...
(imported from commit 52c11ff48a286533906b99ed62839e6ae3e35b17)
2013-07-17 12:04:46 -04:00
Jessica McKellar
1defcf5718
Support operator aliases, and introduce the first, from: canonicalizing to sender:.
...
This also normalizes the casing of operators, which makes
Sender:wdaher@humbughq.com work when it would previously give an
"unknown operator" error.
(imported from commit fb3f748a474e1c9c710547ae3c05a4ace86c3230)
2013-07-17 12:04:46 -04:00
Steve Howell
68f2991746
streams.js: Simplify narrow_or_search_for_term
...
(imported from commit 8b8faf7ec35acdb7c7506ea57890901e0e04af71)
2013-07-16 13:29:19 -04:00
Steve Howell
e3392eeca6
search.js: label -> search_string
...
(imported from commit 5201c0d7d242d060d405692ff166f7febfc581cd)
2013-07-16 13:29:19 -04:00
Steve Howell
f8cad17c75
search.js: kill off labels, mapped, update_typeahead()
...
(imported from commit e0320b5315762d1776ef198fe57663ee6b74d7f8)
2013-07-16 13:29:18 -04:00
Steve Howell
73f013f077
search.js: Simplify stream suggestions
...
(imported from commit b12395a2b3415065e0c25a637d22bc385dbdda8b)
2013-07-16 13:29:18 -04:00
Steve Howell
6e385bc85d
search.js: Simplify people suggestions
...
(imported from commit ff3683f63e85e4d021de299d62bf2585fd6b99d9)
2013-07-16 13:29:18 -04:00
Steve Howell
82233a5de9
search.js: Introduce search_object var
...
(imported from commit ce4b32891011c548b0b9f6851537f3110d0f2329)
2013-07-16 13:29:18 -04:00
Steve Howell
b4e05d3430
search.js: Construct descriptions while constructing suggestions.
...
(imported from commit 5de6d0799de6d132e6e7ac28658d0f25b71cc7ed)
2013-07-16 13:29:18 -04:00
Steve Howell
d216069e29
search.js: Kill off get_object_parts()
...
(imported from commit fabfa6c3bf8cb0749ba1379882eda8cb9c8316ed)
2013-07-16 13:29:17 -04:00
Steve Howell
ec7a5c0ea5
search.js: Simplify operators suggestion
...
(imported from commit 55f84b69be5e8f75a8e0ab5a7a00ba6f88873db8)
2013-07-16 13:29:17 -04:00
Steve Howell
9041b1f7ac
search.js: Isolate person suggestions
...
(imported from commit afec996b39b662c5000f7f2217e139b872bee990)
2013-07-16 13:29:17 -04:00
Steve Howell
200a4d2d83
search.js: Isolate stream suggestions
...
(imported from commit 627a57d0be0b53ed4027408be949c060e6674224)
2013-07-16 13:29:17 -04:00
Steve Howell
e2634042a0
search.js: Avoid sorter callback
...
(imported from commit d930af6e0beca6165c750dfecf85b092475e868c)
2013-07-16 13:29:17 -04:00
Steve Howell
ba71dd212b
search.js: Avoid matcher callback
...
(imported from commit aa5289b174dfeb3e89debc344b106a8446b4f6a5)
2013-07-16 13:29:17 -04:00
Steve Howell
eca2ca675b
search.js: Decouple object labeling from object rendering.
...
(imported from commit f761401d3e287aa2771ce4203f1b2b8f57c7ca86)
2013-07-16 13:29:17 -04:00
Steve Howell
0a7b5e5b6b
Rename render_object_in_parts to get_object_parts
...
(imported from commit b040bb60d166a2f904c8d1280fb51693e0d50977)
2013-07-16 13:29:17 -04:00
Steve Howell
b4dd0efc74
Move describe() from narrow.js to search.js.
...
(This function is only used in the search code.)
(imported from commit 44d53fbd73be56d9d416ebcafdc517c686e7adf8)
2013-07-16 13:29:16 -04:00
Steve Howell
249252f700
Put spaces after "function" in JS code (cosmetic).
...
(imported from commit 7579547bfed70b3e53122109d0d6f30ea01f5ac3)
2013-07-05 16:32:32 -04:00
Kevin Mehall
9322e63d32
Refactor typeahead for user names (PM and @reply).
...
Get data directly from the main user list, rather than maintaining a
separate list just for autocomplete.
Fixes trac #1362 -- Does not depend on historical messages, so
will do the correct autocomplete after a single reload.
(imported from commit 6b35a709dba3384530082e8cfacf0151f9e0eb26)
2013-06-18 17:52:39 -04:00
Leo Franchi
0524c14c8c
Ignore leading spaces in search box
...
(imported from commit 098a8f288c8264cc804b737f804b866c64c0ff5b)
2013-05-31 12:24:30 -04:00
Zev Benjamin
d35c8f0c81
Track what user action triggered a narrow
...
(imported from commit 2b110dc27334e4b823810bfef13c3d10d36b3886)
2013-05-21 17:56:49 -04:00
Steve Howell
cee31a4f4e
Fix unescaped angle brackets in search typeahead.
...
This was a pretty recent regression in the logic for
highlighting search typeaheads.
(imported from commit ba226f9cc7d6b09744ea07ef516fee280f23e048)
2013-05-09 10:35:46 -04:00
Steve Howell
58c1110635
Put streams lower in typeaheads and kill off some dead code related to search
...
(imported from commit c7d50f44a4de6cc5049e51ef4b671cc49902c466)
2013-05-09 10:35:46 -04:00
Steve Howell
96100bb42a
Highlight search typeaheads for streams
...
(imported from commit e8725fe8c4f4985d46e48fdab5003e3e9def9bd1)
2013-05-09 10:35:46 -04:00
Steve Howell
667a47755e
Highlight search typeaheads for senders
...
(imported from commit 80e16d47507b0c23103aa1e574961cc5e29cac6e)
2013-05-09 10:35:46 -04:00
Steve Howell
e47b98df38
Highlight search typeaheads for private messages
...
(imported from commit e3c5525255c70e507f33f24fc305d4a268c87e42)
2013-05-09 10:35:46 -04:00
Steve Howell
64ba2864bc
Match names w/prefix and turn off highlighting.
...
(imported from commit 4ebc4aba5d05173ad6b8176d47fdf062e23c1441)
2013-05-09 10:35:45 -04:00
Steve Howell
0f75cbd30f
Match any word in stream for typeahead queries
...
(imported from commit bd6ee91ae880c7fb3dd118cd2f024820ced73466)
2013-05-09 10:35:45 -04:00
Steve Howell
de8106d923
Refine search (sort people by # of pms, limit streams to prefix-only).
...
Also minor configuration changes and no need to clone list.
(imported from commit 9f9c7259ed479fc29cd66fe260d9d81017e5f48f)
2013-05-09 10:35:45 -04:00
Steve Howell
0164d9f757
Search typeahead has more suggestions and sorting.
...
(imported from commit 5386be57e7f0b820e1a9cbd166c9c43e5e72215b)
2013-05-09 10:35:45 -04:00
Zev Benjamin
c08a86aeb9
Use server-highlighted subject and content when narrowed to a search
...
(imported from commit 0579193da040db77f9c7937d3714cb9ffeaf7ed8)
2013-04-30 11:40:27 -04:00
Keegan McAllister
6d9aca5f1a
Move "page parameters" (email, enter_sends, etc) into a single object
...
(imported from commit 842b2371bf6364982f1358f1cd2d91118c7fb2bf)
2013-03-26 13:50:03 -04:00
Waseem Daher
c41fa46fb4
Always show the searchbar 'x'.
...
This simplifies a bunch of fragile resizing logic in our code,
and also addresses the Chrome Canary bug where clicking in the
searchbox causes the navbar to get huge.
This fixes Trac #764 and Trac #1039
(imported from commit fc8c3995109de384b71dfba2b986a8500ff7f08d)
2013-03-06 15:06:35 -05:00
Tim Abbott
a92f2a5229
Rename 'Narrow to messages containing' to 'Search for'.
...
(imported from commit 147164bb96bb4fdb451454956ac56f5d3b2424b6)
2013-03-05 09:32:59 -05:00
Tim Abbott
ee3662d1da
Move 'Narrow to' to text inside narrow.describe().
...
(imported from commit a5ccce0034f4c70b71958b26b60521b779837377)
2013-03-05 09:32:59 -05:00
Tim Abbott
021052a247
search: Remove unused variable search_active.
...
(imported from commit ebb907742fd38f60116fb0fe46fa622abd3b23e0)
2013-03-04 17:57:21 -05:00
Tim Abbott
d5a185dca8
Add highlighting of search terms in "messages containing" narrows.
...
(imported from commit 47fca2f20650c32e976ab01e213463d4fb4ed655)
2013-03-04 17:57:20 -05:00
Luke Faraone
d88107567a
Remove "find in page" functionality.
...
This was a source of user confusion and didn't provide that much value.
(imported from commit fbe9405d8bc4cb6661baa7fe7583eab5ed73d886)
2013-03-04 10:59:41 -05:00
Tim Abbott
096df2d3da
typeahead_helper: Rename render_pm_object and cleanup usage.
...
(imported from commit 28bca00802e189daed22dcabba1241ef2625536e)
2013-02-28 17:49:57 -05:00
Tim Abbott
49af19aa71
Add support for narrowing by a message's sender.
...
Fixes #972 .
(imported from commit 2514d14c94a071f2b3e6149a2bdaeaa00e0c847f)
2013-02-28 17:49:57 -05:00