# 重命名标签应预先填充现有名称的文本字段

**URL:** https://meta.discourse.org/t/rename-tag-should-pre-populate-text-field-with-existing-name/159980
**Category:** UX
**Created:** [2020年八月6日 05:45 UTC](https://meta.discourse.org/t/rename-tag-should-pre-populate-text-field-with-existing-name/159980 "2020-08-06T05:45:31Z")
**Posts on this page:** 5
**Page:** 1

<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: [2020年八月6日 05:45 UTC](https://meta.discourse.org/t/rename-tag-should-pre-populate-text-field-with-existing-name/159980/1 "2020-08-06T05:45:31Z")

</div>

重命名标签时，文本框初始状态为空白。

通常，我只是想进行一些小的调整，比如在单词之间添加连字符。如果该字段能默认设置为当前名称，将会更有帮助。

（小建议）

---

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [2020年八月6日 07:43 UTC](https://meta.discourse.org/t/rename-tag-should-pre-populate-text-field-with-existing-name/159980/2 "2020-08-06T07:43:37Z")

</div>

我超爱这个想法 💯

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

---

<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: [2020年八月10日 01:46 UTC](https://meta.discourse.org/t/rename-tag-should-pre-populate-text-field-with-existing-name/159980/3 "2020-08-10T01:46:22Z")

</div>

我们会解决这个问题，但可能需要几周时间。在此期间，欢迎提交 PR。

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2020年九月10日 16:26 UTC](https://meta.discourse.org/t/rename-tag-should-pre-populate-text-field-with-existing-name/159980/5 "2020-09-10T16:26:08Z")

</div>

通过以下方式完成：

> <https://github.com/discourse/discourse/commit/296c707f55572c8b8a28d2d2acdcf090a19c6f06>
>
> FIX: tags\_filter\_regexp was not being applied on tag rename

同时修复了 `tags_filter_regexp` 在标签重命名时未生效的问题。

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2020年九月12日 12:36 UTC](https://meta.discourse.org/t/rename-tag-should-pre-populate-text-field-with-existing-name/159980/6 "2020-09-12T12:36:32Z")

</div>

此主题在 25 小时后自动关闭。不再允许新回复。
