microsoft / microsoft/terminal
Feasibility of not requiring prompt edits in pwsh for Shell Integration features
- Dominant language
- C++
- Stars
- 105k
- Forks
- 9.6k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 29
Description
### Description of the new feature
Looking [at the Docs for Shell Integration features](https://learn.microsoft.com/en-gb/windows/terminal/tutorials/shell-integration#show-marks-for-each-command-in-the-scrollbar) & discussion I've seen in the PowerShell Discord I come to the following conclusion that I feel it would be nicer for tools like Terminal to have a way to mitigate having to get users to have to make changes to their prompts via including code like what's provided to enable features like this.
Therefore, I want to ask, would it be nice & useful for Terminal to be able to enable a feature like this in future with a hook that can be registered via something like this suggestion for PowerShell (Not Windows PowerShell)
- https://github.com/PowerShell/PowerShell/issues/14484
Reducing the need for users to make these edits in the first place, particularly as they should be spending the time in understanding the code that teams like you are providing (& my experience is most don't bother)
FYI - I am in the PowerShell Working Groups for Interactive UX & Engine which would need to sign off on that work but that's a separate discussion that we can look to have.
### Proposed technical implementation details
_No response_
Contributor guide
Research direction
Start by reading the linked Shell Integration documentation and PowerShell issue #14484 to understand the proposed hook and its constraints. The issue names no Terminal files, tests, or entry points; completion would require a decided feasibility and implementation direction for enabling the feature without prompt edits.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100