Delete by word doesn't delete word boundary characters

Aperta
#4,141 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp, powershell
Ambito
cli

Direzione di ricerca

Reproduce the issue in PSReadLine using the command and Ctrl-W or Ctrl-Backspace sequences shown, then compare the resulting cursor states with bash. Trace the word-deletion behavior and determine whether completion should remove the associated quotes, dashes, and other boundary characters; done means the three states match the requested bash-like results.

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

Descrizione

Issue-Enhancement Needs-Triage :mag:
Summary of the new feature / enhancement

Say I have the following command written out (where "|" represents the cursor position):

foo --bar "ack"|

If I hit "ctrl-w" or "ctrl-backspace" three times, I'm left with the following sequence of results:

foo --bar "|
foo --|
|

...which in all three cases is not really what I'm looking for, which is "delete the last token of the command line along with the associated quotes, dashes, slashes, etc" (I'm not sure how to properly say this).

I'm comparing this to something like (say) bash, which gets me the following three states:

foo --bar |
foo |
|

...which is what I'm hoping to see (basically, leaving the command line in a state to start typing forward again without having to clean up detritus like the quotes, dashes, etc).

Is this something that's in pwsh's realm of responsibility?

Proposed technical implementation details (optional)

No response

Lingua principale
C#
Stelle
4.4k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

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 PowerShell/PSReadLine

Tutte le issue di PowerShell/PSReadLine

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.