Files: context menu on right-click in the empty area of the file list
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start from apps/files/src/components/FileEntryMixin.ts and trace onRightClick to see how row and selection menus open, then find the container component that renders the file list. Add a contextmenu handler there that reuses the UploadPicker "New" menu when nothing is selected and actionsMenuStore.opened = 'global' for a multi-selection, and check where --mouse-pos-x/y are set and cleared on main.app-content. Done when empty list space, the footer and the empty-folder view open the right menu while rows, inputs and breadcrumbs keep native behaviour.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
[!TIP]
Help move this idea forward
- Use the 👍 reaction to show support for this feature.
- Avoid commenting unless you have relevant information to add; unnecessary comments create noise for subscribers.
- Subscribe to receive notifications about status changes and new comments.
Is your feature request related to a problem? Please describe.
In Files, right-clicking a file or folder row opens the Files actions menu. Right-clicking anywhere else in the file list opens the browser's native context menu instead. That includes the empty space below the rows, the summary footer and the empty-folder view. This also happens when items are selected, so there is no right-click way to reach the actions for the selection unless you hit one of the selected rows.
Users coming from desktop file managers (and other web drives) expect a context menu in the empty area. They reported it as missing.
Seen on Nextcloud 35 (list and grid view). The row handling is onRightClick in apps/files/src/components/FileEntryMixin.ts. Nothing handles contextmenu on the list container.
Describe the solution you'd like
A Files context menu, opened at the mouse, for right-clicks in the empty area of the file list:
- nothing selected: the "New" menu of the current folder (New folder, Upload files, templates, …), i.e. the UploadPicker menu, as long as the user can create in this folder
- items selected: the batch actions menu for the selection. Today this is what a right-click on a selected row opens when more than one item is selected (
actionsMenuStore.opened = 'global').
Rows, inputs, the breadcrumbs and a second right-click while the menu is open could keep the current behaviour (the native menu).
Describe alternatives you've considered
We currently ship a small script in a custom app that listens for contextmenu on the document. It opens the existing menus by clicking their toggles (.files-list__header-upload-button, [data-cy-files-list-selection-actions]) and moves the popover to the cursor. It works, but it depends on the DOM structure and will break with UI changes, so a native solution would be much better.
Additional context
Related: #41223 (right-click on breadcrumbs), #53342 (details of the current folder).
One detail we noticed while doing this: --mouse-pos-x/y set on main.app-content by onRightClick are only removed by the per-row openedMenu watcher. After a right-click on a multi-selected row (global menu), they stay set, and the next menu inside the app content opens at the old cursor position.
- Ngôn ngữ chính
- PHP
- Star
- 37.6k
- Fork
- 5.4k
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 623
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/server
-
[Bug]: Axios Update NeededĐang mở0. Needs triage 35-feedback bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
34-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: GET /js/../<anything> returns 500 (NotPermittedException from JsController::getJs) instead of 404Có thể đã có người làm @lazerg đã nhận 7 ngày trước. Đang mở35-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Dashboard widgets registered via OCA.Dashboard.register() sometimes never mount (spinner forever) – Vue 3 non-deep `callbacks` watcher raceCó thể đã có người làm @lazerg đã nhận 7 ngày trước. Đang mở35-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
sonata-project/SonataAdminBundle#8426 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
erkamyaman/rust-anything#942 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CPU core labels missing for Low-Power E-cores on hybrid Intel CPUs (Arrow Lake-H) — get_intel_core_types() ignores /sys/devices/cpu_lowpowerCó thể đã có người làm @dgongut đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày