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

Word-wrap only works when unchecked #6

Open
ianobermiller opened this issue Apr 2, 2022 · 4 comments
Open

Word-wrap only works when unchecked #6

ianobermiller opened this issue Apr 2, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@ianobermiller
Copy link

I like that wrapped lines are automatically indented, but it seems to break when you check the item.

image

@jotaen
Copy link
Owner

jotaen commented Apr 2, 2022

Could you describe the steps you are doing?

How it actually should work is if you press ENTER it should start a new item (i.e. a new line with a checkbox), and if you press SHIFT+ENTER it should continue the description on the next line (with indentation). Below a quick video on how that behaves on my end:

Screen.Recording.2022-04-02.at.21.31.37.mov

@ianobermiller
Copy link
Author

Sorry that wasn't clear. I'm not talking about hitting enter or shift enter. I'm talking about when the task soft-wraps to the next line. I noticed that when xit was active, the line will soft wrap with a 4 space indentation so it aligns nicely, but that only works for unchecked tasks.

@jotaen jotaen changed the title Indentation only works when unchecked Word-wrap only works when unchecked Apr 2, 2022
@jotaen
Copy link
Owner

jotaen commented Apr 2, 2022

Ah I see, I didn’t even know it did that. I’ll see whether the word wrap behaviour can be configured at all in Sublime.

@jotaen jotaen added the bug Something isn't working label Aug 24, 2022
@jotaen
Copy link
Owner

jotaen commented Aug 25, 2022

So what I found out is that this has to do with the syntax scope. Checked and obsolete items have the comment scope assigned to them, which obviously alters the word wrapping behaviour.

I’ve filed a thread on the Sublime Forum, maybe someone with more knowledge about the Sublime innards may help out.

Another option would be to assign a different scope to these items, but I found none that has equal styling than comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants