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

[feat] Configurable Line Numbering #2131

Open
devvaannsh opened this issue Feb 14, 2025 · 0 comments
Open

[feat] Configurable Line Numbering #2131

devvaannsh opened this issue Feb 14, 2025 · 0 comments
Labels
Feature Request Feature requests from customers

Comments

@devvaannsh
Copy link
Contributor

devvaannsh commented Feb 14, 2025

Describe the problem

Currently, Phoenix Code displays absolute line numbers. It would be great to have an option to switch between absolute, relative, hybrid and interval line numbering.

Absolute: It is the default way in which line numbers are displayed. Starting from 1 and increasing as we move to the bottom lines.

Relative: Each line in your file is numbered relative to the cursor’s current position to show the distance to that line. The current line is marked 0, the ones above and below it are marked 1, and so on.

Hybrid: It is a mix of Relative and Absolute line numbering. Here, all lines will show their relative number, except for current line, which will show its absolute line number.

Interval: Line numbers are displayed at fixed interval of every 10 lines.
Image

For more details, refer to this link

Describe the solution you'd like

Users should be able to toggle the format in which the line number should be displayed whether it be absolute(default), relative or hybrid.

Alternatives considered

No response

Additional context

No response

@devvaannsh devvaannsh added the Feature Request Feature requests from customers label Feb 14, 2025
@devvaannsh devvaannsh changed the title [feat] Relative/Hybrid Line Numbers Option [feat] Configurable Line Numbering Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Feature requests from customers
Projects
None yet
Development

No branches or pull requests

1 participant