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

Desktop: Correct numbering of list items when indenting/outdenting #2790

Closed
wants to merge 1 commit into from

Conversation

sinkuu
Copy link
Contributor

@sinkuu sinkuu commented Mar 18, 2020

Fixes the issue pointed out by @tessus: #2713 (comment)

When (Shift+)Tab key is pressed, the editor will try finding out the numbered list item with the current indent level + 1 (or - 1 if Shift+Tab) and sets the current line's number accordingly.

@sinkuu sinkuu changed the title Desktio: Correct numbering of list items when indenting/outdenting Desktop: Correct numbering of list items when indenting/outdenting Mar 18, 2020
@tessus tessus added bug It's a bug desktop All desktop platforms PR-tested labels Mar 20, 2020
Copy link
Collaborator

@tessus tessus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job. Works perfectly.

@laurent22 laurent22 added the high High priority issues label Apr 30, 2020
@laurent22
Copy link
Owner

laurent22 commented May 9, 2020

Sorry @sinkuu, again there's a conflict on NoteText.jsx, please could you have a look at it? Again I expect it's a matter of moving the code to AceEditor.tsx.

@laurent22
Copy link
Owner

I think there's an issue with the way it numbers the items at the moment.

If I start from this:

image

and I indent the third item, it is correctly re-numbered "1", but the next one is till "4", while it should be "3":

image

Also if I try to indent two items it doesn't re-number them:

image

@laurent22
Copy link
Owner

Closing inactive pull request for now. If you'd like to work on it again @sinkuu, feel free to let me know and thanks for your work so far.

@laurent22 laurent22 closed this Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms high High priority issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants