Skip to content
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

Add Continuation Prompt Counter #3713

Open
237dmitry opened this issue May 13, 2023 · 2 comments
Open

Add Continuation Prompt Counter #3713

237dmitry opened this issue May 13, 2023 · 2 comments
Labels
Issue-Enhancement It's a feature request.

Comments

@237dmitry
Copy link

237dmitry commented May 13, 2023

Summary of the new feature / enhancement

For example automatic variable:

ArcoLinux_2023-05-13_21-53-00

On screenshot $ps2count as a concept of how to use this variable. Nowadays increment of variables ( $ps2count++ ) is not working in Continuation Prompt.

PS. I very often use script-blocks directly in the console.

Proposed technical implementation details (optional)

No response

@237dmitry 237dmitry added the Issue-Enhancement It's a feature request. label May 13, 2023
@mklement0
Copy link

mklement0 commented May 14, 2023

You'll have a better chance of convincing others that this proposal is worth implementing if you explain why having line numbers in interactive multiline input is useful.

Note that currently only a static string seems to be supported.

@237dmitry
Copy link
Author

It is easier to find an error in a script block. Especially when there are more than 10 lines.

PS >  & {                       # 01
          $a = "a"              # 02
          $b = "b"              # 03
          1/0                   # 04
          $c = "c"              # 05
        }                       # 06
RuntimeException: 
Line |
   4 |  1/0
     |  ~~~
     | Attempted to divide by zero.

@daxian-dbw daxian-dbw transferred this issue from PowerShell/PowerShell Jun 14, 2023
@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jun 14, 2023
@StevenBucher98 StevenBucher98 removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement It's a feature request.
Projects
None yet
Development

No branches or pull requests

3 participants