# Mentioning Categories instead of Groups?

**URL:** https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697
**Category:** Feature
**Tags:** markdown-it-review
**Created:** [April 11, 2014, 8:10pm UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697 "2014-04-11T20:10:55Z")
**Posts on this page:** 18
**Page:** 5

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 4, 2016, 6:57am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/83 "2016-02-04T06:57:18Z")

</div>

Nooo it is supposed to appear as #moderation. The postfix should only appear in the composer. Off to figure out why…

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 4, 2016, 7:21am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/84 "2016-02-04T07:21:03Z")

</div>

[https://github.com/discourse/discourse/commit/c99775ebdb6324459dcfc65d32bff475bec112b3](https://github.com/discourse/discourse/commit/c99775ebdb6324459dcfc65d32bff475bec112b3)  
[https://github.com/discourse/discourse-tagging/commit/ea1c930ba7703e43e1aa144a63b7f48fff5218c9](https://github.com/discourse/discourse-tagging/commit/ea1c930ba7703e43e1aa144a63b7f48fff5218c9)

Fixed and deploying soon… I added more tests so this shouldn’t break again!

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 4, 2016, 8:31am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/85 "2016-02-04T08:31:10Z")

</div>

Yay checkout the new #tags hashtag

---

<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: [February 4, 2016, 8:37am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/86 "2016-02-04T08:37:05Z")

</div>

Testing…testing… #tagging::tag

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [February 4, 2016, 10:45am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/87 "2016-02-04T10:45:16Z")

</div>

There’s a problem with the autocomplete popup. It doesn’t disappear when I hit backspace and delete the # character.

 ![](https://global.discourse-cdn.com/meta/original/3X/f/e/fe618f3d9c08cdeccdb70de4707f1cb6014bb335.gif)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 4, 2016, 2:34pm UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/88 "2016-02-04T14:34:58Z")

</div>

O my… Let me have a look tomorrow.

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 5, 2016, 8:59am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/89 "2016-02-05T08:59:47Z")

</div>

Fixed!

[https://github.com/discourse/discourse/pull/3994](https://github.com/discourse/discourse/pull/3994)

It was actually an autocomplete bug XD

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 10, 2016, 7:55am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/90 "2016-02-10T07:55:09Z")

</div>

A post was merged into an existing topic: [Long category names overlap with replies on suggested topics list](https://meta.discourse.org/t/long-category-names-overlap-with-replies-on-suggested-topics-list/33231)

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [February 8, 2016, 4:19pm UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/91 "2016-02-08T16:19:17Z")

</div>

Category mentions do not works if the category or subcategory have letters (the last in my case) with accents.  
See:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/9/9961541a0f8a20662507139b56efd7cfea32e2df.png)

Plus I have some problems with css but I open another thread for this.

I have some problems with tag mentions too. The autocomplete is very slow in some case and it do not appears after I type the underscore and the first letter of the second word.  
See:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/6/164aa1e2986df7c402fcd17bc2fc432150ae87e5.gif)

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 10, 2016, 9:32am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/93 "2016-02-10T09:32:36Z")

</div>

> [@Trash](#):
>
> Category mentions do not works if the category or subcategory have letters (the last in my case) with accents. See:

This is going to be tricky… Unlike usernames, category names and slugs have no restriction on what letters are being used. Right now the dialect only allows `\w` which only covers `a-zA-z0-9_`. I did work on a similar issue once and I ended up having to import a bunch of letter character classes.

> [@Trash](#):
>
> The autocomplete is very slow

Hmm no repro for this. I do see in your gif that the autocomplete doesn’t appear for `feat`. Do you have a site I can access to try it for myself?

> [@Trash](#):
>
> I type the underscore and the first letter of the second word.

Ah thanks for this report. Fixed in

> <https://github.com/discourse/discourse-tagging/pull/55>
>
> https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/91?u=…tgxworld

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [February 10, 2016, 11:26am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/94 "2016-02-10T11:26:00Z")

</div>

> [@tgxworld](#):
>
> Unlike usernames, category names and **slugs** have no restriction on what letters are being used.

I’m surprised slugs are less restricted than usernames. All-around stricter slugs seems logical to me. Am I missing something?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [February 10, 2016, 11:28am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/95 "2016-02-10T11:28:39Z")

</div>

Less strict in the sense that the character letters classes are not restricted to just `a-zA-z0-9_` 😄

![](https://global.discourse-cdn.com/meta/original/3X/7/f/7f46aabc4909f857a9ed8c0eb058d552bea9734d.png)

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [March 12, 2016, 12:29pm UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/96 "2016-03-12T12:29:08Z")

</div>

Is there a simple way to add a post/topic to the category/tag it is mentioning?

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [March 12, 2016, 1:51pm UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/97 "2016-03-12T13:51:12Z")

</div>

No more simple than what you can do already: Go to the top of the topic and edit the category.

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [March 12, 2016, 1:59pm UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/98 "2016-03-12T13:59:28Z")

</div>

:)! han, it seems that i make it the wrong way again.

I want to be able to tag posts and not just topics, i’m not a full-stack developer, and currently i’m trying to figure out how i can do this without much need to write a complex code.

an alternative which came to my mind was to use this mentioning-tag feature, create some tags, and let the users use hashtags as usual. but when one mentions a tag, the post/topic doesn’t appear for in teh tag-listed topics.

now the question, is there a simple way to add a post to the tag/category it’s mentioning?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [March 12, 2016, 2:38pm UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/99 "2016-03-12T14:38:01Z")

</div>

> [@Pad\_Pors](#):
>
> now the question, is there a simple way to add a post to the tag/category it’s mentioning?

Sorry, no, this isn’t on our roadmap.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [March 12, 2016, 9:33pm UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/101 "2016-03-12T21:33:59Z")

</div>

I think of the “mentions” as a kind of convenient short-cut.

Any kind of scheme that I can think of to target specific posts would need ways to both target the topic id and the post id eg.  
`#cat_id-topic_id-post_id`

By the time all that is determined, it would be a lot easier to simply _link_ to the post.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 26, 2016, 3:36am UTC](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697/102 "2016-05-26T03:36:59Z")

</div>



[Previous page](https://meta.discourse.org/t/mentioning-categories-instead-of-groups/14697.md?page=4)
