Giter Site home page Giter Site logo

Comments (5)

reagle avatar reagle commented on September 24, 2024

BTW: Installing AllAutocomplete seems to enable tab autocompletion in markdown files?!?

from markdownediting.

deathaxe avatar deathaxe commented on September 24, 2024

I don't see anything misbehaving, neither on my normal production setup nor on a clean ST4169 with only Package Control and MarkdownEditing installed. I am on Windows.

I tried to reproduce with a new unsaved MD view with "lorem ipsum" snippet inserted. Typing existing words auto-completes them on pressing tab as expected. Same with an existing README.md

You could enable command logging by executing sublime.log_commands() in ST's console to see which command is executed, when pressing tab.

With your settings, I see...

command: auto_complete {"commit_single": true, "default": "\t", "mini": true}
command: commit_completion

An autocomplete panel opens with various words from buffer, when hitting tab after a started word, with another tab completing with first selected item.

from markdownediting.

reagle avatar reagle commented on September 24, 2024

I just tried and I too can autocomplete on trivial test markdown files. I just tried to create a minimal defective example here: https://reagle.org/joseph/2024/rah/autocomplete-test.md . I suspect it has to do with YAML front matter; when it is present I'm not able to autocomplete the word "subreddit". In the log, I see lingo/sublime-fscompletion is being invoked. So, somehow, the YAML frontmatter confuses FSAutocompletion? That hasn't been updated in years, so I'll uninstall that for now.

>>> sublime.log_commands()
FSAutocompletion: get_view_cwd: folder found {'file_exclude_patterns': ['*.docx', '*.html', '*.mm', '*.pdf', '*.yaml', '*.zip', '*.zst'], 'name': 'Reddit advice history', 'path': '/Users/reagle/e/clear/data/2web/reagle.org/joseph/2024/rah'}
get_view_cwd: <function get_cwd_from_project at 0x1074ad2f0> => /Users/reagle/e/clear/data/2web/reagle.org/joseph/2024/rah

from markdownediting.

deathaxe avatar deathaxe commented on September 24, 2024

I also see those entries, but still everything works with your minimal example and sublime-fscompletion installed.

EDIT: It seems to interfere in case it thinks the word being completed is part of a folder or path. Maybe you have a folder named "Subreddits" or something along those lines in your project?

That's nothing MarkdownEditing can fix.

from markdownediting.

reagle avatar reagle commented on September 24, 2024

Huh. I feel like having MarkdownEditing, fscompletion, AllAutocomplete, and EnhanceSnippets is a precarious pile of completion plugins but having the four of them seems to work now, at least. I'll close this and return if I gain other insights.

from markdownediting.

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.