# Categories with colon cause autocomplete issues

**URL:** https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647
**Category:** Bug
**Created:** [23 سبتمبر 2017، 7:15م UTC](https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647 "2017-09-23T19:15:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [23 سبتمبر 2017، 7:15م UTC](https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647/1 "2017-09-23T19:15:39Z")

</div>

Hello,

I have private subcategories with slug “private”. I mention them with `#org:private`

Unfortunately, when I entered the colon, I get suggestions for emojicons instead of categories (or sub categories).

Have a look here:

[https://global.discourse-cdn.com/meta/original/3X/0/e/0e01f75b9085eb1c6bdc80d04d8262e24b0311af.mp4](https://global.discourse-cdn.com/meta/original/3X/0/e/0e01f75b9085eb1c6bdc80d04d8262e24b0311af.mp4)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [24 سبتمبر 2017، 12:53ص UTC](https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647/2 "2017-09-24T00:53:55Z")

</div>

Thoughts on this @j.jaffeux?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [25 سبتمبر 2017، 6:58ص UTC](https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647/4 "2017-09-25T06:58:25Z")

</div>

Hmmm why are you including `:` in your category name, would it not be much simpler to call it `#org-private` then there is one less edge case to worry about.

There is a legit issue with the completion though cause `test:hamburger:` generates test:hamburger: and I incorrectly am getting the autocompleter here.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [25 سبتمبر 2017، 7:10ص UTC](https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647/5 "2017-09-25T07:10:18Z")

</div>

Yes I have the fix for not showing picker at that time, but filtering on sub categories when pressing : in a string starting with # would be a new feature and would require some non trivial changes to autocomplete.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [25 سبتمبر 2017، 7:11ص UTC](https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647/6 "2017-09-25T07:11:00Z")

</div>

I would just not worry about showing the emoji picker if it is directly after a letter. That is the bigger bug here.

---

<div class="post-metadata">

### Author: ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)
#### Post date: [25 سبتمبر 2017، 7:55ص UTC](https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647/7 "2017-09-25T07:55:18Z")

</div>

> [@sam](#):
>
> would it not be much simpler to call it #org-private then there is one less edge case to worry about.

I tried to remove redundancy in org:org-private in the category name and the path.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [30 أبريل 2019، 3:50م UTC](https://meta.discourse.org/t/categories-with-colon-cause-autocomplete-issues/70647/8 "2019-04-30T15:50:13Z")

</div>

“not worry about showing the emoji picker if it is directly after a letter.” ✅
