Giter VIP home page Giter VIP logo

Comments (6)

JSDurand avatar JSDurand commented on August 16, 2024

I found that there were no folders named SmartMarkdown in the packages folder, so I manually git cloned to the package folder. Per chance I have done it wrong? I typed
git clone https://github.com/demon386/SmartMarkdown.git Path_to_package/SmartMarkdown
After this, global folding / unfolding & increase/decrease heading depth work well, but others do not.
Then I downloaded ST2, tested SM, and it worked!
Basically everything is fine for ST2, just as I expected by looking at the readme file.
So I guess something is wrong with the support for ST3?
In summary, in ST3, the only thing that works is global folding / unfolding & increase/decrease heading depth.
Other features such as table support, smart folding, or list generation (yeah, it fails now for some reason. :( ) just fail to function.
Hope this issue can be solved.

from smartmarkdown.

vovkkk avatar vovkkk commented on August 16, 2024

It works for me in 3114 and 3118.

You probably have some keybinding for TAB which overrides SmartMarkdown ones.
Try FindKeyConflicts to see it.

Try to copy SM keybindings for TAB into your user keybindings file.

no folders named SmartMarkdown in the packages folder

Yes, you have to go up, then to Installed Packages there should be SmartMarkdown.sublime-package (it is zip archive) if you did installation with Package Control.

Then you can override some files (e.g. keybindings) of that package by placing them into Packages/SmartMarkdown folder; it is a feature of Sublime Text to make customisations more flexible;
see docs for details.

from smartmarkdown.

JSDurand avatar JSDurand commented on August 16, 2024

Thanks for the information!
Indeed I got some key conflicts. But before I fix that, the problem is fixed now!
It seems that I just have to unarchive the sublime-package file to make everything OK.
Thanks for the help. 👍 :D
Also I learned some useful stuff about sublime plugins when trying to fix the problem; quite interesting. :)
Thanks again!

from smartmarkdown.

ngmariusz avatar ngmariusz commented on August 16, 2024

I have same as @JSDurand on Build 3126 - smart folding, not working
ubuntu 16.04, Python 2.7.12
KeyConflicts - checked
Replacing with git clone - checked
no effect; couldn't hack the solution

i have also tried with ..../User/Default (Linux).sublime-keymap

{ "keys": ["super+shift+m"], "command": "smart_folding", "context":
    [
        { "key": "selector", "operator": "equal", "operand": "markup.heading.markdown" }
    ]
}

it just gives "M"

so maybe something with fireing smart_folding command?

from smartmarkdown.

vovkkk avatar vovkkk commented on August 16, 2024

so maybe something with fireing smart_folding command?

Or something with keyboard or the way how ST interprets input.

Command works just fine for me, you can check like this:

  • create markdown

    # title
    content
    
  • put cursor on first line

  • open console View → Show console

  • paste view.run_command('smart_folding') into console, press Enter

  • see second line become hidden

Not all keybindings can be used (super+shift+m does not work at all on Windows for example), there might be some bugs/regressions in recent versions of ST, some incompatibilities with different keyboard layouts, and so on and so forth.
Try different keys, try ST2 (2221).

from smartmarkdown.

ngmariusz avatar ngmariusz commented on August 16, 2024

so,
inspired to "just" run_command('smart_folding') I've found there is some issue with 'context' filter.

NOT WORKING

  { "keys": ["shift+super+m"], "command": "smart_folding", "context":
    [
      { "key": "selector", "operator": "equal", "operand": "markup.heading.markdown" }
    ]
  }

WORKS FINE

 { "keys": ["shift+super+m"], "command": "smart_folding"}

with some "keybinding collision designing" I can use your plugin, now;
thnx

from smartmarkdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.