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

[BUG] Outline Numbering sequence is off after 4th heading #248

Open
DutchPete opened this issue Nov 27, 2024 · 7 comments
Open

[BUG] Outline Numbering sequence is off after 4th heading #248

DutchPete opened this issue Nov 27, 2024 · 7 comments

Comments

@DutchPete
Copy link

DutchPete commented Nov 27, 2024

Script name

Outline Numbering

Script authors

@Jerksen

Expected behavior

Correct, sequential/decimal numbering

Actual behavior

QON-bug

Another related issue is I had an empty note with these pre-numbered headings:

image

I then added a new, 3-hash heading:

image

I subsequently ran the script to update outline numbers. This is what I got:

image

Steps to reproduce

  1. take a note with unnumbered headings and subheadings
  2. apply the script

Output from the debug section in the settings dialog

The output is 561 lines, which includes everything. Here is the log section relating to the script after running it to get the result in the 1st screenshot:

Script Outline Numbering

id: 4
path: /home/user1/.var/app/org.qownnotes.QOwnNotes/data/PBE/QOwnNotes/scripts/outline-numbering/outline-numbering.qml
variablesJson:

{
}

identifier: outline-numbering
version: 1.0.0
minAppVersion: 20.5.6

@pbek
Copy link
Member

pbek commented Nov 27, 2024

Can you please give your issue a propper title?

@DutchPete DutchPete changed the title [BUG] [BUG] Outline Numbering sequence is off after 4th heading Nov 27, 2024
@DutchPete
Copy link
Author

@pbek : done. My apologies for this oversight.

@DutchPete
Copy link
Author

DutchPete commented Dec 4, 2024

Seems like @Jerksen have abandoned their script.

@pbek
Copy link
Member

pbek commented Dec 4, 2024

Do you want to work on it? 😉

@DutchPete
Copy link
Author

Nope, not really. Scripting is not my thing, and even though one can always learn, I have plenty of other things that keep me busy. Sorry.

@DutchPete
Copy link
Author

I “worked” on it in that I used ChatGPT to sort it out, which it did.
I went to the script location on my computer, added the amendment, then checked if it works. It does.

I shall not get involved in pull requests and all that goes with it, but I can send you the new script if it is of any help to you.

@pbek
Copy link
Member

pbek commented Dec 17, 2024

Good job! 😊
You can post it here. It wouldn't have a maintainer if I would put it in the script repository.

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

No branches or pull requests

2 participants