Skip to content

Instantly share code, notes, and snippets.

@Kristinita
Created October 2, 2016 05:28
Show Gist options
  • Select an option

  • Save Kristinita/f340edbe3c2478ac4c3babfe2da2b625 to your computer and use it in GitHub Desktop.

Select an option

Save Kristinita/f340edbe3c2478ac4c3babfe2da2b625 to your computer and use it in GitHub Desktop.
LanguageTool

Summary

No Live preview, if I install my own keyboard shortcut for markmon_toggle command.

Expected behavior

Preview changes in real time.

Actual behavior

No preview in real time. After I run the command markmon_toggle, the file is opened in the browser, but if I make changes in my file, the browser will not be seen.

Steps to reproduce

I added in PreferencesKey Bindings - User file these lines and save this file:

{
    "keys": ["ctrl+k", "ь"],
    "command": "markmon_toggle",
    "args": {
        "enable": true
    }
},

I run command markmon_toggle in any markdown file:

key evt: control+k
chr evt: ь (0x44c)
command: markmon_toggle {"enable": true}

My markdown file is opened in the browser, but if I make changes in my file, the browser will not be seen.

If I remove my changes at my Key Bindings - User file, restart Sublime Text and run markmon_toggle:

key evt: control+k
chr evt: m (0x6d)
command: markmon_toggle {"enable": true}

Markmon works is good.

Environment

  • Operating system and version:
    Windows 10
  • Sublime Text: Build 3114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment