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

Automatic Renumber Off by Default #96

Open
ctsmith2 opened this issue Oct 7, 2023 · 2 comments
Open

Automatic Renumber Off by Default #96

ctsmith2 opened this issue Oct 7, 2023 · 2 comments

Comments

@ctsmith2
Copy link

ctsmith2 commented Oct 7, 2023

Basic editor.

If "To Label Mode" is accidentally hit,
and then "To Number Mode" is used to go
back, all lines are automatically renumbered.

This may not be wanted, if using line numbers
that are not consistent, with GOTO's.

Possibly set automatically renumber to
off by default?

@GeorgRottensteiner
Copy link
Owner

Oooh, that's a tricky one :)

For one, I need to remember the original numbers somewhere, in the file itself? Currently it is possible to save the label mode code as is.

What if you modify the code, e.g. add lines in between, which numbers do they receive? What happens, if they original numbers cannot be restored since too many new lines were inserted?

All in all, it's not impossible, just might get really tricky to pull off.

@ctsmith2
Copy link
Author

ctsmith2 commented Oct 7, 2023

The first time you click on "To Label
Mode" the user should be prompted with.

Any custom line numbering will be lost.

Continue? Y/N

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants