-
-
Notifications
You must be signed in to change notification settings - Fork 46
TAB indent of list item stopped working #293
Comments
I encountered this issue too, after updating this package to the latest version ( /cc @zhuochun hope you find it worth to be fixed ;) |
There was one behavior change in version From my own test on
Tab will indent one level:
Tab again will insert 2 spaces. @derekwsgray @aviatesk maybe you can provide the full content of the Markdown file? or try the example I gave to spot the difference in expected behavior? |
@zhuochun I found (On Atom v1.40.1, and [email protected]) |
@aviatesk Thanks. Now I can reproduce the behavior. The quick immediate fix is change Package > Language Markdown > Tab Length to I will need to revise whether to not use |
@zhuochun are you willing to fix this ? If you're not, I may want to help you out if given some pointers. |
Confused why this would be tagged enhancement if it is a feature regression? Also, I don't have the Package > Language Markdown even installed. ".source.md":
editor:
tabLength: 2 Had no effect either. Installing language-markdown and changing the tab length setting resulted in even worse behaviour for me, adding even more tabs on top of the indent: - This is a test of the lists.
- This is a second items
- fjdkla
- fjkdlsa;
- fdjkls;a |
Ok, the workaround is to install language-markdown and just disable the markdown-writer keybindings, then I get the normal 4-space tab that I had originally and the correct list tabbing behaviour. |
Obviously you can downgrade this package via or if you want to stick with language-gfm just set ".gfm.source":
editor:
tabLength: 2 |
This workaround just uses langauge-markdown's |
True, my workaround is heavy-handed. I'm a simple guy though and don't use those features :) |
(Downgrading the plugin means you have a blue "1 update" notification in the bottom right corner all the time - unless someone knows a plugin that then allows us to ignore updates for particular plugins...) |
dirty solution:
atom-workspace {
status-bar {
.package-updates-status-view {
display: none;
}
}
} |
The latest change on latest |
Thanks for the fix, and the command can be invoked with |
Same here, it's back to 2-spaces. |
The original change introduced in
By spec, indented by 2 spaces is the expected behavior. Although indent by 4 spaces also work in parser. |
Okay got it ! I will move to use 2 spaces but thanks for the fix anyway. |
Please consider adding a tablength setting to markdown-writer so I can set the tab/indent length to 4 spaces. Clearly the common mark and GFM spec allow 2 spaces. However, we live in a world where the markdown parser/processor determines what is gonna be rendered. For example, GitHub and Pandoc process 2 spaces. However the Python dudes seem to be strongly in the 4 spaces camp:
See: https://python-markdown.github.io/ Therefore, I am stuck with 4 spaces (which works everywhere). I can't use the plugin if 2 spaces is the only option. Thanks for your consideration. |
Yeah, this seems broken for me as well. I use Atom almost exclusively as a Markdown editor so I have the line length defaulted to 4. I was surprised after updating that tabbing only went 2 spaces. Seems like this should respect those defaults. Downgraded to 2.11.7 to get the behavior I want for now 🤷♂. |
As I am went through https://python-markdown.github.io/ and https://daringfireball.net/projects/markdown/syntax#list In examples provided in DaringFireball, the 1st level of list is
Cross check on the plugin, it did not support extra spaces after |
Describe the bug
I upgraded Atom from 1.38.something to 1.40.1. After upgrading, the TAB key is just adding the spaces, but not indenting the bullet.
To Reproduce
Steps to reproduce the behavior:
-
, a space then type.Expected behavior
I expected the list item to indent as a whole, to the right, dash and all. For the past year I've used this on a daily basis - I could click in the middle of the line of a list item and hit tab and it would indent the whole thing. Now it's just inserting spaces with no recognition.
Screenshots
Additional context
I tried uninstalling and re-installing the plugin but it made no difference.
The text was updated successfully, but these errors were encountered: