# Moving posts: when only option is "existing topic", autofocus input field

**URL:** https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878
**Category:** Feature
**Created:** [1월 30, 2019, 3:30오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878 "2019-01-30T03:30:36Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [1월 30, 2019, 3:30오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/1 "2019-01-30T03:30:36Z")

</div>

When you’re moving posts, and the only option is to move it to an existing topic (for example, when you’re moving the only post in a topic), it would be great if the search input was focussed by default:

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

This is quite common on the forum I administer when people make duplicate suggestions in our “suggestions” category. 🙂 It’s a matter of only a few seconds, but ergonomically it makes sense to me. 😉

---

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [1월 30, 2019, 3:32오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/2 "2019-01-30T03:32:33Z")

</div>

It’d also be great if, when there’s only one matching topic, that were selected by default, too. Perhaps only when the ID is entered, though?

---

<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: [1월 30, 2019, 6:43오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/3 "2019-01-30T06:43:49Z")

</div>

> [@barryvan](#):
>
> When you’re moving posts, and the only option is to move it to an existing topic (for example, when you’re moving the only post in a topic),

Er what? This is never the case. You can _always_ move a post to

- a new topic
- an existing topic
- a new personal message

---

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [1월 30, 2019, 6:56오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/4 "2019-01-30T06:56:48Z")

</div>

Hmm… Well, I’m definitely seeing this on my site:

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/8/c86da817842f8b538a64b3caca0fe2969accd79a.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/a/0ab5e12d979722f297f130b00d37aae446794cc7.png)

This is from a topic that only has one post in it, and I’m moving that post only.

---

<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: [1월 30, 2019, 7:19오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/5 "2019-01-30T07:19:16Z")

</div>

Hmm. I’m not sure why you would only see that option.

I have also selected one post in a topic that contains only one post, and I see..

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/c/0cb347826ce2826ccd0c6f37e9b363505d0981ab.png)

Any thoughts here @techAPJ?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [1월 30, 2019, 7:33오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/6 "2019-01-30T07:33:20Z")

</div>

Related?

> [@Selected posts can't be moved to a new topic](https://meta.discourse.org/t/selected-posts-cant-be-moved-to-a-new-topic/107586?u=stephen):
>
> It’s only allowing me to move to an existing topic: [35] Is this a bug or has some setting changed or been introduced?

---

<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: [1월 30, 2019, 7:45오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/7 "2019-01-30T07:45:38Z")

</div>

Oh interesting possibly. Did you press “select all” instead of manually selecting the one post in the topic @barryvan

---

<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: [1월 30, 2019, 8:20오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/8 "2019-01-30T08:20:46Z")

</div>

I got that behavior just now by selecting the OP of a topic with no replies. If I hadn’t intentionally tried it I would not have known. Any time I have wanted to “move” an entire topic to a new topic, I have always recategorized it using the topic title edit.

---

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [1월 30, 2019, 12:38오후 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/9 "2019-01-30T12:38:33Z")

</div>

It seems to happen regardless of whether I use the “select all” option or choose the post individually.

I figured this was intentional – as @Mittineague notes, there’s not much point in moving a single post topic into a new topic. 😉

---

<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: [1월 30, 2019, 12:49오후 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/10 "2019-01-30T12:49:15Z")

</div>

Oh, OK. My bad. So this is “normal” if you select the first post in a topic with no replies. 🤷‍♂️

---

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [1월 30, 2019, 11:53오후 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/11 "2019-01-30T23:53:08Z")

</div>

That being the case, do you think there’s any validity in the original suggestions? That is, in this case, focus the search input automatically, and, if you enter an ID, automatically select that item?

---

<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: [1월 30, 2019, 11:53오후 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/12 "2019-01-30T23:53:43Z")

</div>

It’s such a rare case I’m not sure it’s worth a lot of engineering time.

---

<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: [1월 31, 2019, 5:55오전 UTC](https://meta.discourse.org/t/moving-posts-when-only-option-is-existing-topic-autofocus-input-field/107878/13 "2019-01-31T05:55:55Z")

</div>

I experimented locally and was able to add this feature fairly easily via:

[https://github.com/discourse/discourse/commit/4786b7ff812ae2e2563ec10df6cf4ba46645b49e](https://github.com/discourse/discourse/commit/4786b7ff812ae2e2563ec10df6cf4ba46645b49e)
