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

Disable auto renumbering the ordered list on pasting/inserting newline etc #2436

Open
3 of 4 tasks
goyalyashpal opened this issue Oct 7, 2024 · 7 comments
Open
3 of 4 tasks

Comments

@goyalyashpal
Copy link

goyalyashpal commented Oct 7, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a enhancement/feature request. Not a bug or question.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • Not tested
    The wanted feature/enhancement is not present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor's settings are not touched. If your desired feature is present, you don't need to open this issue. The change will be part of the next Markor update.)

Description

Disable auto renumbering the ordered list on pasting/inserting newline etc

  1. When working with explicitly numbered ordered list, like 5. in asciidoc (& i suppose md too) ,
  2. and doing various actions like insert newline, delete an item, paste an item etc...
  3. all the carefully crafted custom numbering like ssy 10. 9. 8. ... get replaced with the unintended 1. 2. 3. ...

then

  • this becomes a source of constant struggle and fighting with app
  • a slight forgetting of this push-pull, and u find u have done many many edits thereafter
  • the undo-redo, and save stuff often glitches out with cut-pasting operations.

this often then leads to important data being overwritten or lost.

Information

Android version: 13
Device: rmx3381
App Version: v2.12.5 (154)

Source

F-Droid

Format / File type

Not specific

Additional info / Log

-
@goyalyashpal goyalyashpal changed the title Disable auto ordered list renumbering on pasting/inserting newline etc Disable auto renumbering the ordered list on pasting/inserting newline etc Oct 7, 2024
@harshad1
Copy link
Collaborator

harshad1 commented Oct 7, 2024

the undo-redo, and save stuff often glitches out with cut-pasting operations

This is a separate bug. I would appreciate it if you could document and file it with steps to reproduce

If you want to disable auto-renumbering:

you have 2 choices:

  1. Switch format to plain text, Paste, Switch back
  2. Disable auto-formatting (3 dots -> file settings -> auto formatting)

Note that you can still renumber a list by long pressing the ordered list button when auto-formatting is disabled

@goyalyashpal
Copy link
Author

2. Disable auto-formatting (3 dots -> file settings -> auto formatting)

is that not available as a global config option?

@harshad1
Copy link
Collaborator

harshad1 commented Oct 9, 2024

No. IMO we can consider making a global default for new files.

@goyalyashpal
Copy link
Author

we can consider making a global default for new files.

then in the per-file settings for auto-formatting, there should be 3 options:

  • global default
  • on
  • off

@gsantner
Copy link
Owner

gsantner commented Oct 10, 2024

Bloat to have it in many ways, also harder for users to understand. Better just one button up there that toggles globally instead per-file.

@goyalyashpal
Copy link
Author

better no per-file option AND global option.

ohw, ohkayh. i thought he said about giving additional option of global along with per f;le one

@harshad1
Copy link
Collaborator

Pretty sure we went over this before when I was developing the auto renumbering system. Need to pull that discussion up.

Iirc the conclusion was that auto-numbering all files is the correct default and that we can disable it per file if needed.

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

3 participants