microsoft/Terminal

[Feature Request] Option to auto trim leading/ending new lines/spaces from pasted content

開放

#14,410 建立於 2022年11月18日

 (4 則留言) (0 個反應) (0 位負責人)C++ (9,275 個分叉)batch import
Area-SettingsHelp WantedIn-PRIssue-FeatureProduct-Terminal

倉庫指標

星標
 (103,173 顆星)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

Description of the new feature/enhancement

Simple feature quest, to add an option to automatically trim spaces and/or new lines from pasted text.

I'm constantly copying stuff, pasting in the terminal and having to go with my arrow keys to erase unnecessary chars so that my commands work.

Proposed technical implementation details (optional)

We can have these options:

  1. Trim new lines
  2. Trim spaces

a) Trim leading b) Trim ending

Maybe it should display as two ComboBoxes:

New line trimming: Disabled/Leading/Ending/Both Space trimming: Disabled/Leading/Ending/Both

貢獻者指南