Git Product home page Git Product logo

Comments (4)

jrblevin avatar jrblevin commented on July 2, 2024

This sounds good to me. I envision a minibuffer prompt with completion based on previously used language keywords in the current buffer (using read-from-minibuffer with the hist and default-value arguments). A global fallback default (for the first code block in a buffer) could be defined in a custom variable. There are other things I need to work on first, so if anyone else wants to write a patch in the meantime that would speed things up.

As a workaround for now you could re-bind </kbd> to self-insert-commandin thegfm-mode-hook` (just added today).

from markdown-mode.

cosmicexplorer avatar cosmicexplorer commented on July 2, 2024

I would think it'd be more appropriate to have a list of all the recognized languages gfm provides (which we'd have to update every so often) and do a completing-read (with history and default-value, and global default like you said) from that list instead of just read-from-minibuffer. Does that sound good? I'll take a look at this one.

from markdown-mode.

jrblevin avatar jrblevin commented on July 2, 2024

Having a pre-specified list of languages is a great idea. I agree that completion would be preferred. I actually thought read-from-minibuffer did that, but I given the names I suppose it only provides history, not history and completion. If you could take a look at this, that would be great!

from markdown-mode.

jrblevin avatar jrblevin commented on July 2, 2024

We now have completion for programming language names as described above with some additional enhancements. Also see the new variable markdown-gfm-use-electric-backquote, which determines whether to use markdown-electric-backquote when backquote is pressed three times (default: t). Thanks to @cosmicexplorer for implementing this!

from markdown-mode.

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.