aziz / knockdown

Github flavored Markdown for SublimeText and a custom theme for writing markdown
89 stars 17 forks source link

"word_wrap": "auto" not supported? #10

Closed jasonrudolph closed 11 years ago

jasonrudolph commented 11 years ago

First things first: Thanks for creating knockdown. It's a joy to use!


I'm curious about the word wrap settings. The preferences indicate that you can customize the word wrap behavior:

// Disables horizontal scrolling if enabled.
// May be set to true, false, or "auto", where it will be disabled for
// source code, and otherwise enabled.
"word_wrap": true,

I have "word_wrap" set to "auto", but code blocks still wrap (as shown in the screenshot below).

If there's any additional info I can provide to help debug this issue, please let me know.

knockdown

vovkkk commented 11 years ago

The preferences indicate

It is copy-paste from standard Sublime Text settings file.

ST separates source code and not-source code by scope. Everything inside markdown file has the first scope text, that say it's not a bug.

You can see a scope of any line youself: open console and run this view.scope_name(view.sel()[0].begin())

aziz commented 11 years ago

As @vovkkk mentioned it's something we can not do anything about at the moment. You'd better submit this as a feature request on sublime text forums. I would love to be able to have this feature.