按住 Shift+Click 选择多个主题,就像在 Gmail 中一样

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(包括 B)的所有项目。例如,如果我想选择 A 到 B 之间的 20 个主题,但显示了 100 多个项目,“全选”将选择 100 个项目,而我只需要选择 20 个项目。

另外,我在 MacOS 的 Firefox 中测试,Shift+选择对我不起作用。

您会考虑实现 Shift+选择吗?每当我选择多个主题时,我都觉得缺少这个功能,而且我总是忘记 Discourse 没有这个功能——因为它在其他地方都是这样工作的,所以直觉是当我想要选择 A 和 B 之间的所有项目时使用它。

我只想补充一点,在 Windows 中,即使文件列表视图中的复选框已打开,您仍然可以通过单击 FileA+Shift+FileB 来选择 A 和 B 之间的所有文件。MacOS 也是如此。这是普遍的 UI 约定。

1 个赞

我认为这是一个很好的功能请求,当它第一次被提出时,但我没有时间尝试添加它。我今天有一些时间,所以我试了一下,提出了这个 PR 草稿:

请注意,我们非常非常接近发布,所以这至少要几周后才能合并到核心。

3 个赞

此主题在 2 天后自动关闭。不再允许回复。