-
Notifications
You must be signed in to change notification settings - Fork 511
Enable console cursor movement and selection like the ISE #829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I posed this in the vscode repo but that probably wasn't the place for it. microsoft/vscode#26401 (comment) |
Hey @dbaileyut, thanks for the issue! The fundamental limitation here is that VS Code's integrated terminal UI is meant to be just that, a textual terminal. I think it's unlikely that they'll ever add mouse-driven cursor movement there since it would be hard to implement that consistently cross-platform among the range of different terminal hosts. You mention "using the ISE host", it's actually not possible to accomplish that because the ISE's host is coupled to the WPF-based UI in which it runs. The best hope we have for now is enabling PSReadline so that keyboard-based navigation is brought to the same level as the standard powershell.exe host. Is there a scenario where the lack of mouse support is a significant limitation for your workflow? |
I use the ISE for both writing/debugging scripts and as my active working terminal as a sys admin. I don't think it's much of a factor from the scripting and debugging perspective. It's more in that working terminal usage that I've grown accustomed to the mouse support in the ISE console, having used the ISE as my console of choice basically since it was released. It's very handy to be able to arrow up through my history and then quickly change an arbitrary section of a long command (usually piping multiple things together) via the mouse before executing the revised command. I find it quicker and more precise than moving and selecting via the keyboard, even with being able to move word by word. I think PSReadline will get me like 85%-95% there for my use case but that extra little bit is nice. And, just to be clear, I'm not asking for this to be implemented in any specific way (e.g. using the ISE host). I'm just hoping for all the pros of VS Code with no cons compared to the ISE in my use cases. I realize that's easier said than done. |
Thanks for posting this @dbaileyut This is applicable to me in both writing/debugging and as a working terminal. Because in either case I may want to use Keyboard-based text selection. Guess it comes down to really liking have a "one stop shop" for an editor and PowerShell Console. Guess I could continue to use ISE full screen as Console and Edit in VS Code. Having it all in the ISE was just very convenient. |
+1 |
You can now |
Recap: Done: These should be coming with PSReadLine integration tracked here:
Does anyone have a problem with me duping this issue to #535? |
Closing this as PSReadLine is now available in the PowerShell preview extension #1793 |
Feature request....
System Details
Issue Description
It would be great if you could enable cursor movement and text selection in the integrated console like the PowerShell ISE allows. PSReadLine support will be great but this would go a bit further by enabling:
I realize you're intentionally using the standard PowerShell host instead of something like the ISE and this may require upstream changes. I'm happy to submit this feature request in a more appropriate location. This goes to providing the "best possible experience to the PowerShell community through Visual Studio Code".
Thanks for the great work - I'm excited about where this is going.
The text was updated successfully, but these errors were encountered: