-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
Area-SettingsIssues related to settings and customizability, for console or terminalIssues related to settings and customizability, for console or terminalIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Complex enough to require an in depth planning process and actual budgeted, scheduled work.Priority-3A description (P3)A description (P3)Product-TerminalThe new Windows Terminal.The new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Fix is checked in, but it might be 3-4 weeks until a release.
Milestone
Description
Description of the new feature/enhancement
I want the #2349 warning when pasting multiline text to a shell, but not when pasting to an editor that won't execute the lines as commands.
Proposed technical implementation details (optional)
Potential ways to detect such an editor:
- If the alternate screen buffer is active (regardless of whether it has been temporarily hidden by Peek behind Alternate Screen Buffer, like Flip Screen (Alt+F12) in mintty of Git Bash #6451). However, this heuristic would be fooled by
less, which does execute lines starting with!as commands. - If bracketed paste mode (bracketed paste in conhost #395) is active. That would first have to be implemented. GNU Nano supports it.
- If any of the mouse tracking modes is active.
Whichever heuristic is used, there is a risk that the editor is killed and the modes are left active. Perhaps the configuration should have a separate opt-in for each heuristic.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-SettingsIssues related to settings and customizability, for console or terminalIssues related to settings and customizability, for console or terminalIssue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Complex enough to require an in depth planning process and actual budgeted, scheduled work.Priority-3A description (P3)A description (P3)Product-TerminalThe new Windows Terminal.The new Windows Terminal.Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.Fix is checked in, but it might be 3-4 weeks until a release.