[`//stack`] Stack Selection

Aperta
#3,038 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
3.5k
Fork
981
Merge medio
2g 15h
PR unite (30g)
11

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di EngineHub/WorldEdit

Tutte le issue di EngineHub/WorldEdit

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.