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

Please add line numbers to the terminal. #211249

Closed
RokeJulianLockhart opened this issue Apr 24, 2024 · 4 comments
Closed

Please add line numbers to the terminal. #211249

RokeJulianLockhart opened this issue Apr 24, 2024 · 4 comments
Assignees
Labels
feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Apr 24, 2024

Like microsoft/terminal#17490 (comment) describes:

Description of the new feature/enhancement

As https://bugs.kde.org/show_bug.cgi?id=485923#c0 describes:

STEPS TO REPRODUCE

Invoke Konsole, and use a command like cat or https://github.com/MicrosoftDocs/PowerShell-Docs/blob/04dac6ae6b2abcb91006b6a515cc26c72219ffd5/reference/7.4/Microsoft.PowerShell.Management/Get-Content.md#example-2-limit-the-number-of-lines-get-content-returns to output the content of a file to the terminal.

OBSERVED RESULT

Without using cat's -b or -n flags, the content cannot be numbered. For others, like the aforecited Get-Content, it's impossible to output line numbers without writing code for every interaction to iterate over the lines.

Konsole has since gained the ability to display line numbers, as https://discuss.kde.org/t/how-to-enable-line-numbers-in-konsole/14435?u=rokejulianlockhart#always-3 depicts:

534f710eb7b924d4c1a4bf1975c79837bdde8379

It's been invaluable for me, when reading long logs via the terminal. Consequently, I propose the same for Windows Terminal.

Proposed technical implementation details (optional)

I'd rather that they be in a permanent separator following the text direction, or on the opposite of the text direction, still separated regardless (to prevent overlap). Specifically, as https://bugs.kde.org/show_bug.cgi?id=485970#c3 describes:

I want it to be like a Konsole/Dolphin panel, so that it can be moved to the left or right. However, I'd like it to work like a plasmoid on a PlasmaShell panel does - when a new session is invoked (like when a new tab or window is created) it should be static, and not overlay, like any other panel does. However, I should be able to set a toggle (like PlasmaShell's pin feature) and have it then able to temporarily resize over the session until I pin it again, where it returns to its original size. It should also have a horizontal scrollbar for when the user accidentally sets it shorter than they need at the start of a session.

Does that make sense?

Interest https://www.reddit.com/r/vscode/comments/195lfac/how_can_i_see_the_line_number_in_console/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button demonstrates that desire for this exists.
Duplicates https://github.com/microsoft/vscode/issues?q=is%3Aissue+sort%3Aupdated-desc+%22terminal%22+%22line+numbers%22 returns 0 relevant results.
@meganrogge meganrogge added feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label labels Apr 24, 2024
@vscodenpa vscodenpa added this to the Backlog Candidates milestone Apr 24, 2024
@vscodenpa
Copy link

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa
Copy link

🙁 In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

@vscodenpa vscodenpa closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
@RokeJulianLockhart
Copy link
Author

#211249 (comment)

@VSCodeTriageBot, I think that's a mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

4 participants