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

Shift+tab folds instead of unindenting list even though fold is disabled #552

Closed
davidjosefson opened this issue Jan 17, 2019 · 6 comments · Fixed by #607
Closed

Shift+tab folds instead of unindenting list even though fold is disabled #552

davidjosefson opened this issue Jan 17, 2019 · 6 comments · Fixed by #607

Comments

@davidjosefson
Copy link

What is wrong

When disabling fold_section by adding "mde.keymap_disable.fold_section": false in the "Markdown.sublime-settings - User"-file Shift+Tab will still fold a section when trying to unindent a list item if the list has a subtitle-row without Markddown-#.

How to reproduce

  1. Create a .md-file
  2. Add the following text:
# Title

Subtitle without hash
- List item 1
- List item 2
    + Indented list item 1
  1. Put cursor after the + and before ´Indented list item 1´
  2. Press Shift+Tab

Expected behavior

Unindent the + Indented list item 1-row, no folding.

Actual behaviour

Folds the text to the first row (# Title)

Workaround

Removing the Subtitle without hash-row or adding one or more # at the beginning (making it a proper subtitle) will make it work as expected.

System info

MarkdownEditing v2.2.7
Sublime v3.1.1 Build 3176
MacOS v10.14.2

@mitchallain
Copy link

For me this was an issue with my default markdown syntax, which was Markdown Extended from https://github.com/jonschlinkert/sublime-markdown-extended. To get this setting to load properly with that syntax, I added "mde.keymap_disable.fold_section": false to my Preferences -> Settings (Syntax Specific) file.

@revolter
Copy link

revolter commented Mar 2, 2021

When will this be fixed?

@birla
Copy link

birla commented Mar 11, 2021

This suddenly started happening for me and its been severely impacting my productivity with MDE.

@felixhao28
Copy link
Contributor

@birla @revolter Does MitchAllain's workaround work for you?

@deathaxe deathaxe added the bug label May 14, 2021
@deathaxe
Copy link
Member

deathaxe commented Jun 3, 2021

"mde.keymap_disable.fold_section": false

Did nobody see disable in the name? The setting would need to be set true in order to disable that binding.

I am not very happy with shift+tab being used for folding at all.

Working on a fix to give unindent precedence.

@felixhao28
Copy link
Contributor

Did nobody see disable in the name?

Ah, this is the kind of thing that never gets noticed unless someone points it out.

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

Successfully merging a pull request may close this issue.

6 participants