[`//stack`] Stack Selection

Đang mở
#3,038 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
cli

Hướng nghiên cứu

Start by reading the //stack command implementation and its flag parsing, then check the command's documentation and tests for the current -s behavior. Determine whether that behavior is intentional before choosing whether to change it or add a distinct flag. Done means the requested selection includes the original and every pasted instance, the behavior is covered by tests, and the flags are documented.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

status:accepted type:feature-request
The Problem

According to the docs, there is currently no -s flag on the //stack command to also stack the selection.

There is actually an undocumented effect of -s to //stack, though not what I would expect. Currently specifying -s leads to a selection around the last pasted instance of the stack.
What I would expect is for the selection to include the original and all pasted instances.

Use case: Currently, stacking in two directions requires two commands and adjusting the selection inbetween. This feature would make the middle step obsolete.

//stack 3 east
[Adjust selection, could be replaced by -s]
//stack 3 north
A Solution
  • If current -s behaviour is unintentional: Change the flag to the behaviour described above.
  • If current -s behaviour is intentional: Add a new flag that has the behaviour described above (e.g. -ss, if duplicate letters are no problem, although I suspect they are).

In both cases, the flags should be added to the documentation.

Alternatives

No response

Anything Else?

No response

Ngôn ngữ chính
Java
Star
3.5k
Fork
981
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của EngineHub/WorldEdit

Tất cả issue của EngineHub/WorldEdit

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.