GmailのようにShift+Clickで複数のトピックを選択

Would it be possible to implement Shift+Click to select multiple topics in a topic list? If not, can we make it a feature request?

「いいね!」 3

Select them like this?

image

If shift-click is implemented, it might break the standard browser shortcut for opening links in new windows.

It will not if you only handle “Shift” when clicking on those checkboxes.

So, the confusion here is that that’s exactly what I’m talking about - I mean holding Shift while clicking on those checkboxes.

「いいね!」 1

Sorry, I thought you meant “multiple select” by clicking on the topics themselves. I see what you mean now.

This makes no sense. Once you expand the selector you can click all the checkboxes you like, there is no need to hold down shift.

In any OS, when multiple files are shown in a list, it somehow makes sense to allow Shift + click to select a range of files. Why doesn’t it make sense in a list of topics?

It already works this way, without the need to press shift. The shift-click paradigm is usually for selecting things that are not checkboxes; checkboxes conventionally allow multiple selection without shift.

It doesn’t. You are confusing Shift vs Command on MacOS (Shift vs Ctrl on Windows).

If you have 5 files:

A
B
C
D
E

Click on file A, then hold Shift, then click on file D - all 4 files from A to D will get selected.

And that’s what the topic title says! Shift + Click

If you try the same with checkboxes in Discourse, it does not work this way.

「いいね!」 1

:+1: ah, makes sense.

I see what you mean, but usually there is a “select all” button in web design, e.g.

So there’s less need for a shift+click when you can Select All via the button… and heck now that I’m testing it, actually shift+click works fine in this scenario for me?

待ってください、「すべて選択」と「Shift+選択」ではかなりの違いがあります。「すべて選択」では必要以上の項目を選択できてしまうのに対し、Shift+選択 A-B は A から B までのすべての項目を選択します。例えば、100 件以上表示されている中で A から B までの 20 件のトピックを選択したい場合、「すべて選択」では 100 件選択されてしまいますが、必要なのは 20 件の選択だけです。

また、Firefox for MacOS でテストしたところ、Shift+選択は何も機能しませんでした。

Shift+選択の実装を検討していただけますでしょうか?複数のトピックを選択する際、この機能が不足していると感じており、Discourse ではこのようにならないことを忘れてしまいがちです。他のすべてではこのように機能するため、A と B の間のすべての項目を選択したい場合にそれを使用するのが直感的です。

Windows では、ファイルリストビューでチェックボックスがオンになっていても、FileA+Shift+FileB をクリックすることで A と B の間のすべてのファイルを選択できることを付け加えておきます。MacOS でも同様です。これはどこでも一般的な UI の慣習です。

「いいね!」 1

この機能リクエストは、最初に提起されたときに良いものだと思いましたが、追加する時間がありませんでした。今日少し時間ができたので、試してみて、このプルリクエストのドラフトを作成しました。

リリースが非常に近いため、コアにマージされるのは少なくとも数週間後になることに注意してください。

「いいね!」 3

このトピックは2日後に自動的に閉じられました。返信はもう受け付けられません。